Enum MustacheTokenType
- java.lang.Object
-
- java.lang.Enum<MustacheTokenType>
-
- org.pipservices3.expressions.mustache.parsers.MustacheTokenType
-
- All Implemented Interfaces:
Serializable,Comparable<MustacheTokenType>,Constable
public enum MustacheTokenType extends Enum<MustacheTokenType>
Define types of mustache tokens.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CommentEscapedVariableInvertedSectionPartialSectionSectionEndUnknownValueVariable
-
Method Summary
Modifier and Type Method Description static MustacheTokenTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MustacheTokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Unknown
public static final MustacheTokenType Unknown
-
Value
public static final MustacheTokenType Value
-
Variable
public static final MustacheTokenType Variable
-
EscapedVariable
public static final MustacheTokenType EscapedVariable
-
Section
public static final MustacheTokenType Section
-
InvertedSection
public static final MustacheTokenType InvertedSection
-
SectionEnd
public static final MustacheTokenType SectionEnd
-
Partial
public static final MustacheTokenType Partial
-
Comment
public static final MustacheTokenType Comment
-
-
Method Detail
-
values
public static MustacheTokenType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MustacheTokenType 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
-
-