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

Quick Search    Search Deep

org.media.mn8.util.textparser
Class Token  view Token download Token.java

java.lang.Object
  extended byorg.media.mn8.util.textparser.Token
Direct Known Subclasses:
EmptyLine, Paragraph

public abstract class Token
extends java.lang.Object

Version:
$Revision: 1.8 $ $Date: 2002/07/02 01:44:41 $

Field Summary
protected  Token _firstChild
           
protected  Token _nextToken
           
protected  Token _previousToken
           
protected  java.lang.StringBuffer _value
           
 int startColumnNr
           
 int startLineNr
           
 
Constructor Summary
Token()
           
 
Method Summary
 Token getFirstChild()
           
 Token getNextToken()
           
 Token getPreviousToken()
           
 int getTokenType()
           
 java.lang.StringBuffer getValue()
           
 void setFirstChild(Token firstChild)
           
 void setNextToken(Token nextToken)
           
 void setPreviousToken(Token previousToken)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 java.lang.String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

startLineNr

public int startLineNr

startColumnNr

public int startColumnNr

_nextToken

protected Token _nextToken

_previousToken

protected Token _previousToken

_firstChild

protected Token _firstChild

_value

protected java.lang.StringBuffer _value
Constructor Detail

Token

public Token()
Method Detail

getTokenType

public int getTokenType()

setNextToken

public void setNextToken(Token nextToken)

getNextToken

public Token getNextToken()

setPreviousToken

public void setPreviousToken(Token previousToken)

getPreviousToken

public Token getPreviousToken()

setFirstChild

public void setFirstChild(Token firstChild)

getFirstChild

public Token getFirstChild()

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()).


toXML

public java.lang.String toXML()

getValue

public java.lang.StringBuffer getValue()