Dresden OCL Toolkit

tudresden.ocl.parser.node
Class Token

java.lang.Object
  extended bytudresden.ocl.parser.node.Node
      extended bytudresden.ocl.parser.node.Token
All Implemented Interfaces:
Cloneable, Switchable
Direct Known Subclasses:
EOF, TAnd, TApostroph, TArrow, TAt, TBar, TBlank, TBool, TChannel, TColon, TComma, TComment, TContext, TDcolon, TDdot, TDiv, TDot, TEndif, TEnum, TEqual, TGt, TGteq, TImplies, TInt, TLBrace, TLBracket, TLPar, TLt, TLteq, TMinus, TMult, TName, TNEqual, TNewLine, TNot, TOr, TPlus, TRBrace, TRBracket, TReal, TRPar, TSemicolon, TSimpleTypeName, TStringLit, TTab, TTBag, TTCollection, TTElse, TTIf, TTIn, TTInv, TTLet, TTPost, TTPre, TTSequence, TTSet, TTThen, TXor

public abstract class Token
extends Node


Field Summary
private  int line
           
private  int pos
           
private  String text
           
 
Fields inherited from class tudresden.ocl.parser.node.Node
 
Constructor Summary
Token()
           
 
Method Summary
 int getLine()
           
 int getPos()
           
 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(String text)
           
 String toString()
           
 
Methods inherited from class tudresden.ocl.parser.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 tudresden.ocl.parser.node.Switchable
apply
 

Field Detail

text

private String text

line

private int line

pos

private int pos
Constructor Detail

Token

public Token()
Method Detail

getText

public String getText()

setText

public void setText(String text)

getLine

public int getLine()

setLine

public void setLine(int line)

getPos

public int getPos()

setPos

public void setPos(int pos)

toString

public String toString()

removeChild

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

replaceChild

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

Dresden OCL Toolkit

Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.