|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface that parsed instructions must implement.
Field Summary | |
static int |
BREAK
Constant returned by getEndType() indicating that this
is a break instruction. |
static int |
CASE
Constant returned by getEndType() indicating that this
is a case instruction. |
static int |
COMMENT_END
Constant returned by getEndType() indicating that this
is a comment end instruction. |
static int |
COMPRESS_END
Constant returned by getEndType() indicating that this
is a compress end instruction. |
static int |
DEFAULT
Constant returned by getEndType() indicating that this
is a default instruction. |
static int |
ELSE
Constant returned by getEndType() indicating that this
is an else instruction. |
static int |
ELSEIF
Constant returned by getEndType() indicating that this
is an elseif instruction. |
static int |
FOREACH_END
Constant returned by getEndType() indicating that this
is a foreach end instruction. |
static int |
FUNCTION_END
Constant returned by getEndType() indicating that this
is a function end instruction. |
static int |
IF_END
Constant returned by getEndType() indicating that this
is an if end instruction. |
static int |
LIST_END
Constant returned by getEndType() indicating that this
is a list end instruction. |
static int |
NONE
Constant returned by getEndType() indicating that this
is not an end instruction. |
static int |
NOPARSE_END
Constant returned by getEndType() indicating that this
is a noparse end instruction. |
static int |
SWITCH_END
Constant returned by getEndType() indicating that this
is a switch end instruction. |
static int |
TRANSFORM_END
Constant returned by getEndType() indicating that this
is a transform end instruction. |
Method Summary | |
TemplateProcessor |
callBuilder(TemplateBuilder builder)
A TemplateBuilder can call
this method to have an Instruction call it back to be built. |
int |
getEndType()
Retrieve the type of end instruction, if any. |
boolean |
isEndInstruction()
Is this an end instruction? |
Field Detail |
public static final int NONE
getEndType()
indicating that this
is not an end instruction.public static final int BREAK
getEndType()
indicating that this
is a break instruction.public static final int CASE
getEndType()
indicating that this
is a case instruction.public static final int COMPRESS_END
getEndType()
indicating that this
is a compress end instruction.public static final int ELSE
getEndType()
indicating that this
is an else instruction.public static final int FUNCTION_END
getEndType()
indicating that this
is a function end instruction.public static final int IF_END
getEndType()
indicating that this
is an if end instruction.public static final int LIST_END
getEndType()
indicating that this
is a list end instruction.public static final int SWITCH_END
getEndType()
indicating that this
is a switch end instruction.public static final int COMMENT_END
getEndType()
indicating that this
is a comment end instruction.public static final int FOREACH_END
getEndType()
indicating that this
is a foreach end instruction.public static final int NOPARSE_END
getEndType()
indicating that this
is a noparse end instruction.public static final int TRANSFORM_END
getEndType()
indicating that this
is a transform end instruction.public static final int ELSEIF
getEndType()
indicating that this
is an elseif instruction.public static final int DEFAULT
getEndType()
indicating that this
is a default instruction.Method Detail |
public boolean isEndInstruction()
true
if this instruction marks the end of a
statement, otherwise false
public int getEndType()
NONE
.public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |