public class ExpressionParameter extends ilog.rules.dt.model.common.impl.DTAbstractElement implements IlrDTExpressionParameter, IlrDTExpressionRole
ExpressionParameter represents an expression parameter
that is associated with an expression instance.IlrDTExpressionParameter,
ExpressionInstance,
Serialized FormHOLDER_ROLE_INDEXNILINSTANCE, TRANSIENT, VOLATILE| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clones the expression parameter.
|
IlrDTExpression |
clone(IlrDTContext context)
Deprecated.
|
IlrCardinality |
getCardinality()
Returns the cardinality of this parameter.
|
IlrConcept |
getConcept()
Returns the type of this expression parameter.
|
IlrDTContext |
getDTContext()
Deprecated.
|
IlrDTErrorManager |
getErrorManager()
Returns the error manager associated to this expression parameter.
|
IlrDTExpressionInstance |
getExpression()
Returns the expression instance of this parameter.
|
IlrConcept |
getExpressionConcept()
Deprecated.
|
IlrDTExpressionSentence |
getExpressionSentence()
Deprecated.
|
IlrSyntaxTree.Node |
getExpressionSyntaxNode()
Deprecated.
|
java.lang.String |
getExpressionText()
Deprecated.
|
int |
getOffset()
Returns the parameter offset in the expression text.
|
IlrConcept |
getParameterConcept()
Deprecated.
|
int |
getParameterIndex()
Deprecated.
|
int |
getSentenceIndex()
Deprecated.
|
IlrSyntacticRole |
getSyntacticRole()
Returns the syntactic role associated to this expression.
|
java.lang.String |
getText()
Returns the parameter text.
|
java.lang.Object |
getValue()
Returns the real value of a literal or
IlrDTExpression.NIL if
this parameter has not been interpreted as a literal. |
boolean |
hasSyntacticErrors()
Deprecated.
|
boolean |
isCollection()
Deprecated.
|
boolean |
isExpressionValid()
Deprecated.
|
boolean |
isLiteral()
Tests if the value associated to this parameter is a literal.
|
boolean |
isValid()
Tests if this parameter is valid.
|
int |
overlap(IlrDTExpression expr)
Deprecated.
|
boolean |
reset()
Drops all references to vocabulary, and will requires parsing.
|
void |
setExpressionSentence(IlrDTExpressionSentence expressionSentence)
Deprecated.
|
void |
setExpressionText(java.lang.String text)
Deprecated.
|
void |
setExpressionTexts(java.util.Collection collection)
Deprecated.
|
void |
setParameterIndex(int parameterIndex)
Deprecated.
|
void |
setText(java.lang.String text)
Sets the expression parameter.
|
java.lang.String |
toString() |
java.lang.Object |
visit(ilog.rules.dt.model.expression.IlrDTExpression.Visitor visitor)
Deprecated.
|
getTimeStamp, setTimeStampaddProperties, clearProperties, clearVolatileProperties, getProperties, getProperty, setPropertyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExpressionTextsequalsaddProperties, clearProperties, clearVolatileProperties, getProperties, getProperty, setPropertygetTimeStamp, setTimeStamppublic java.lang.String getText()
IlrDTExpressionParameternull, the default value of the corresponding
placeholder may be returned.getText in interface IlrDTExpressionParameterpublic java.lang.String getExpressionText()
IlrDTExpressionText
For an IlrDTExpressionDefinition, the definition text is
returned with placeholders.
For an IlrDTExpressionInstance, the expression text is
returned and the placeholders are replaced by expression parameter values.
getExpressionText in interface IlrDTExpressionTextpublic void setExpressionText(java.lang.String text)
IlrDTExpressionRolesetExpressionText in interface IlrDTExpressionRoletext - the text of the expression.public void setText(java.lang.String text)
IlrDTExpressionParametersetText in interface IlrDTExpressionParametersetText in interface IlrDTExpressionRoletext - The new string value of the expression parameter.public IlrDTExpressionInstance getExpression()
IlrDTExpressionParametergetExpression in interface IlrDTExpressionParameterpublic IlrDTErrorManager getErrorManager()
IlrDTExpressionParametergetErrorManager in interface IlrDTExpressiongetErrorManager in interface IlrDTExpressionParameterpublic boolean isLiteral()
IlrDTExpressionParameterisLiteral in interface IlrDTExpressionParameterisLiteral in interface IlrDTExpressionRoletrue is returned.public boolean isValid()
IlrDTExpressionParameterAn empty parameter is considered to be valid.
isValid in interface IlrDTExpressionParametertrue is
returned.public java.lang.Object getValue()
IlrDTExpressionParameterIlrDTExpression.NIL if
this parameter has not been interpreted as a literal.getValue in interface IlrDTExpressionParametergetValue in interface IlrDTExpressionRoleIlrDTExpression.NIL is returned.public IlrConcept getConcept()
IlrDTExpressionParametergetConcept in interface IlrDTExpressionParameternull is returned.public IlrCardinality getCardinality()
IlrDTExpressionParametergetCardinality in interface IlrDTExpressionParameterpublic int getOffset()
IlrDTExpressionParametergetOffset in interface IlrDTExpressionParameter-1
is returned.public boolean reset()
IlrDTExpressionreset in interface IlrDTExpressionpublic java.lang.String toString()
toString in class java.lang.Objectpublic IlrDTExpressionSentence getExpressionSentence()
IlrDTExpressionRolegetExpressionSentence in interface IlrDTExpressionRolepublic IlrConcept getParameterConcept()
IlrDTExpressionRolegetParameterConcept in interface IlrDTExpressionRolepublic int getParameterIndex()
IlrDTExpressionRoleIlrDTExpressionRole.HOLDER_ROLE_INDEX for holder role expression.getParameterIndex in interface IlrDTExpressionRoleIlrDTExpressionRole.HOLDER_ROLE_INDEX for holder role expression.public int getSentenceIndex()
IlrDTExpressionRolegetSentenceIndex in interface IlrDTExpressionRolepublic IlrSyntacticRole getSyntacticRole()
IlrDTExpressionRolegetSyntacticRole in interface IlrDTExpressionRolepublic boolean isCollection()
IlrDTExpressionRoleisCollection in interface IlrDTExpressionRolepublic void setExpressionSentence(IlrDTExpressionSentence expressionSentence)
public void setExpressionTexts(java.util.Collection collection)
IlrDTExpressionRolesetExpressionTexts in interface IlrDTExpressionRolecollection - The collection defining the text of the expression.public void setParameterIndex(int parameterIndex)
public IlrConcept getExpressionConcept()
IlrDTExpressionTextgetExpressionConcept in interface IlrDTExpressionTextpublic IlrSyntaxTree.Node getExpressionSyntaxNode()
IlrDTExpressionTextgetExpressionSyntaxNode in interface IlrDTExpressionTextpublic boolean hasSyntacticErrors()
IlrDTExpressionTexthasSyntacticErrors in interface IlrDTExpressionTextpublic boolean isExpressionValid()
IlrDTExpressionText
The corresponding syntax tree for an invalid expression is either
null or in error recovery.
isExpressionValid in interface IlrDTExpressionTexttrue is
returned.public java.lang.Object clone()
IlrDTExpressionParameterclone in interface IlrDTExpressionclone in interface IlrDTExpressionParameterclone in interface IlrDecorableElementclone in class IlrDecorableElementImplIlrDecorableElement.INSTANCE are not copied.public IlrDTExpression clone(IlrDTContext context)
clone in interface IlrDTExpressioncontext - The context of the cloned expression.public IlrDTContext getDTContext()
getDTContext in interface IlrDTExpressionpublic int overlap(IlrDTExpression expr)
public java.lang.Object visit(ilog.rules.dt.model.expression.IlrDTExpression.Visitor visitor)
© Copyright IBM Corp. 1987, 2017