Enum TemplateToken
- java.lang.Object
-
- java.lang.Enum<TemplateToken>
-
- org.webpieces.templatingdev.impl.source.TemplateToken
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TemplateToken>
public enum TemplateToken extends java.lang.Enum<TemplateToken>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABSOLUTE_ACTIONACTIONCOMMENTEND_TAGEOFESCAPEEXPRFILE_VERIFYMESSAGEPLAINSCRIPTSTART_END_TAGSTART_TAG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEnd()java.lang.StringgetStart()booleanmatchesEnd(char c, char c1, char c2)booleanmatchesStart(char c, char c1, char c2)static TemplateTokenvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TemplateToken[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EOF
public static final TemplateToken EOF
-
PLAIN
public static final TemplateToken PLAIN
-
SCRIPT
public static final TemplateToken SCRIPT
-
FILE_VERIFY
public static final TemplateToken FILE_VERIFY
-
EXPR
public static final TemplateToken EXPR
-
START_TAG
public static final TemplateToken START_TAG
-
END_TAG
public static final TemplateToken END_TAG
-
START_END_TAG
public static final TemplateToken START_END_TAG
-
MESSAGE
public static final TemplateToken MESSAGE
-
ACTION
public static final TemplateToken ACTION
-
ABSOLUTE_ACTION
public static final TemplateToken ABSOLUTE_ACTION
-
COMMENT
public static final TemplateToken COMMENT
-
ESCAPE
public static final TemplateToken ESCAPE
-
-
Method Detail
-
values
public static TemplateToken[] 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 (TemplateToken c : TemplateToken.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TemplateToken valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getStart
public java.lang.String getStart()
-
getEnd
public java.lang.String getEnd()
-
matchesStart
public boolean matchesStart(char c, char c1, char c2)
-
matchesEnd
public boolean matchesEnd(char c, char c1, char c2)
-
-