jfun.parsec
Class Tok

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

public final class Tok
extends PositionedToken

This class carries the position information of a token.

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

Constructor Summary
Tok(int i, int l, java.lang.Object tok)
          Create a Tok object.
 
Method Summary
 
Methods inherited from class jfun.parsec.PositionedToken
getIndex, getLength, getToken, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tok

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

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