antlr
Class Token

java.lang.Object
  |
  +--antlr.Token
All Implemented Interfaces:
java.lang.Cloneable

public class Token
extends java.lang.Object
implements java.lang.Cloneable

Modification made by Mohammed Imran included getLength() method


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
           
(package private)  int type
           
 
Constructor Summary
Token()
           
Token(int t)
           
Token(int t, java.lang.String txt)
           
 
Method Summary
 int getColumn()
           
 int getLength()
           
 int getLine()
           
 java.lang.String getText()
           
 int getType()
           
 void setColumn(int c)
           
 void setLength(int newLength)
           
 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
clone, equals, finalize, 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

type

int type

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

getText

public java.lang.String getText()

getType

public int getType()

setColumn

public void setColumn(int c)

setLine

public void setLine(int l)

setText

public void setText(java.lang.String t)

setType

public void setType(int t)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getLength

public int getLength()

setLength

public void setLength(int newLength)