jfun.parsec
public class PositionedToken extends Object implements Serializable
Deprecated: Use Tok instead.
This class carries the position information of a token.Constructor Summary | |
---|---|
PositionedToken(int i, int l, Object tok)
Create a PositionedToken object. |
Method Summary | |
---|---|
int | getIndex()
gets the index of the token in the orginal CharSequence. |
int | getLength()
Gets the length of the token. |
Object | getToken()
gets the token. |
String | toString() |
Parameters: i the starting index. l the length of the token. tok the token.
Returns: the index.
Returns: the length of the token.
Returns: the token.