java.lang.Object
com.intellij.lexer.Lexer
com.intellij.lexer.LexerBase
- Direct Known Subclasses:
DelegateLexer,FlexAdapter,StringLiteralLexer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull LexerPositionReturns the current position and state of the lexer.voidrestore(@NotNull LexerPosition position) Restores the lexer to the specified state and position.Methods inherited from class com.intellij.lexer.Lexer
advance, getBufferEnd, getBufferSequence, getState, getTokenEnd, getTokenSequence, getTokenStart, getTokenText, getTokenType, start, start, start
-
Constructor Details
-
LexerBase
public LexerBase()
-
-
Method Details
-
getCurrentPosition
Description copied from class:LexerReturns the current position and state of the lexer.- Specified by:
getCurrentPositionin classLexer- Returns:
- the lexer position and state.
-
restore
Description copied from class:LexerRestores the lexer to the specified state and position.
-