public interface IlrDTExpressionInstance extends IlrDTExpressionText
IlrDTExpressionInstance represents an expression instance.
An expression instance points to:
In a DT model, an expression instance is used in a condition or an action. It is represented as a cell in a decision table, a condition link, or an action in a decision tree.
An expression instance is parsed in the context of its expression manager. If the expression is invalid, syntax and semantic errors are collected in the expression error manager or in the error managers of the expression parameter.
Do not implement this expression outside the DT framework.
NILINSTANCE, TRANSIENT, VOLATILE| Modifier and Type | Method and Description |
|---|---|
IlrDTExpressionDefinition |
getDefinition()
Returns the definition associated with this expression instance.
|
IlrSyntaxTree.Node |
getExpressionSyntaxNode(int index)
If this expression has a syntax tree, the syntax node corresponding to a
specific index is returned.
|
IlrDTErrorManager |
getLocalErrorManager()
Returns the error manager used to store errors local to this instance.
|
IlrDTExpressionParameter |
getParameter(int index)
Returns the expression parameter at a specific index.
|
java.util.List<IlrDTExpressionParameter> |
getParameters()
Returns the list of expression parameters associated to this expression
instance.
|
IlrSyntacticRole |
getSyntacticRole(IlrDTExpressionParameter param)
Returns the syntactic role that corresponds to an expression parameter
instance.
|
void |
setParameterText(int index,
java.lang.String text)
Sets the text of the expression parameter at a specific index.
|
getExpressionConcept, getExpressionSyntaxNode, getExpressionText, hasSyntacticErrors, isExpressionValidclone, clone, equals, getDTContext, getErrorManager, resetaddProperties, clearProperties, clearVolatileProperties, getProperties, getProperty, setPropertygetTimeStamp, setTimeStampIlrDTExpressionDefinition getDefinition()
null.IlrSyntaxTree.Node getExpressionSyntaxNode(int index)
index - The place to retrieve the node from.java.util.List<IlrDTExpressionParameter> getParameters()
null.IlrDTExpressionDefinitionIlrDTExpressionParameter getParameter(int index)
index - This parameter corresponds to the index placeholder in the
expression definition.index is out of range,
null is returned.void setParameterText(int index,
java.lang.String text)
index is out of range, nothing is done.index - The place in this object to set text.text - The text to set at index.IlrSyntacticRole getSyntacticRole(IlrDTExpressionParameter param)
param argument is mapped to the sentence.param - The expression parameter to match.null is returned.IlrDTErrorManager getLocalErrorManager()
null.© Copyright IBM Corp. 1987, 2017