com.lyncode.jtwig.parser
Enum JtwigKeyword

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

public enum JtwigKeyword
extends Enum<JtwigKeyword>


Enum Constant Summary
AND
           
BLOCK
           
ELSE
           
ELSEIF
           
ENDBLOCK
           
ENDFOR
           
ENDIF
           
ENDVERBATIM
           
EXCLUDE
           
EXTENDS
           
FALSE
           
FILTER
           
FOR
           
IF
           
IMPORT
           
IN
           
INCLUDE
           
IS
           
NULL
           
OR
           
SET
           
TRUE
           
VERBATIM
           
 
Method Summary
 String getKeyword()
           
static String[] keywords()
           
 String toString()
           
static JtwigKeyword valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JtwigKeyword[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TRUE

public static final JtwigKeyword TRUE

FALSE

public static final JtwigKeyword FALSE

FOR

public static final JtwigKeyword FOR

ENDFOR

public static final JtwigKeyword ENDFOR

IF

public static final JtwigKeyword IF

ENDIF

public static final JtwigKeyword ENDIF

ELSEIF

public static final JtwigKeyword ELSEIF

ELSE

public static final JtwigKeyword ELSE

BLOCK

public static final JtwigKeyword BLOCK

ENDBLOCK

public static final JtwigKeyword ENDBLOCK

EXTENDS

public static final JtwigKeyword EXTENDS

IMPORT

public static final JtwigKeyword IMPORT

AND

public static final JtwigKeyword AND

OR

public static final JtwigKeyword OR

NULL

public static final JtwigKeyword NULL

SET

public static final JtwigKeyword SET

INCLUDE

public static final JtwigKeyword INCLUDE

EXCLUDE

public static final JtwigKeyword EXCLUDE

IN

public static final JtwigKeyword IN

IS

public static final JtwigKeyword IS

FILTER

public static final JtwigKeyword FILTER

VERBATIM

public static final JtwigKeyword VERBATIM

ENDVERBATIM

public static final JtwigKeyword ENDVERBATIM
Method Detail

values

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

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

valueOf

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

keywords

public static String[] keywords()

getKeyword

public String getKeyword()

toString

public String toString()
Overrides:
toString in class Enum<JtwigKeyword>


Copyright © 2014. All Rights Reserved.