Package io.quarkus.qute
Enum ParserError
- java.lang.Object
-
- java.lang.Enum<ParserError>
-
- io.quarkus.qute.ParserError
-
- All Implemented Interfaces:
ErrorCode
,Serializable
,Comparable<ParserError>
public enum ParserError extends Enum<ParserError> implements ErrorCode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EMPTY_EXPRESSION
{data: }
GENERAL_ERROR
INVALID_BRACKET_EXPRESSION
{foo.baz[}
INVALID_IDENTIFIER
{fo\to}
INVALID_PARAM_DECLARATION
INVALID_VALUE_BRACKET_NOTATION
{foo[bar]}
INVALID_VIRTUAL_METHOD
{foo.baz()(}
MANDATORY_SECTION_PARAMS_MISSING
{#include /}
NO_SECTION_HELPER_FOUND
{#foo test /}
and no helper registered forfoo
NO_SECTION_NAME
{# foo=1 /}
SECTION_BLOCK_END_DOES_NOT_MATCH_START
{#if test}Hello{#else}Hi{/elsa}{/if}
SECTION_END_DOES_NOT_MATCH_START
{#if test}Hello {name}!{/for}
SECTION_START_NOT_FOUND
{#if true}Bye...{/if} Hello {/if}
UNTERMINATED_EXPRESSION
{name
UNTERMINATED_SECTION
{#if test}Hello {name}
UNTERMINATED_STRING_LITERAL
{#if 'foo is null}{/}
UNTERMINATED_STRING_LITERAL_OR_COMPOSITE_PARAMETER
{#if (foo || bar}{/}
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Implementations are encouraged to use a prefix for a group of related problems, i.e.static ParserError
valueOf(String name)
Returns the enum constant of this type with the specified name.static ParserError[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GENERAL_ERROR
public static final ParserError GENERAL_ERROR
-
INVALID_IDENTIFIER
public static final ParserError INVALID_IDENTIFIER
{fo\to}
-
EMPTY_EXPRESSION
public static final ParserError 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
public static final ParserError NO_SECTION_NAME
{# foo=1 /}
-
NO_SECTION_HELPER_FOUND
public static final ParserError NO_SECTION_HELPER_FOUND
{#foo test /}
and no helper registered forfoo
-
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
public static final ParserError 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
public static final ParserError 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 Detail
-
values
public static ParserError[] 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 (ParserError c : ParserError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParserError 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
-
-