Package | Description |
---|---|
org.netbeans.api.lexer |
The entrance point into Lexer API is
TokenHierarchy class with
its static methods that provide its instance for the given input source. |
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 |
---|---|
static <I extends CharSequence,T extends TokenId> |
TokenHierarchy.create(I inputText,
boolean copyInputText,
Language<T> language,
Set<T> skipTokenIds,
InputAttributes inputAttributes)
Create token hierarchy for the given input text.
|
static <I extends Reader,T extends TokenId> |
TokenHierarchy.create(I inputReader,
Language<T> language,
Set<T> skipTokenIds,
InputAttributes inputAttributes)
Create token hierarchy for the given reader.
|
Modifier and Type | Method and Description |
---|---|
InputAttributes |
LexerRestartInfo.inputAttributes()
Get supplementary information about particular input source
or null if there are no extra attributes.
|
protected abstract InputAttributes |
MutableTextInput.inputAttributes()
Get lexer-specific information about this input
or null if there is no specific information.
|
Modifier and Type | Method and Description |
---|---|
protected LanguageEmbedding<?> |
LanguageHierarchy.embedding(Token<T> token,
LanguagePath languagePath,
InputAttributes inputAttributes)
Get language embedding (if exists) for a particular token
of the language at this level of language hierarchy.
|
abstract LanguageEmbedding<?> |
LanguageProvider.findLanguageEmbedding(Token<?> token,
LanguagePath languagePath,
InputAttributes inputAttributes)
Finds
LanguageEmbedding that will define what language is
embedded in a given token. |