|
terp - the Codemesh Modular Template Interpreter v1.3.309 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<TokenizerState>
com.codemesh.terp.api.TokenizerState
public enum TokenizerState
The supported tokenizer states. Tokenizer states are used to switch between different interpretations of the same character depending on the mode or state that the tokenizer is in.
When the tokenizer is in EXPRESSION mode, the input 3+4 will result in three tokens (numeric literal, plus, numeric literal). When the tokenizer is in TEXT mode, the result will be one text token containing the full expression "3+4" as a string. SCRIPT mode is an extension of EXPRESSION mode. In SCRIPT mode, the semicolon is interpreted as an expression terminator that may preceed an additional expression (list).
| Enum Constant Summary | |
|---|---|
EXPRESSION
|
|
SCRIPT
|
|
TEXT
|
|
| Method Summary | |
|---|---|
static TokenizerState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TokenizerState[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final TokenizerState TEXT
public static final TokenizerState EXPRESSION
public static final TokenizerState SCRIPT
| Method Detail |
|---|
public static TokenizerState[] values()
for (TokenizerState c : TokenizerState.values()) System.out.println(c);
public static TokenizerState valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
|
terp - the Codemesh Modular Template Interpreter v1.3.309 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||