antlr
Class Token
java.lang.Object
antlr.Token
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- CommonToken
- public class Token
- extends java.lang.Object
- implements java.lang.Cloneable
A token is minimally a token type. Subclasses can add the text matched
for the token and line info.
Constructor Summary |
Token()
|
Token(int t)
|
Token(int t,
java.lang.String txt)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MIN_USER_TYPE
public static final int MIN_USER_TYPE
- See Also:
- Constant Field Values
NULL_TREE_LOOKAHEAD
public static final int NULL_TREE_LOOKAHEAD
- See Also:
- Constant Field Values
INVALID_TYPE
public static final int INVALID_TYPE
- See Also:
- Constant Field Values
EOF_TYPE
public static final int EOF_TYPE
- See Also:
- Constant Field Values
SKIP
public static final int SKIP
- See Also:
- Constant Field Values
badToken
public static Token badToken
Token
public Token()
Token
public Token(int t)
Token
public Token(int t,
java.lang.String txt)
getColumn
public int getColumn()
getLine
public int getLine()
getFilename
public java.lang.String getFilename()
setFilename
public void setFilename(java.lang.String name)
getText
public java.lang.String getText()
setText
public void setText(java.lang.String t)
setColumn
public void setColumn(int c)
setLine
public void setLine(int l)
getType
public int getType()
setType
public void setType(int t)
toString
public java.lang.String toString()