| org.netbeans.lib.lexer.token.TextToken
TextToken | public class TextToken extends AbstractToken (Code) | | Token with an explicit text - either serving as a custom text token
or a flyweight token.
The represented text can differ from the original content
of the recognized text input portion.
Token with the custom text cannot be branched by a language embedding.
The text token can act as a flyweight token by calling
AbstractToken.makeFlyweight() . In such case a single token
instance is shared for all the occurrences of the token.
The rawOffset is -1 and tokenList reference is null.
author: Miloslav Metelka version: 1.00 |
TextToken | public TextToken(T id, CharSequence text)(Code) | | Create text token. The token's text
is expected to correspond to the recognized input portion
(i.e. the text is not custom).
The token can be made flyweight by using setRawOffset(-1) .
Parameters: id - non-null identification of the token. Parameters: text - non-null text of the token. |
length | final public int length()(Code) | | |
|
|