|
org.netbeans.modules.lexer/2 1.19.0 1 | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use LanguagePath | |
---|---|
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 . |
Uses of LanguagePath in org.netbeans.api.lexer |
---|
Methods in org.netbeans.api.lexer that return LanguagePath | |
---|---|
LanguagePath |
LanguagePath.embedded(Language<? extends TokenId> language)
Get embedded path of this language path. |
LanguagePath |
LanguagePath.embedded(LanguagePath suffix)
Get language path corresponding to the suffix language path embedded in this path. |
static LanguagePath |
LanguagePath.get(Language<? extends TokenId> language)
Get language path that contains a single language. |
static LanguagePath |
LanguagePath.get(LanguagePath prefix,
Language<? extends TokenId> language)
Get language path corresponding to the language embedded in the given context language path. |
LanguagePath |
TokenSequence.languagePath()
Get the complete language path of the tokens contained in this token sequence. |
LanguagePath |
TokenChange.languagePath()
Get the complete language path of the tokens contained in this token sequence (containing outer language levels as well). |
LanguagePath |
LanguagePath.subPath(int startIndex)
Gets the path starting at the given index and ending after the last language contained in this path. |
LanguagePath |
LanguagePath.subPath(int startIndex,
int endIndex)
Gets the path starting at the given index and ending after the last language contained in this path. |
Methods in org.netbeans.api.lexer that return types with arguments of type LanguagePath | |
---|---|
Set<LanguagePath> |
TokenHierarchy.languagePaths()
Get a set of language paths used by this token hierarchy. |
Methods in org.netbeans.api.lexer with parameters of type LanguagePath | |
---|---|
LanguagePath |
LanguagePath.embedded(LanguagePath suffix)
Get language path corresponding to the suffix language path embedded in this path. |
boolean |
LanguagePath.endsWith(LanguagePath languagePath)
Check whether this language path ends with the given language path. |
static LanguagePath |
LanguagePath.get(LanguagePath prefix,
Language<? extends TokenId> language)
Get language path corresponding to the language embedded in the given context language path. |
Object |
InputAttributes.getValue(LanguagePath languagePath,
Object attributeKey)
Get value for the given key for the particular language path. |
void |
InputAttributes.setValue(LanguagePath languagePath,
Object attributeKey,
Object attributeValue,
boolean global)
Assign a new value to a property for the given language path. |
List<TokenSequence<? extends TokenId>> |
TokenHierarchy.tokenSequenceList(LanguagePath languagePath,
int startOffset,
int endOffset)
Get list of token sequences with the given language path from this hierarchy. |
Uses of LanguagePath in org.netbeans.spi.lexer |
---|
Methods in org.netbeans.spi.lexer that return LanguagePath | |
---|---|
LanguagePath |
LexerRestartInfo.languagePath()
|
Methods in org.netbeans.spi.lexer with parameters of type LanguagePath | |
---|---|
protected LanguageEmbedding<? extends TokenId> |
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<? extends TokenId> |
LanguageProvider.findLanguageEmbedding(Token<? extends TokenId> token,
LanguagePath languagePath,
InputAttributes inputAttributes)
Finds LanguageEmbedding that will define what language is
embedded in a given token. |
|
org.netbeans.modules.lexer/2 1.19.0 1 | |||||||||
PREV NEXT | FRAMES NO FRAMES |