Interface LexerBase

All Superinterfaces:
Lexer
All Known Implementing Classes:
DelegateLexer, FlexAdapter, LayeredLexer, LookAheadLexer, MergingLexerAdapter, MergingLexerAdapterBase, StringLiteralLexer

public interface LexerBase extends Lexer
  • Method Details

    • getCurrentPosition

      @NotNull default @NotNull LexerPosition getCurrentPosition()
      Description copied from interface: Lexer
      Returns the current position and state of the lexer.
      Specified by:
      getCurrentPosition in interface Lexer
      Returns:
      the lexer position and state.
    • restore

      default void restore(@NotNull @NotNull LexerPosition position)
      Description copied from interface: Lexer
      Restores the lexer to the specified state and position.
      Specified by:
      restore in interface Lexer
      Parameters:
      position - the state and position to restore to.