|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TemplateProcessor
Objects representing compiled templates must implement this interface.
| Field Summary | |
|---|---|
static short |
BREAK
Constant returned by process() indicating that this is the
result of a break instruction. |
static short |
EXIT
Constant returned by process() indicating that this is the
result of an exit instruction. |
static short |
OK
Constant returned by process() indicating that this is
normal control flow. |
static short |
UNCOMPILED_TEMPLATE
Constant returned by process() indicating that this is the
result of a break instruction. |
| Method Summary | |
|---|---|
short |
process(TemplateWriteableHashModel modelRoot,
java.io.Writer out,
TemplateRuntimeHandler eventHandler)
Processes the contents of this TemplateProcessor and outputs
the resulting text to a Writer. |
| Field Detail |
|---|
static final short OK
process() indicating that this is
normal control flow.
static final short BREAK
process() indicating that this is the
result of a break instruction.
static final short EXIT
process() indicating that this is the
result of an exit instruction.
static final short UNCOMPILED_TEMPLATE
process() indicating that this is the
result of a break instruction.
| Method Detail |
|---|
short process(TemplateWriteableHashModel modelRoot,
java.io.Writer out,
TemplateRuntimeHandler eventHandler)
throws java.io.IOException
TemplateProcessor and outputs
the resulting text to a Writer.
modelRoot - 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.
java.io.IOException - an IO error occurred during processing
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||