jfun.parsec.tokens
Class TokenString

java.lang.Object
  extended by jfun.parsec.tokens.TokenString
All Implemented Interfaces:
java.io.Serializable, Tokenizer

Deprecated.

@Deprecated
public final class TokenString
extends java.lang.Object
implements Tokenizer, java.io.Serializable

This implementation of Tokenizer transforms the recognized character range to a String.

Author:
Ben Yu Dec 20, 2004
See Also:
Serialized Form

Method Summary
static Tokenizer getTokenizer()
          Deprecated. Get the Tokenizer instance.
 java.lang.Object toToken(java.lang.CharSequence cs, int from, int len)
          Deprecated. interprets the matched input range to a token object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTokenizer

public static Tokenizer getTokenizer()
Deprecated. 
Get the Tokenizer instance.

Returns:
the Tokenizer instance.

toToken

public java.lang.Object toToken(java.lang.CharSequence cs,
                                int from,
                                int len)
Deprecated. 
Description copied from interface: Tokenizer
interprets the matched input range to a token object.

Specified by:
toToken in interface Tokenizer
Parameters:
cs - - the input
from - - the starting point
len - - the length of the range
Returns:
- the token object.