Package nl.rrd.wool.parser
Enum WoolBodyToken.Type
- java.lang.Object
-
- java.lang.Enum<WoolBodyToken.Type>
-
- nl.rrd.wool.parser.WoolBodyToken.Type
-
- All Implemented Interfaces:
Serializable,Comparable<WoolBodyToken.Type>
- Enclosing class:
- WoolBodyToken
public static enum WoolBodyToken.Type extends Enum<WoolBodyToken.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMAND_ENDCOMMAND_STARTQUOTED_STRINGValue: WoolVariableStringREPLY_ENDREPLY_SEPARATORREPLY_STARTTEXTValue: text with escaped characters resolvedVARIABLEValue: variable name
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WoolBodyToken.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static WoolBodyToken.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEXT
public static final WoolBodyToken.Type TEXT
Value: text with escaped characters resolved
-
COMMAND_START
public static final WoolBodyToken.Type COMMAND_START
-
COMMAND_END
public static final WoolBodyToken.Type COMMAND_END
-
REPLY_START
public static final WoolBodyToken.Type REPLY_START
-
REPLY_END
public static final WoolBodyToken.Type REPLY_END
-
REPLY_SEPARATOR
public static final WoolBodyToken.Type REPLY_SEPARATOR
-
QUOTED_STRING
public static final WoolBodyToken.Type QUOTED_STRING
Value: WoolVariableString
-
VARIABLE
public static final WoolBodyToken.Type VARIABLE
Value: variable name
-
-
Method Detail
-
values
public static WoolBodyToken.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WoolBodyToken.Type c : WoolBodyToken.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WoolBodyToken.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-