Package | Description |
---|---|
org.netbeans.spi.lexer |
The main abstract class in the Lexer SPI that must be implemented
is
LanguageHierarchy that mainly defines
set of token ids and token categories for the new language
and its Lexer . |
Modifier and Type | Method and Description |
---|---|
TokenFactory<T> |
LexerRestartInfo.tokenFactory()
Get token factory through which the lexer should produce tokens.
|
Modifier and Type | Method and Description |
---|---|
Token<T> |
TokenValidator.validateToken(Token<T> token,
TokenFactory<T> factory,
CharSequence tokenText,
int modRelOffset,
int removedLength,
CharSequence removedText,
int insertedLength,
CharSequence insertedText)
This method is invoked in mutable environments prior lexer invocation
to check whether token in which the text modification occurred
was only slightly modified by the performed modification and the lexer's
invocation is not necessary.
|