|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.parsec.ConstTokenizer
public final class ConstTokenizer
This tokenizer will always return the same token regardless of the input range.
| Method Summary | |
|---|---|
static Tokenizer |
instance(java.lang.Object t)
Creates the Tokenizer instance. |
java.lang.Object |
toToken(java.lang.CharSequence cs,
int from,
int len)
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 |
|---|
public java.lang.Object toToken(java.lang.CharSequence cs,
int from,
int len)
Tokenizer
toToken in interface Tokenizercs - - the inputfrom - - the starting pointlen - - the length of the range
public static Tokenizer instance(java.lang.Object t)
t - the token to be returned by the tokenizer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||