|
ILOG JRules | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.rules.brl.translation.IlrStatement
ilog.rules.brl.translation.IlrActionStatement
ilog.rules.brl.translation.IlrBlockActionStatement
public class IlrBlockActionStatement
Defines actions that can contain other actions.
The only predefined block action kind is the for each loop.
If you want to add a new kind of block action, use a kind
starting from constant CUSTOM_EXTENSION.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
IlrBlockActionStatement(IlrSyntaxTree.Node node)
Creates a new block statement with a given Abstract Syntax Tree node. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class ilog.rules.brl.translation.IlrActionStatement |
|---|
getConcept, getParent, getVarName, setConcept, setVarName |
| Methods inherited from class ilog.rules.brl.translation.IlrStatement |
|---|
getNode, hasTag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FOR_EACH
for each loop action statement (value is 0).
public static final int CUSTOM_EXTENSION
| Constructor Detail |
|---|
public IlrBlockActionStatement(IlrSyntaxTree.Node node)
node - The Abstract Syntax Tree node.| Method Detail |
|---|
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()
|
ILOG JRules | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||