Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.sablecc.sablecc.node
Class Token  view Token download Token.java

java.lang.Object
  extended byorg.sablecc.sablecc.node.Node
      extended byorg.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


Field Summary
private  int line
           
private  int pos
           
private  java.lang.String text
           
 
Fields inherited from class org.sablecc.sablecc.node.Node
 
Constructor Summary
Token()
           
 
Method Summary
 int getLine()
           
 int getPos()
           
 java.lang.String getText()
           
(package private)  void removeChild(Node child)
           
 void setLine(int line)
           
 void setPos(int pos)
           
 void setText(java.lang.String text)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class org.sablecc.sablecc.node.Node
getId, getIn, getOut, getParent, setIn, setOut, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.sablecc.sablecc.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

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