org.drools.rule
Class ReturnValueConstraint

java.lang.Object
  extended byorg.drools.rule.ReturnValueConstraint
All Implemented Interfaces:
Constraint, FieldConstraint, RuleComponent, java.io.Serializable

public class ReturnValueConstraint
extends java.lang.Object
implements FieldConstraint

See Also:
Serialized Form
 

Constructor Summary
ReturnValueConstraint(FieldExtractor fieldExtractor, Declaration[] declarations, Evaluator evaluator)
           
ReturnValueConstraint(FieldExtractor fieldExtractor, ReturnValueExpression returnValueExpression, Declaration[] declarations, Evaluator evaluator)
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
 ReturnValueExpression getExpression()
           
 Declaration[] getRequiredDeclarations()
           
 int hashCode()
           
 boolean isAllowed(InternalFactHandle handle, Tuple tuple, WorkingMemory workingMemory)
           
 void setReturnValueExpression(ReturnValueExpression expression)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReturnValueConstraint

public ReturnValueConstraint(FieldExtractor fieldExtractor,
                             Declaration[] declarations,
                             Evaluator evaluator)

ReturnValueConstraint

public ReturnValueConstraint(FieldExtractor fieldExtractor,
                             ReturnValueExpression returnValueExpression,
                             Declaration[] declarations,
                             Evaluator evaluator)
Method Detail

getRequiredDeclarations

public Declaration[] getRequiredDeclarations()
Specified by:
getRequiredDeclarations in interface FieldConstraint

setReturnValueExpression

public void setReturnValueExpression(ReturnValueExpression expression)

getExpression

public ReturnValueExpression getExpression()

isAllowed

public boolean isAllowed(InternalFactHandle handle,
                         Tuple tuple,
                         WorkingMemory workingMemory)
Specified by:
isAllowed in interface FieldConstraint

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object object)