Enum ParserError

    • 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 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

        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 name
        NullPointerException - if the argument is null
      • getName

        public String getName()
        Description copied from interface: ErrorCode
        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