|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.template.compiler.LinkedListTemplateBuilder
public final class LinkedListTemplateBuilder
Builds a template as a tree structure in which child nodes
are stored in TemplateArrayList
s. Each instance can be used to
compile one template.
This class is now misnamed, since it originally built a
TemplateLinkedList
.
Constructor Summary | |
---|---|
LinkedListTemplateBuilder(FunctionTemplateProcessor template,
TemplateParser parser)
Constructs a new LinkedListTemplateBuilder with a
FunctionTemplateProcessor and a
TemplateParser . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinkedListTemplateBuilder(FunctionTemplateProcessor template, TemplateParser parser)
LinkedListTemplateBuilder
with a
FunctionTemplateProcessor
and a
TemplateParser
.
template
- the template to be builtparser
- the parser to parse the input streamMethod Detail |
---|
public TemplateProcessor build() throws ParseException
build
in interface TemplateBuilder
ParseException
- the template could not be builtpublic TemplateProcessor buildStatement(EmptyInstruction instruction) throws ParseException
TemplateBuilder
implementation calls
Instruction.callBuilder(freemarker.template.compiler.TemplateBuilder)
, the
Instruction
will call
this method if it is an EmptyInstruction
.
buildStatement
in interface TemplateBuilder
instruction
- the Instruction
on which
callBuilder()
was called.
ParseException
public TemplateProcessor buildStatement(GenericStartInstruction instruction) throws ParseException
TemplateBuilder
implementation calls
Instruction.callBuilder(freemarker.template.compiler.TemplateBuilder)
, the
Instruction
will call
this method if it should be built as a
GenericStartInstruction
.
buildStatement
in interface TemplateBuilder
instruction
- the Instruction
on which
callBuilder()
was called.
ParseException
public TemplateProcessor buildStatement(ListInstruction instruction) throws ParseException
TemplateBuilder
implementation calls
Instruction.callBuilder(freemarker.template.compiler.TemplateBuilder)
, the
Instruction
will call
this method if it should be built as a
ListInstruction
.
buildStatement
in interface TemplateBuilder
instruction
- the Instruction
on which
callBuilder()
was called.
ParseException
public TemplateProcessor buildStatement(FunctionInstruction instruction) throws ParseException
TemplateBuilder
implementation calls
Instruction.callBuilder(freemarker.template.compiler.TemplateBuilder)
, the
Instruction
will call
this method if it is a FunctionInstruction
.
buildStatement
in interface TemplateBuilder
instruction
- the Instruction
on which
callBuilder()
was called.
ParseException
public TemplateProcessor buildStatement(LocalInstruction instruction) throws ParseException
TemplateBuilder
calls
Instruction.callBuilder(freemarker.template.compiler.TemplateBuilder)
, the
Instruction
will call this method
if it is a LocalInstruction
.
buildStatement
in interface TemplateBuilder
instruction
- the Instruction
on which
callBuilder()
was called.
ParseException
public TemplateProcessor buildStatement(IfElseInstruction instruction) throws ParseException
TemplateBuilder
implementation calls
Instruction.callBuilder(freemarker.template.compiler.TemplateBuilder)
, the
Instruction
will call
this method if it is an IfInstruction
.
buildStatement
in interface TemplateBuilder
instruction
- the Instruction
on which
callBuilder()
was called.
ParseException
public TemplateProcessor buildStatement(SwitchInstruction instruction) throws ParseException
TemplateBuilder
implementation calls
Instruction.callBuilder(freemarker.template.compiler.TemplateBuilder)
, the
Instruction
will call
this method if it is a SwitchInstruction
.
buildStatement
in interface TemplateBuilder
instruction
- the Instruction
on which
callBuilder()
was called.
ParseException
public TemplateProcessor buildStatement(UnparsedInstruction instruction) throws ParseException
TemplateBuilder
implementation calls
Instruction.callBuilder(freemarker.template.compiler.TemplateBuilder)
, the
Instruction
will call
this method if it is an UnparsedInstruction
.
buildStatement
in interface TemplateBuilder
instruction
- the Instruction
on which
callBuilder()
was called.
ParseException
public TemplateProcessor buildStatement(BreakInstruction instruction) throws ParseException
TemplateBuilder
calls
Instruction.callBuilder(freemarker.template.compiler.TemplateBuilder)
, the
Instruction
will call this method
if it is a BreakInstruction
.
buildStatement
in interface TemplateBuilder
instruction
- the Instruction
on which
callBuilder()
was called.
ParseException
public TemplateProcessor buildStatement(ExitInstruction instruction) throws ParseException
TemplateBuilder
calls
Instruction.callBuilder(freemarker.template.compiler.TemplateBuilder)
, the
Instruction
will call this method
if it is an ExitInstruction
.
buildStatement
in interface TemplateBuilder
instruction
- the Instruction
on which
callBuilder()
was called.
ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |