public final class LexerRestartInfo<T extends TokenId> extends Object
When lexing embedded sections if LanguageEmbedding.joinSections()
returns true then the state()
will return state after
the last token of a corresponding previous section (with the same language path).
Modifier and Type | Method and Description |
---|---|
Object |
getAttributeValue(Object key)
Get value of an attribute or null if the attribute is not set
or if there are no attributes at all.
|
LexerInput |
input()
Get lexer input from which the lexer should read characters.
|
InputAttributes |
inputAttributes()
Get supplementary information about particular input source
or null if there are no extra attributes.
|
LanguagePath |
languagePath()
Get language path at which the lexer operates.
|
Object |
state()
Get state from which the lexer should start lexing.
|
TokenFactory<T> |
tokenFactory()
Get token factory through which the lexer should produce tokens.
|
public LexerInput input()
public TokenFactory<T> tokenFactory()
public Object state()
public LanguagePath languagePath()
public InputAttributes inputAttributes()