antlr
Class CommonToken

java.lang.Object
  |
  +--antlr.Token
        |
        +--antlr.CommonToken
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
CommonHiddenStreamToken

public class CommonToken
extends Token

Untamed:


Field Summary
protected  int col
           
protected  int line
           
protected  String text
           
 
Fields inherited from class antlr.Token
badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP, type
 
Constructor Summary
CommonToken()
          Enabled:
CommonToken(int t, String txt)
          Enabled:
CommonToken(String s)
          Enabled:
 
Method Summary
 int getColumn()
          Enabled: Return token's start column
 int getLine()
          Enabled:
 String getText()
          Enabled:
 void setColumn(int c)
          Enabled:
 void setLine(int l)
          Enabled:
 void setText(String s)
          Enabled:
 String toString()
          Suppressed:
 
Methods inherited from class antlr.Token
getType, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

line

protected int line

text

protected String text

col

protected int col
Constructor Detail

CommonToken

public CommonToken()
Enabled:


CommonToken

public CommonToken(int t,
                   String txt)
Enabled:


CommonToken

public CommonToken(String s)
Enabled:

Method Detail

getLine

public int getLine()
Enabled:

Overrides:
getLine in class Token

getText

public String getText()
Enabled:

Overrides:
getText in class Token

setLine

public void setLine(int l)
Enabled:

Overrides:
setLine in class Token

setText

public void setText(String s)
Enabled:

Overrides:
setText in class Token

toString

public String toString()
Suppressed:

Overrides:
toString in class Token
Returns:
a string representation of the object.

getColumn

public int getColumn()
Enabled: Return token's start column

Overrides:
getColumn in class Token

setColumn

public void setColumn(int c)
Enabled:

Overrides:
setColumn in class Token


comments?