freemarker.template
Interface TemplateProcessor
- All Known Subinterfaces:
- FunctionTemplateProcessor, UnparsedInstruction
- All Known Implementing Classes:
- AbstractTemplate, TemplateArrayList, GenericStartInstruction, TextBlockInstruction, DefaultCaseInstruction, ElseInstruction, EmptyInstruction, NOOPInstruction, IfElseInstruction, SwitchInstruction
- public interface TemplateProcessor
Objects representing compiled templates must implement this interface.
- Version:
- $Id: TemplateProcessor.java,v 1.9 2003/11/23 00:12:41 run2000 Exp $
process
public void process(TemplateModelRoot modelRoot,
java.io.Writer out,
TemplateRuntimeHandler eventHandler)
throws java.io.IOException
- Processes the contents of this
TemplateProcessor
and
outputs the resulting text to a Writer
.
- Parameters:
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.- Throws:
java.io.IOException
- an IO error occurred during processing