public class IlrBlockActionStatement extends IlrActionStatement
for each loop.
If you want to add a new kind of block action, use a kind
starting from constant CUSTOM_EXTENSION.
| Modifier and Type | Field and Description |
|---|---|
static int |
CUSTOM_EXTENSION
Constant for extending the kind of block statements (value is 10).
|
static int |
FOR_EACH
Constant for the
for each loop action statement (value is 0). |
| Constructor and Description |
|---|
IlrBlockActionStatement(IlrSyntaxTree.Node node)
Creates a new block statement with a given Abstract Syntax Tree node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(IlrIntermediateForm.Visitor visitor)
Accepts a visitor.
|
int |
actionsCount()
Returns the number of action statements contained in this block action.
|
void |
addAction(IlrActionStatement action)
Adds an
IlrActionStatement to this block action. |
IlrActionStatement |
getAction(int index)
Gets the action statement stored at index
i. |
int |
getKind()
Gets the kind of this block action statement.
|
void |
setKind(int kind)
Sets the kind of this block action statement.
|
getConcept, getParent, getVarName, setConcept, setVarNamegetNode, hasTagpublic static final int FOR_EACH
for each loop action statement (value is 0).public static final int CUSTOM_EXTENSION
public IlrBlockActionStatement(IlrSyntaxTree.Node node)
node - The Abstract Syntax Tree node.public void accept(IlrIntermediateForm.Visitor visitor)
accept in class IlrStatementvisitor - The visitor.public void addAction(IlrActionStatement action)
IlrActionStatement to this block action.action - The action statement.public IlrActionStatement getAction(int index)
i.index - The index.i, or null.public int actionsCount()
public void setKind(int kind)
kind - The kind of block action statement.public int getKind()
© Copyright IBM Corp. 1987, 2017