|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfreemarker.template.instruction.DefaultCaseInstruction
freemarker.template.instruction.CaseInstruction
public final class CaseInstruction
Represents a case in a switch statement. Unexpectedly, this is subclassed
from the DefaultCaseInstruction class.
DefaultCaseInstruction,
SwitchInstruction,
Serialized Form| Field Summary |
|---|
| Fields inherited from class freemarker.template.instruction.DefaultCaseInstruction |
|---|
body |
| Fields inherited from interface freemarker.template.TemplateProcessor |
|---|
BREAK, EXIT, OK, UNCOMPILED_TEMPLATE |
| Fields inherited from interface freemarker.template.instruction.Instruction |
|---|
ASSIGN_END, BREAK, CASE, COMMENT_END, COMPRESS_END, DEFAULT, ELSE, ELSEIF, FOREACH_END, FUNCTION_END, IF_END, LIST_END, NONE, NOPARSE_END, SWITCH_END, TRANSFORM_END |
| Constructor Summary | |
|---|---|
CaseInstruction(Expression expression)
Constructor that takes an Expression to be evaluated when
the case instruction is encountered. |
|
| Method Summary | |
|---|---|
int |
getEndType()
Retrieve the type of end instruction, if any. |
Expression |
getExpression()
Retrieves the Expression to be
evaluated when the case instruction is encountered. |
boolean |
isDefault()
Is this the default case? |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class freemarker.template.instruction.DefaultCaseInstruction |
|---|
callBuilder, isEndInstruction, process, setBody |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CaseInstruction(Expression expression)
Expression to be evaluated when
the case instruction is encountered.
expression - the Expression associated with this
Case.
java.lang.NullPointerException - the expression was null
java.lang.IllegalArgumentException - the expression was not a string or number| Method Detail |
|---|
public Expression getExpression()
Expression to be
evaluated when the case instruction is encountered.
getExpression in class DefaultCaseInstructionExpression associated with this
CaseInstructionpublic boolean isDefault()
isDefault in class DefaultCaseInstructiontrue if this is the default case, otherwise
falsepublic int getEndType()
getEndType in interface InstructiongetEndType in class DefaultCaseInstructionCASEpublic java.lang.String toString()
toString in class DefaultCaseInstructionString representing this instruction subtree
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||