org.drools.rule
Class ReturnValueConstraint
java.lang.Object
org.drools.rule.MutableTypeConstraint
org.drools.rule.ReturnValueConstraint
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, AlphaNodeFieldConstraint, BetaNodeFieldConstraint, Constraint, RuleComponent
public class ReturnValueConstraint
- extends MutableTypeConstraint
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ReturnValueConstraint
public ReturnValueConstraint(FieldExtractor fieldExtractor,
ReturnValueRestriction restriction)
getRequiredDeclarations
public Declaration[] getRequiredDeclarations()
- Description copied from interface:
Constraint
- Returns all the declarations required by the given
constraint implementation.
- Returns:
replaceDeclaration
public void replaceDeclaration(Declaration oldDecl,
Declaration newDecl)
- Description copied from interface:
Constraint
- A constraint may be required to replace an old
declaration object by a new updated one
setReturnValueExpression
public void setReturnValueExpression(ReturnValueExpression expression)
getExpression
public ReturnValueExpression getExpression()
getEvaluator
public Evaluator getEvaluator()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in class java.lang.Object
createContextEntry
public ContextEntry createContextEntry()
isAllowed
public boolean isAllowed(java.lang.Object object,
InternalWorkingMemory workingMemory,
ContextEntry context)
isAllowedCachedLeft
public boolean isAllowedCachedLeft(ContextEntry context,
java.lang.Object object)
isAllowedCachedRight
public boolean isAllowedCachedRight(ReteTuple tuple,
ContextEntry context)
clone
public java.lang.Object clone()
- Description copied from interface:
Constraint
- Clones the constraint
- Specified by:
clone
in interface Constraint
- Specified by:
clone
in class MutableTypeConstraint
- Returns: