java.lang.Object
org.sablecc.sablecc.node.Node
org.sablecc.sablecc.node.Token
- All Implemented Interfaces:
- org.sablecc.sablecc.Switchable
- Direct Known Subclasses:
- EOF, TAbstract, TArrow, TBar, TBlank, TChar, TColon, TComma, TComment, TDDot, TDecChar, TDot, TEqual, THelpers, THexChar, TId, TIgnored, TLBkt, TLBrace, TLPar, TMinus, TNew, TNull, TPackage, TPkgId, TPlus, TProductions, TProductionSpecifier, TQMark, TRBkt, TRBrace, TRPar, TSemicolon, TSlash, TStar, TStates, TString, TSyntax, TTokens, TTokenSpecifier, TTree
- public abstract class Token
- extends Node
| Fields inherited from class org.sablecc.sablecc.node.Node |
|
|
Constructor Summary |
Token()
|
text
private java.lang.String text
line
private int line
pos
private int pos
Token
public Token()
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
getText
public java.lang.String getText()
setText
public void setText(java.lang.String text)
getLine
public int getLine()
setLine
public void setLine(int line)
getPos
public int getPos()
setPos
public void setPos(int pos)
removeChild
void removeChild(Node child)
- Specified by:
removeChild in class Node