jfun.parsec
Class PositionedToken

java.lang.Object
  extended by jfun.parsec.PositionedToken
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Tok

Deprecated. Use Tok instead.

public class PositionedToken
extends java.lang.Object
implements java.io.Serializable

This class carries the position information of a token.

Author:
Ben Yu 2004-11-7
See Also:
Serialized Form

Constructor Summary
PositionedToken(int i, int l, java.lang.Object tok)
          Deprecated. Create a PositionedToken object.
 
Method Summary
 int getIndex()
          Deprecated. gets the index of the token in the orginal CharSequence.
 int getLength()
          Deprecated. Gets the length of the token.
 java.lang.Object getToken()
          Deprecated. gets the token.
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PositionedToken

public PositionedToken(int i,
                       int l,
                       java.lang.Object tok)
Deprecated. 
Create a PositionedToken object.

Parameters:
i - the starting index.
l - the length of the token.
tok - the token.
Method Detail

getLength

public int getLength()
Deprecated. 
Gets the length of the token.

Returns:
the length of the token.

getIndex

public int getIndex()
Deprecated. 
gets the index of the token in the orginal CharSequence.

Returns:
the index.

getToken

public java.lang.Object getToken()
Deprecated. 
gets the token.

Returns:
the token.

toString

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