com.lyncode.jtwig.parser
Enum JtwigSymbol

java.lang.Object
  extended by java.lang.Enum<JtwigSymbol>
      extended by com.lyncode.jtwig.parser.JtwigSymbol
All Implemented Interfaces:
Serializable, Comparable<JtwigSymbol>

public enum JtwigSymbol
extends Enum<JtwigSymbol>


Enum Constant Summary
AND
           
AND_WORD
           
ATTR
           
CLOSE_BRACKET
           
CLOSE_CODE
           
CLOSE_CURLY_BRACKET
           
CLOSE_OUTPUT
           
CLOSE_PARENT
           
COMMA
           
DIFFERENT
           
DIV
           
DIVISION
           
DOT
           
EQUALITY
           
GREAT
           
GREAT_OR_EQUAL
           
LESS
           
LESS_OR_EQUAL
           
MINUS
           
NOT
           
NOT_WORD
           
OPEN_BRACKET
           
OPEN_CODE
           
OPEN_CURLY_BRACKET
           
OPEN_OUTPUT
           
OPEN_PARENT
           
OR
           
OR_WORD
           
PERCENTAGE
           
PIPE
           
PLUS
           
QUESTION
           
QUOTE
           
TIMES
           
TWO_DOTS
           
 
Method Summary
 String getSymbol()
           
static JtwigSymbol valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JtwigSymbol[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DOT

public static final JtwigSymbol DOT

OPEN_BRACKET

public static final JtwigSymbol OPEN_BRACKET

CLOSE_BRACKET

public static final JtwigSymbol CLOSE_BRACKET

DIV

public static final JtwigSymbol DIV

COMMA

public static final JtwigSymbol COMMA

OPEN_CURLY_BRACKET

public static final JtwigSymbol OPEN_CURLY_BRACKET

CLOSE_CURLY_BRACKET

public static final JtwigSymbol CLOSE_CURLY_BRACKET

OPEN_PARENT

public static final JtwigSymbol OPEN_PARENT

CLOSE_PARENT

public static final JtwigSymbol CLOSE_PARENT

DIVISION

public static final JtwigSymbol DIVISION

PLUS

public static final JtwigSymbol PLUS

MINUS

public static final JtwigSymbol MINUS

TIMES

public static final JtwigSymbol TIMES

PERCENTAGE

public static final JtwigSymbol PERCENTAGE

AND

public static final JtwigSymbol AND

OR

public static final JtwigSymbol OR

AND_WORD

public static final JtwigSymbol AND_WORD

OR_WORD

public static final JtwigSymbol OR_WORD

EQUALITY

public static final JtwigSymbol EQUALITY

DIFFERENT

public static final JtwigSymbol DIFFERENT

GREAT

public static final JtwigSymbol GREAT

LESS

public static final JtwigSymbol LESS

GREAT_OR_EQUAL

public static final JtwigSymbol GREAT_OR_EQUAL

LESS_OR_EQUAL

public static final JtwigSymbol LESS_OR_EQUAL

NOT

public static final JtwigSymbol NOT

NOT_WORD

public static final JtwigSymbol NOT_WORD

OPEN_OUTPUT

public static final JtwigSymbol OPEN_OUTPUT

CLOSE_OUTPUT

public static final JtwigSymbol CLOSE_OUTPUT

PIPE

public static final JtwigSymbol PIPE

CLOSE_CODE

public static final JtwigSymbol CLOSE_CODE

OPEN_CODE

public static final JtwigSymbol OPEN_CODE

ATTR

public static final JtwigSymbol ATTR

QUOTE

public static final JtwigSymbol QUOTE

TWO_DOTS

public static final JtwigSymbol TWO_DOTS

QUESTION

public static final JtwigSymbol QUESTION
Method Detail

values

public static JtwigSymbol[] 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 (JtwigSymbol c : JtwigSymbol.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static JtwigSymbol 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

getSymbol

public String getSymbol()


Copyright © 2014. All Rights Reserved.