|
org.netbeans.modules.lexer/2 1.39.1 1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.spi.lexer.LexerRestartInfo<T>
public final class LexerRestartInfo<T extends TokenId>
Lexer restart info contains all the necessary information for restarting of a lexer mainly the lexer input, state and token factory.
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).
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public LexerInput input()
public TokenFactory<T> tokenFactory()
public Object state()
public LanguagePath languagePath()
public InputAttributes inputAttributes()
public Object getAttributeValue(Object key)
|
org.netbeans.modules.lexer/2 1.39.1 1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |