Class LexerBase

java.lang.Object
com.intellij.lexer.Lexer
com.intellij.lexer.LexerBase
Direct Known Subclasses:
DelegateLexer, FlexAdapter, StringLiteralLexer

public abstract class LexerBase extends Lexer
  • Constructor Details

    • LexerBase

      public LexerBase()
  • Method Details

    • getCurrentPosition

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

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