antlr
Class Token

java.lang.Object
  extended byantlr.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.


Field Summary
static Token badToken
           
static int EOF_TYPE
           
static int INVALID_TYPE
           
static int MIN_USER_TYPE
           
static int NULL_TREE_LOOKAHEAD
           
static int SKIP
           
 
Constructor Summary
Token()
           
Token(int t)
           
Token(int t, java.lang.String txt)
           
 
Method Summary
 int getColumn()
           
 java.lang.String getFilename()
           
 int getLine()
           
 java.lang.String getText()
           
 int getType()
           
 void setColumn(int c)
           
 void setFilename(java.lang.String name)
           
 void setLine(int l)
           
 void setText(java.lang.String t)
           
 void setType(int t)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Token

public Token()

Token

public Token(int t)

Token

public Token(int t,
             java.lang.String txt)
Method Detail

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