public class OnPhrase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
BlockManager.Action |
action
Action to be taken when the given condition is raised.
|
java.lang.String |
actionLabel
Optional block name of the target for the ACTION.
|
BlockManager.Condition |
condition
Condition being raised for a block.
|
java.lang.String |
undoLabel
Optional block name of the target for the UNDO.
|
BaseDataType |
value
Optional return value if the action is one of the RETURN variants.
|
Constructor and Description |
---|
OnPhrase(BlockManager.Condition condition,
BlockManager.Action action)
Construct an association between the given condition and action, which
operates on the nearest enclosing block.
|
OnPhrase(BlockManager.Condition condition,
BlockManager.Action action,
BaseDataType value)
Construct an association between the given condition and action, which
operates on the nearest enclosing block.
|
OnPhrase(BlockManager.Condition condition,
BlockManager.Action action,
boolean value)
Construct an association between the given condition and action, which
operates on the nearest enclosing block.
|
OnPhrase(BlockManager.Condition condition,
BlockManager.Action action,
double value)
Construct an association between the given condition and action, which
operates on the nearest enclosing block.
|
OnPhrase(BlockManager.Condition condition,
BlockManager.Action action,
int value)
Construct an association between the given condition and action, which
operates on the nearest enclosing block.
|
OnPhrase(BlockManager.Condition condition,
BlockManager.Action action,
java.lang.String label)
Construct an association between the given condition and action, which
operates on the nearest enclosing block.
|
OnPhrase(BlockManager.Condition condition,
BlockManager.Action action,
java.lang.String label,
BaseDataType value)
Construct an association between the given condition and action, which
operates on the nearest enclosing block.
|
OnPhrase(BlockManager.Condition condition,
BlockManager.Action action,
java.lang.String label,
boolean value)
Construct an association between the given condition and action, which
operates on the nearest enclosing block.
|
OnPhrase(BlockManager.Condition condition,
BlockManager.Action action,
java.lang.String label,
double value)
Construct an association between the given condition and action, which
operates on the nearest enclosing block.
|
OnPhrase(BlockManager.Condition condition,
BlockManager.Action action,
java.lang.String label,
int value)
Construct an association between the given condition and action, which
operates on the nearest enclosing block.
|
OnPhrase(BlockManager.Condition condition,
BlockManager.Action action,
java.lang.String undoLabel,
java.lang.String actionLabel)
Construct an association between the given condition and action, which
operates on the nearest enclosing block.
|
public BlockManager.Condition condition
public BlockManager.Action action
public java.lang.String undoLabel
public java.lang.String actionLabel
public BaseDataType value
public OnPhrase(BlockManager.Condition condition, BlockManager.Action action)
condition
- ERROR, ENDKEY, STOP or QUIT.action
- LEAVE, NEXT, RETRY, RETURN_NORMAL, RETURN_CONSUME or
RETURN_ERROR.public OnPhrase(BlockManager.Condition condition, BlockManager.Action action, java.lang.String label)
condition
- ERROR, ENDKEY, STOP or QUIT.action
- LEAVE, NEXT, RETRY, RETURN_NORMAL, RETURN_CONSUME or
RETURN_ERROR.label
- The name of the block that is the target of BOTH the UNDO and
the action
.public OnPhrase(BlockManager.Condition condition, BlockManager.Action action, java.lang.String undoLabel, java.lang.String actionLabel)
condition
- ERROR, ENDKEY, STOP or QUIT.action
- LEAVE, NEXT, RETRY, RETURN_NORMAL, RETURN_CONSUME or
RETURN_ERROR.undoLabel
- The name of the block that is the target of the UNDO.actionLabel
- The name of the block that is the target of the
action
.public OnPhrase(BlockManager.Condition condition, BlockManager.Action action, BaseDataType value)
condition
- ERROR, ENDKEY, STOP or QUIT.action
- RETURN_NORMAL, RETURN_CONSUME or RETURN_ERROR.value
- The data to be returned to the caller of the top-level block
from which the control flow is going to return.public OnPhrase(BlockManager.Condition condition, BlockManager.Action action, int value)
condition
- ERROR, ENDKEY, STOP or QUIT.action
- RETURN_NORMAL, RETURN_CONSUME or RETURN_ERROR.value
- The data to be returned to the caller of the top-level block
from which the control flow is going to return.public OnPhrase(BlockManager.Condition condition, BlockManager.Action action, double value)
condition
- ERROR, ENDKEY, STOP or QUIT.action
- RETURN_NORMAL, RETURN_CONSUME or RETURN_ERROR.value
- The data to be returned to the caller of the top-level block
from which the control flow is going to return.public OnPhrase(BlockManager.Condition condition, BlockManager.Action action, boolean value)
condition
- ERROR, ENDKEY, STOP or QUIT.action
- RETURN_NORMAL, RETURN_CONSUME or RETURN_ERROR.value
- The data to be returned to the caller of the top-level block
from which the control flow is going to return.public OnPhrase(BlockManager.Condition condition, BlockManager.Action action, java.lang.String label, BaseDataType value)
condition
- ERROR, ENDKEY, STOP or QUIT.action
- RETURN_NORMAL, RETURN_CONSUME or RETURN_ERROR.label
- The name of the block that is the target of the UNDO.value
- The data to be returned to the caller of the top-level block
from which the control flow is going to return.public OnPhrase(BlockManager.Condition condition, BlockManager.Action action, java.lang.String label, int value)
condition
- ERROR, ENDKEY, STOP or QUIT.action
- RETURN_NORMAL, RETURN_CONSUME or RETURN_ERROR.label
- The name of the block that is the target of the UNDO.value
- The data to be returned to the caller of the top-level block
from which the control flow is going to return.public OnPhrase(BlockManager.Condition condition, BlockManager.Action action, java.lang.String label, double value)
condition
- ERROR, ENDKEY, STOP or QUIT.action
- RETURN_NORMAL, RETURN_CONSUME or RETURN_ERROR.label
- The name of the block that is the target of the UNDO.value
- The data to be returned to the caller of the top-level block
from which the control flow is going to return.public OnPhrase(BlockManager.Condition condition, BlockManager.Action action, java.lang.String label, boolean value)
condition
- ERROR, ENDKEY, STOP or QUIT.action
- RETURN_NORMAL, RETURN_CONSUME or RETURN_ERROR.label
- The name of the block that is the target of the UNDO.value
- The data to be returned to the caller of the top-level block
from which the control flow is going to return.