org.sablecc.sablecc.node
Class Token

java.lang.Object
  extended by org.sablecc.sablecc.node.Node
      extended by org.sablecc.sablecc.node.Token
All Implemented Interfaces:
java.lang.Cloneable, 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


Field Summary
private  int line
           
private  int pos
           
private  java.lang.String text
           
 
Constructor Summary
Token()
           
 
Method Summary
 int getLine()
           
 int getPos()
           
 java.lang.String getText()
           
(package private)  void removeChild(Node child)
           
(package private)  void replaceChild(Node oldChild, Node newChild)
           
 void setLine(int line)
           
 void setPos(int pos)
           
 void setText(java.lang.String text)
           
 java.lang.String toString()
           
 
Methods inherited from class org.sablecc.sablecc.node.Node
clone, cloneList, cloneNode, parent, parent, replaceBy, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.sablecc.sablecc.node.Switchable
apply
 

Field Detail

text

private java.lang.String text

line

private int line

pos

private int pos
Constructor Detail

Token

public Token()
Method Detail

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)

toString

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

removeChild

void removeChild(Node child)
Specified by:
removeChild in class Node

replaceChild

void replaceChild(Node oldChild,
                  Node newChild)
Specified by:
replaceChild in class Node