|
org.netbeans.modules.lexer/2 1.19.0 1 | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use TokenHierarchy | |
---|---|
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 TokenHierarchy in org.netbeans.api.lexer |
---|
Methods in org.netbeans.api.lexer that return TokenHierarchy | ||
---|---|---|
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. |
|
TokenHierarchy<I> |
TokenHierarchy.createSnapshot()
Create a snapshot of the present mutable token hierarchy. |
|
static
|
TokenHierarchy.get(D doc)
Get or create mutable token hierarchy for the given swing document. |
|
TokenHierarchy<I> |
TokenHierarchy.snapshotOf()
If this token hierarchy is snapshot then return the token hierarchy for which this snapshot was constructed. |
|
TokenHierarchy<?> |
TokenHierarchyEvent.tokenHierarchy()
Get source of this event as a token hierarchy instance. |
Methods in org.netbeans.api.lexer with parameters of type TokenHierarchy | |
---|---|
abstract int |
Token.offset(TokenHierarchy<?> tokenHierarchy)
Get the offset at which this token is present in the input or -1 if this token is flyweight (and therefore does not store offset). |
Uses of TokenHierarchy in org.netbeans.spi.lexer |
---|
Methods in org.netbeans.spi.lexer that return TokenHierarchy | |
---|---|
TokenHierarchy<I> |
TokenHierarchyControl.tokenHierarchy()
|
|
org.netbeans.modules.lexer/2 1.19.0 1 | |||||||||
PREV NEXT | FRAMES NO FRAMES |