|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<TemplateProcessor.ExitStatus> freemarker.template.TemplateProcessor.ExitStatus
public static enum TemplateProcessor.ExitStatus
Enumates the return values from a template processor. The caller will sometimes need to perform special actions based on the result.
Enum Constant Summary | |
---|---|
BREAK
Constant returned by process() indicating that this
is the result of a break instruction. |
|
EXIT
Constant returned by process() indicating that this
is the result of an exit instruction. |
|
OK
Constant returned by process() indicating that this
is normal control flow. |
|
UNCOMPILED_TEMPLATE
Constant returned by process() indicating that this
is the result of a template compilation error. |
Method Summary | |
---|---|
static TemplateProcessor.ExitStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TemplateProcessor.ExitStatus[] |
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 |
---|
public static final TemplateProcessor.ExitStatus OK
process()
indicating that this
is normal control flow.
public static final TemplateProcessor.ExitStatus BREAK
process()
indicating that this
is the result of a break instruction.
public static final TemplateProcessor.ExitStatus EXIT
process()
indicating that this
is the result of an exit instruction.
public static final TemplateProcessor.ExitStatus UNCOMPILED_TEMPLATE
process()
indicating that this
is the result of a template compilation error.
Method Detail |
---|
public static TemplateProcessor.ExitStatus[] values()
for (TemplateProcessor.ExitStatus c : TemplateProcessor.ExitStatus.values()) System.out.println(c);
public static TemplateProcessor.ExitStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |