jfun.parsec.tokens
Class TokenCharLiteral

java.lang.Object
  extended by jfun.parsec.tokens.TokenCharLiteral
All Implemented Interfaces:
java.io.Serializable

Deprecated.

@Deprecated
public class TokenCharLiteral
extends java.lang.Object
implements java.io.Serializable

Represents a character.

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

Method Summary
static Tokenizer getTokenizer()
          Deprecated. Creates a tokenizer that's gonna tokenize a single quoted character literal possibly with escape character '\'
static char tokenize(java.lang.CharSequence cs, int from, int len)
          Deprecated. convert the characters contained in range [from, from+len) to a character.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

tokenize

public static char tokenize(java.lang.CharSequence cs,
                            int from,
                            int len)
Deprecated. 
convert the characters contained in range [from, from+len) to a character.

Parameters:
cs - the character sequence.
from - the starting index.
len - the length of the range.
Returns:
the character.

getTokenizer

public static Tokenizer getTokenizer()
Deprecated. 
Creates a tokenizer that's gonna tokenize a single quoted character literal possibly with escape character '\'

Returns:
the tokenizer instance.