|
|||||||||
| 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.
| Field Summary | |
|---|---|
static int |
ASSIGN_END
Constant returned by getEndType() indicating that this is an
assign end instruction. |
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 |
|---|
static final int NONE
getEndType() indicating that this is
not an end instruction.
static final int BREAK
getEndType() indicating that this is a
break instruction.
static final int CASE
getEndType() indicating that this is a
case instruction.
static final int COMPRESS_END
getEndType() indicating that this is a
compress end instruction.
static final int ELSE
getEndType() indicating that this is an
else instruction.
static final int FUNCTION_END
getEndType() indicating that this is a
function end instruction.
static final int IF_END
getEndType() indicating that this is an
if end instruction.
static final int LIST_END
getEndType() indicating that this is a
list end instruction.
static final int SWITCH_END
getEndType() indicating that this is a
switch end instruction.
static final int COMMENT_END
getEndType() indicating that this is a
comment end instruction.
static final int FOREACH_END
getEndType() indicating that this is a
foreach end instruction.
static final int NOPARSE_END
getEndType() indicating that this is a
noparse end instruction.
static final int TRANSFORM_END
getEndType() indicating that this is a
transform end instruction.
static final int ELSEIF
getEndType() indicating that this is an
elseif instruction.
static final int DEFAULT
getEndType() indicating that this is a
default instruction.
static final int ASSIGN_END
getEndType() indicating that this is an
assign end instruction.
| Method Detail |
|---|
boolean isEndInstruction()
true if this instruction marks the end of a
statement, otherwise falseint 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 | ||||||||