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 |
---|---|
abstract PartType |
Token.partType()
Check whether this token represents a complete token
or whether it's a particular part of a complete token.
|
static PartType |
PartType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PartType[] |
PartType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Token<T> |
TokenFactory.createCustomTextToken(T id,
CharSequence text,
int length,
PartType partType)
Deprecated.
This method is deprecated without replacement - see description
how a similar effect can be obtained.
|
Token<T> |
TokenFactory.createPropertyToken(T id,
int length,
TokenPropertyProvider<T> propertyProvider,
PartType partType)
Create token with properties.
|
Token<T> |
TokenFactory.createToken(T id,
int length,
PartType partType)
Create regular token instance with an explicit length and part type.
|