-
-
Method Summary
Returns the current position and state of the lexer.
default void
Restores the lexer to the specified state and position.
Methods inherited from interface com.intellij.lexer.Lexer
advance, getBufferEnd, getBufferSequence, getState, getTokenEnd, getTokenSequence, getTokenStart, getTokenText, getTokenType, start, start, start
-
Method Details
-
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
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.