|
org.netbeans.modules.lexer/2 1.19.0 1 | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Language | |
---|---|
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 Language in org.netbeans.api.lexer |
---|
Methods in org.netbeans.api.lexer that return Language | |
---|---|
static Language<? extends TokenId> |
Language.find(String mimePath)
Finds a language by its mime type. |
Language<? extends TokenId> |
LanguagePath.innerLanguage()
Return the most inner language of this path. |
Language<T> |
TokenSequence.language()
Get the language describing token ids used by tokens in this token sequence. |
Language<T> |
TokenChange.language()
Get the language describing token ids used by tokens contained in this token change. |
Language<? extends TokenId> |
LanguagePath.language(int index)
Get language of this language path at the given index. |
Language<? extends TokenId> |
LanguagePath.topLanguage()
Return the top-level language of this language path. |
Methods in org.netbeans.api.lexer with parameters of type Language | ||
---|---|---|
static
|
TokenHierarchy.create(CharSequence inputText,
boolean copyInputText,
Language<T> language,
Set<T> skipTokenIds,
InputAttributes inputAttributes)
Create token hierarchy for the given input text. |
|
static TokenHierarchy<Void> |
TokenHierarchy.create(CharSequence inputText,
Language<? extends TokenId> language)
Create token hierarchy for the given non-mutating input text (for example java.lang.String). |
|
static
|
TokenHierarchy.create(Reader inputReader,
Language<T> language,
Set<T> skipTokenIds,
InputAttributes inputAttributes)
Create token hierarchy for the given reader. |
|
boolean |
TokenSequence.createEmbedding(Language<? extends TokenId> embeddedLanguage,
int startSkipLength,
int endSkipLength)
Create language embedding without joining of the embedded sections. |
|
boolean |
TokenSequence.createEmbedding(Language<? extends TokenId> embeddedLanguage,
int startSkipLength,
int endSkipLength,
boolean joinSections)
Create language embedding described by the given parameters. |
|
LanguagePath |
LanguagePath.embedded(Language<? extends TokenId> language)
Get embedded path of this language path. |
|
|
TokenSequence.embedded(Language<ET> embeddedLanguage)
Get embedded token sequence if the token to which this token sequence is currently positioned has a language embedding. |
|
|
TokenChange.embeddedChange(Language<T> language)
Get embedded token change of the given type. |
|
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. |
|
boolean |
LanguagePath.isInnerLanguage(Language<? extends TokenId> language)
Check whether the most inner language of this language path is the given language. |
|
boolean |
LanguagePath.isLanguage(int index,
Language<? extends TokenId> language)
Check whether the language of this language path at the given index is the given language. |
|
boolean |
LanguagePath.isTopLanguage(Language<? extends TokenId> language)
Check whether the top-level language of this language path is the given language. |
|
void |
InputAttributes.setValue(Language<? extends TokenId> language,
Object attributeKey,
Object attributeValue,
boolean global)
Assign a new value to a property for the language path constructed from the given language. |
|
|
TokenHierarchyEvent.tokenChange(Language<T> language)
Get the token change if the top level of the token hierarchy contains tokens of the given language. |
|
|
TokenHierarchy.tokenSequence(Language<T> language)
Get token sequence of the top level of the language hierarchy only if it's of the given language. |
Uses of Language in org.netbeans.spi.lexer |
---|
Methods in org.netbeans.spi.lexer that return Language | |
---|---|
abstract Language<? extends TokenId> |
LanguageProvider.findLanguage(String mimePath)
Finds Language for a given mime path. |
protected abstract Language<? extends TokenId> |
MutableTextInput.language()
Get the language suitable for lexing of this input. |
Language<T> |
LanguageHierarchy.language()
Get language constructed for this language hierarchy based on token ids and token categories provided. |
Language<T> |
LanguageEmbedding.language()
Get the embedded language. |
Methods in org.netbeans.spi.lexer with parameters of type Language | ||
---|---|---|
static
|
LanguageEmbedding.create(Language<T> language,
int startSkipLength,
int endSkipLength)
Create language embedding that does not join embedded sections. |
|
static
|
LanguageEmbedding.create(Language<T> language,
int startSkipLength,
int endSkipLength,
boolean joinSections)
Construct new language embedding for the given parameters or get an existing cached one. |
|
org.netbeans.modules.lexer/2 1.19.0 1 | |||||||||
PREV NEXT | FRAMES NO FRAMES |