antlr
Class CommonToken
java.lang.Object
|
+--antlr.Token
|
+--antlr.CommonToken
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- CommonHiddenStreamToken
- public class CommonToken
- extends Token
Field Summary |
protected int |
col
|
protected int |
line
|
protected java.lang.String |
text
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
line
protected int line
text
protected java.lang.String text
col
protected int col
CommonToken
public CommonToken()
CommonToken
public CommonToken(int t,
java.lang.String txt)
CommonToken
public CommonToken(java.lang.String s)
getLine
public int getLine()
- Overrides:
getLine
in class Token
getText
public java.lang.String getText()
- Overrides:
getText
in class Token
setLine
public void setLine(int l)
- Overrides:
setLine
in class Token
setText
public void setText(java.lang.String s)
- Overrides:
setText
in class Token
toString
public java.lang.String toString()
- Overrides:
toString
in class Token
getColumn
public int getColumn()
- Return token's start column
- Overrides:
getColumn
in class Token
setColumn
public void setColumn(int c)
- Overrides:
setColumn
in class Token