public class IlrTaskGotoNodeStatement extends IlrControlNodeStatement
This class represents the class of a jump instruction in a ruleflow. It groups three kinds of jumps that can be found in a ruleflow:
Warning: Serialized objects of this class will not be compatible with future releases. The current serialization support is appropriate for short-term storage or RMI between applications running the same version of IBM Decision Server.
| Modifier and Type | Field and Description |
|---|---|
static int |
Break
This value is used to give a
break behavior to the
jump node, used in a while block. |
static int |
Continue
This value is used to give a
continue behavior to the
jump node, used in a while block. |
static int |
Goto
This value is used to give a
goto behavior to the
jump node. |
| Constructor and Description |
|---|
IlrTaskGotoNodeStatement(int kind)
Builds a jump instruction node for a ruleflow.
|
IlrTaskGotoNodeStatement(int kind,
IlrFlowNodeStatement previousNode)
Builds a jump instruction node for a ruleflow and connects the created
node to the passed node.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getGotoLabel()
Returns the label of the node on which the
goto node
points. |
int |
getKind()
Returns the jump node kind.
|
void |
setGotoLabel(java.lang.String label)
Sets the label of the node to which the ruleflow execution is
directed after the execution of the
goto node. |
exploreStatement, getName, setNextNodepublic static final int Goto
This value is used to give a goto behavior to the
jump node.
public static final int Break
This value is used to give a break behavior to the
jump node, used in a while block.
public static final int Continue
This value is used to give a continue behavior to the
jump node, used in a while block.
public IlrTaskGotoNodeStatement(int kind)
We specify the kind of jump by passing one of the following values:
IlrTaskGotoNodeStatement.Goto
IlrTaskGotoNodeStatement.Break
IlrTaskGotoNodeStatement.Continue
IllegalArgumentException is thrown.kind - The kind of jump node.public IlrTaskGotoNodeStatement(int kind,
IlrFlowNodeStatement previousNode)
IlrTaskIfNodeStatement nor to an
IlrTaskSwitchNodeStatement; instead use
IlrTaskIfNodeStatement.setTrueNode,
IlrTaskIfNodeStatement.setFalseNode,
IlrTaskSwitchNodeStatement.setCaseNode, or
IlrTaskSwitchNodeStatement.setDefaultNode.
We specify the kind of jump by passing one of the following values:
IlrTaskGotoNodeStatement.Goto
IlrTaskGotoNodeStatement.Break
IlrTaskGotoNodeStatement.Continue
IllegalArgumentException is thrown.kind - The kind of jump node.previousNode - The node that is before the new node in the
ruleflow. The two nodes are connected by calling the method
IlrFlowNodeStatement.setNextNode.public void setGotoLabel(java.lang.String label)
goto node.
This method must be used only for a goto node whose
kind is Goto, or else an IllegalArgumentException
is thrown.label - The label of the node on which the goto node
points.public java.lang.String getGotoLabel()
goto node
points. This is the node that will be executed after the
goto node.this.public int getKind()
IlrTaskGotoNodeStatement.Goto
IlrTaskGotoNodeStatement.Break
IlrTaskGotoNodeStatement.Continue.
© Copyright IBM Corp. 1987, 2017