|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfreemarker.template.instruction.EmptyInstruction
freemarker.template.instruction.BreakInstruction
public final class BreakInstruction
An instruction that represents a break in execution, either within a case statement of a switch, or within a list or foreach loop.
Note:
BreakInstruction is a singleton instance. Use the
getInstance() method to retrieve instances of this instruction.
ListInstruction,
SwitchInstruction,
Serialized Form| Field Summary |
|---|
| 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 |
| Fields inherited from interface freemarker.template.TemplateProcessor |
|---|
BREAK, EXIT, OK, UNCOMPILED_TEMPLATE |
| Method Summary | |
|---|---|
TemplateProcessor |
callBuilder(TemplateBuilder builder)
A TemplateBuilder can call this
method to have an Instruction call it back to be built. |
static BreakInstruction |
getInstance()
Retrieves a singleton instance of BreakInstruction. |
short |
process(TemplateWriteableHashModel modelRoot,
java.io.Writer out,
TemplateRuntimeHandler eventHandler)
Processes the contents of this TemplateProcessor and outputs
the resulting text to a Writer. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class freemarker.template.instruction.EmptyInstruction |
|---|
getEndType, isEndInstruction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static BreakInstruction getInstance()
BreakInstruction.
BreakInstruction
public TemplateProcessor callBuilder(TemplateBuilder builder)
throws ParseException
TemplateBuilder can call this
method to have an Instruction call it back to be built. This
implementation returns immediately, since there is nothing additional to
be parsed within this instruction.
callBuilder in interface InstructioncallBuilder in class EmptyInstructionbuilder - the builder to be called back by this method
ParseException
public short process(TemplateWriteableHashModel modelRoot,
java.io.Writer out,
TemplateRuntimeHandler eventHandler)
TemplateProcessor and outputs
the resulting text to a Writer. This implementation returns
immediately, since there is nothing to output.
process in interface TemplateProcessormodelRoot - the root node of the data model.out - a Writer to send the output to.eventHandler - a TemplateEventAdapter for handling any events
that occur during processing.
public java.lang.String toString()
toString in class java.lang.ObjectString "break"
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||