- EMPTY_SOURCE
TokenFactorySourcePair EMPTY_SOURCE;
An empty {@link Pair} which is used as the default value of
{@link #source} for tokens that do not have a source.
- type
int type;
This is the backing field for {@link #getType} and {@link #setType}.
- line
int line;
This is the backing field for {@link #getLine} and {@link #setLine}.
- charPositionInLine
int charPositionInLine;
This is the backing field for {@link #getCharPositionInLine} and
{@link #setCharPositionInLine}.
- channel
int channel;
This is the backing field for {@link #getChannel} and
{@link #setChannel}.
- source
TokenFactorySourcePair source;
This is the backing field for {@link #getTokenSource} and
{@link #getInputStream}.
- text
Variant text;
This is the backing field for {@link #getText} when the token text is
explicitly set in the constructor or via {@link #setText}.
- index
int index;
This is the backing field for {@link #getTokenIndex} and
{@link #setTokenIndex}.
- startIndex_
int startIndex_;
This is the backing field for {@link #getStartIndex} and
{@link #setStartIndex}.
@uml
@read
@write
- stopIndex_
int stopIndex_;
This is the backing field for {@link #getStopIndex} and
{@link #setStopIndex}.
@uml
@read
@write
- getType
int getType()
Undocumented in source. Be warned that the author may not have intended to support it.
- setLine
void setLine(int line)
Undocumented in source. Be warned that the author may not have intended to support it.
- getText
Variant getText()
- setText
void setText(Variant text)
Explicitly set the text for this token. If {code text} is not
{@code null}, then {@link #getText} will return this value rather than
extracting the text from the input.
- getLine
int getLine()
- getCharPositionInLine
int getCharPositionInLine()
- setCharPositionInLine
void setCharPositionInLine(int charPositionInLine)
Undocumented in source. Be warned that the author may not have intended to support it.
- getChannel
int getChannel()
- setChannel
void setChannel(int channel)
- setType
void setType(int type)
- getTokenIndex
int getTokenIndex()
- setTokenIndex
void setTokenIndex(int index)
- getTokenSource
TokenSource getTokenSource()
- getInputStream
CharStream getInputStream()
- toString
string toString()
- startIndex
int startIndex()
Undocumented in source. Be warned that the author may not have intended to support it.
- startIndex
void startIndex(int startIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
- stopIndex
int stopIndex()
Undocumented in source. Be warned that the author may not have intended to support it.
- stopIndex
void stopIndex(int stopIndex)
Undocumented in source. Be warned that the author may not have intended to support it.