站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

ReturnValueRestriction (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.rule
Class ReturnValueRestriction

java.lang.Object
  extended by org.drools.rule.ReturnValueRestriction
All Implemented Interfaces:
Serializable, Restriction

public class ReturnValueRestriction
extends Object
implements Restriction

See Also:
Serialized Form

Nested Class Summary
static class ReturnValueRestriction.ReturnValueContextEntry
           
 
Constructor Summary
ReturnValueRestriction(FieldExtractor fieldExtractor, Declaration[] previousDeclarations, Declaration[] localDeclarations, String[] requiredGlobals, Evaluator evaluator)
           
ReturnValueRestriction(FieldExtractor fieldExtractor, ReturnValueExpression returnValueExpression, Declaration[] previousDeclarations, Declaration[] localDeclarations, String[] requiredGlobals, Evaluator evaluator)
           
 
Method Summary
 boolean equals(Object object)
           
 ContextEntry getContextEntry()
           
 Evaluator getEvaluator()
           
 ReturnValueExpression getExpression()
           
 Declaration[] getLocalDeclarations()
           
 Declaration[] getPreviousDeclarations()
           
 Declaration[] getRequiredDeclarations()
           
 int hashCode()
           
 boolean isAllowed(Extractor extractor, Object object, InternalWorkingMemory workingMemoiry)
           
 boolean isAllowed(Extractor extractor, Object object, Tuple tuple, WorkingMemory workingMemory)
           
 boolean isAllowedCachedLeft(ContextEntry context, Object object)
           
 boolean isAllowedCachedRight(ReteTuple tuple, ContextEntry context)
           
 void setReturnValueExpression(ReturnValueExpression expression)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReturnValueRestriction

public ReturnValueRestriction(FieldExtractor fieldExtractor,
                              Declaration[] previousDeclarations,
                              Declaration[] localDeclarations,
                              String[] requiredGlobals,
                              Evaluator evaluator)

ReturnValueRestriction

public ReturnValueRestriction(FieldExtractor fieldExtractor,
                              ReturnValueExpression returnValueExpression,
                              Declaration[] previousDeclarations,
                              Declaration[] localDeclarations,
                              String[] requiredGlobals,
                              Evaluator evaluator)
Method Detail

getRequiredDeclarations

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

getPreviousDeclarations

public Declaration[] getPreviousDeclarations()

getLocalDeclarations

public Declaration[] getLocalDeclarations()

setReturnValueExpression

public void setReturnValueExpression(ReturnValueExpression expression)

getExpression

public ReturnValueExpression getExpression()

getEvaluator

public Evaluator getEvaluator()

isAllowed

public boolean isAllowed(Extractor extractor,
                         Object object,
                         Tuple tuple,
                         WorkingMemory workingMemory)

isAllowed

public boolean isAllowed(Extractor extractor,
                         Object object,
                         InternalWorkingMemory workingMemoiry)
Specified by:
isAllowed in interface Restriction

isAllowedCachedLeft

public boolean isAllowedCachedLeft(ContextEntry context,
                                   Object object)
Specified by:
isAllowedCachedLeft in interface Restriction

isAllowedCachedRight

public boolean isAllowedCachedRight(ReteTuple tuple,
                                    ContextEntry context)
Specified by:
isAllowedCachedRight in interface Restriction

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object

getContextEntry

public ContextEntry getContextEntry()
Specified by:
getContextEntry in interface Restriction


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.