freemarker.template.instruction
Enum Instruction.EndType

java.lang.Object
  extended by java.lang.Enum<Instruction.EndType>
      extended by freemarker.template.instruction.Instruction.EndType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Instruction.EndType>
Enclosing interface:
Instruction

public static enum Instruction.EndType
extends java.lang.Enum<Instruction.EndType>

Enumerates the type of end instructions that can terminate a given instruction.


Enum Constant Summary
ASSIGN_END
          Constant returned by getEndType() indicating that this is an assign end instruction.
BREAK
          Constant returned by getEndType() indicating that this is a break instruction.
CASE
          Constant returned by getEndType() indicating that this is a case instruction.
COMMENT_END
          Constant returned by getEndType() indicating that this is a comment end instruction.
COMPRESS_END
          Constant returned by getEndType() indicating that this is a compress end instruction.
DEFAULT
          Constant returned by getEndType() indicating that this is a default instruction.
ELSE
          Constant returned by getEndType() indicating that this is an else instruction.
ELSEIF
          Constant returned by getEndType() indicating that this is an elseif instruction.
FUNCTION_END
          Constant returned by getEndType() indicating that this is a function end instruction.
IF_END
          Constant returned by getEndType() indicating that this is an if end instruction.
LIST_END
          Constant returned by getEndType() indicating that this is a list end instruction.
LOCAL_END
          Constant returned by getEndType() indicating that this is a local end instruction.
NONE
          Constant returned by getEndType() indicating that this is not an end instruction.
NOPARSE_END
          Constant returned by getEndType() indicating that this is a noparse end instruction.
SWITCH_END
          Constant returned by getEndType() indicating that this is a switch end instruction.
TRANSFORM_END
          Constant returned by getEndType() indicating that this is a transform end instruction.
 
Method Summary
static Instruction.EndType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Instruction.EndType[] 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

NONE

public static final Instruction.EndType NONE
Constant returned by getEndType() indicating that this is not an end instruction.


BREAK

public static final Instruction.EndType BREAK
Constant returned by getEndType() indicating that this is a break instruction.


CASE

public static final Instruction.EndType CASE
Constant returned by getEndType() indicating that this is a case instruction.


COMPRESS_END

public static final Instruction.EndType COMPRESS_END
Constant returned by getEndType() indicating that this is a compress end instruction.


ELSE

public static final Instruction.EndType ELSE
Constant returned by getEndType() indicating that this is an else instruction.


FUNCTION_END

public static final Instruction.EndType FUNCTION_END
Constant returned by getEndType() indicating that this is a function end instruction.


IF_END

public static final Instruction.EndType IF_END
Constant returned by getEndType() indicating that this is an if end instruction.


LIST_END

public static final Instruction.EndType LIST_END
Constant returned by getEndType() indicating that this is a list end instruction.


SWITCH_END

public static final Instruction.EndType SWITCH_END
Constant returned by getEndType() indicating that this is a switch end instruction.


COMMENT_END

public static final Instruction.EndType COMMENT_END
Constant returned by getEndType() indicating that this is a comment end instruction.


NOPARSE_END

public static final Instruction.EndType NOPARSE_END
Constant returned by getEndType() indicating that this is a noparse end instruction.


TRANSFORM_END

public static final Instruction.EndType TRANSFORM_END
Constant returned by getEndType() indicating that this is a transform end instruction.


ELSEIF

public static final Instruction.EndType ELSEIF
Constant returned by getEndType() indicating that this is an elseif instruction.


DEFAULT

public static final Instruction.EndType DEFAULT
Constant returned by getEndType() indicating that this is a default instruction.


ASSIGN_END

public static final Instruction.EndType ASSIGN_END
Constant returned by getEndType() indicating that this is an assign end instruction.


LOCAL_END

public static final Instruction.EndType LOCAL_END
Constant returned by getEndType() indicating that this is a local end instruction.

Method Detail

values

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

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

valueOf

public static Instruction.EndType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null