Enum Constant Summary
Enum Constants
{#foo test /} and no helper registered for foo
{#if test}Hello{#else}Hi{/elsa}{/if}
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Implementations are encouraged to use a prefix for a group of related problems, i.e. the parser error codes start with
PARSER_.
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
INVALID_IDENTIFIER
{fo\to}
EMPTY_EXPRESSION
{data: }
MANDATORY_SECTION_PARAMS_MISSING
public static final ParserError MANDATORY_SECTION_PARAMS_MISSING
{#include /}
UNTERMINATED_STRING_LITERAL
public static final ParserError UNTERMINATED_STRING_LITERAL
{#if 'foo is null}{/}
NO_SECTION_NAME
{# foo=1 /}
NO_SECTION_HELPER_FOUND
public static final ParserError NO_SECTION_HELPER_FOUND
{#foo test /} and no helper registered for foo
SECTION_END_DOES_NOT_MATCH_START
public static final ParserError SECTION_END_DOES_NOT_MATCH_START
{#if test}Hello {name}!{/for}
SECTION_BLOCK_END_DOES_NOT_MATCH_START
public static final ParserError SECTION_BLOCK_END_DOES_NOT_MATCH_START
{#if test}Hello{#else}Hi{/elsa}{/if}
SECTION_START_NOT_FOUND
public static final ParserError SECTION_START_NOT_FOUND
{#if true}Bye...{/if} Hello {/if}
INVALID_PARAM_DECLARATION
public static final ParserError INVALID_PARAM_DECLARATION
UNTERMINATED_SECTION
{#if test}Hello {name}
UNTERMINATED_EXPRESSION
public static final ParserError UNTERMINATED_EXPRESSION
{name
UNTERMINATED_STRING_LITERAL_OR_COMPOSITE_PARAMETER
public static final ParserError UNTERMINATED_STRING_LITERAL_OR_COMPOSITE_PARAMETER
{#if (foo || bar}{/}
INVALID_VIRTUAL_METHOD
{foo.baz()(}
INVALID_BRACKET_EXPRESSION
public static final ParserError INVALID_BRACKET_EXPRESSION
{foo.baz[}
INVALID_VALUE_BRACKET_NOTATION
public static final ParserError INVALID_VALUE_BRACKET_NOTATION
{foo[bar]}
Method Details
values
Returns an array containing the constants of this enum class, in
the order they are declared.
Returns:
an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (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 class has no constant with the specified name
NullPointerException - if the argument is null
getName
Implementations are encouraged to use a prefix for a group of related problems, i.e. the parser error codes start with
PARSER_.
Specified by:
getName in interface ErrorCode
Returns:
the unique name