| java.lang.Object org.antlr.runtime.ClassicToken
ClassicToken | public class ClassicToken implements Token(Code) | | A Token object like we'd use in ANTLR 2.x; has an actual string created
and associated with this object. These objects are needed for imaginary
tree nodes that have payload objects. We need to create a Token object
that has a string; the tree node will point at this token. CommonToken
has indexes into a char stream and hence cannot be used to introduce
new strings.
|
channel | protected int channel(Code) | | |
charPositionInLine | protected int charPositionInLine(Code) | | |
index | protected int index(Code) | | What token number is this from 0..n-1 tokens
|
ClassicToken | public ClassicToken(int type)(Code) | | |
ClassicToken | public ClassicToken(int type, String text)(Code) | | |
ClassicToken | public ClassicToken(int type, String text, int channel)(Code) | | |
getChannel | public int getChannel()(Code) | | |
getCharPositionInLine | public int getCharPositionInLine()(Code) | | |
getLine | public int getLine()(Code) | | |
getTokenIndex | public int getTokenIndex()(Code) | | |
getType | public int getType()(Code) | | |
setChannel | public void setChannel(int channel)(Code) | | |
setCharPositionInLine | public void setCharPositionInLine(int charPositionInLine)(Code) | | |
setLine | public void setLine(int line)(Code) | | |
setTokenIndex | public void setTokenIndex(int index)(Code) | | |
setType | public void setType(int type)(Code) | | |
|
|