ResultToken

Undocumented in source.

Constructors

this
this(int type, Variant text)
Undocumented in source.
this
this(TokenFactorySourcePair source, int type, int channel, size_t start, size_t stop)
Undocumented in source.

Members

Functions

getText
Variant getText()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

srcName
string srcName;
Undocumented in source.

Inherited Members

From CommonToken

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
size_t index;

This is the backing field for {@link #getTokenIndex} and {@link #setTokenIndex}.

startIndex_
size_t startIndex_;

This is the backing field for {@link #getStartIndex} and {@link #setStartIndex}. @uml @read @write

stopIndex_
size_t 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()

@uml @override

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()

@uml @override

getCharPositionInLine
int getCharPositionInLine()

@uml @override

setCharPositionInLine
void setCharPositionInLine(int charPositionInLine)
Undocumented in source. Be warned that the author may not have intended to support it.
getChannel
int getChannel()

@uml @override

setChannel
void setChannel(int channel)

@uml @override

setType
void setType(int type)

@uml @override

getTokenIndex
size_t getTokenIndex()

@uml @override

setTokenIndex
void setTokenIndex(size_t index)

@uml @override

getTokenSource
TokenSource getTokenSource()

@uml @override

getInputStream
CharStream getInputStream()

@uml @override

toString
string toString()

@uml @override

startIndex
size_t startIndex()
Undocumented in source. Be warned that the author may not have intended to support it.
startIndex
void startIndex(size_t startIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
stopIndex
size_t stopIndex()
Undocumented in source. Be warned that the author may not have intended to support it.
stopIndex
void stopIndex(size_t stopIndex)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta