|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Instruction
An interface that parsed instructions must implement.
Nested Class Summary | |
---|---|
static class |
Instruction.EndType
Enumerates the type of end instructions that can terminate a given instruction. |
Method Summary | |
---|---|
TemplateProcessor |
callBuilder(TemplateBuilder builder)
A TemplateBuilder can call
this method to have an Instruction call it back to be built. |
Instruction.EndType |
getEndType()
Retrieve the type of end instruction, if any. |
boolean |
isEndInstruction()
Is this an end instruction? |
Method Detail |
---|
boolean isEndInstruction()
true
if this instruction marks the end of a
statement, otherwise false
Instruction.EndType getEndType()
NONE
.TemplateProcessor callBuilder(TemplateBuilder builder) throws ParseException
TemplateBuilder
can call
this method to have an Instruction
call it back to be built.
The Instruction
will call the appropriate
TemplateBuilder.buildStatement()
method for its subclass, passing back a reference to itself.
This approach is intended to make type-checking of
Instruction
objects unnecessary.
builder
- the builder to be called back by this method
ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |