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

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


org.drools.rule
Class PredicateConstraint

java.lang.Object
  extended by org.drools.rule.PredicateConstraint
All Implemented Interfaces:
Serializable, AlphaNodeFieldConstraint, BetaNodeFieldConstraint, Constraint, RuleComponent

public class PredicateConstraint
extends Object
implements BetaNodeFieldConstraint, AlphaNodeFieldConstraint

See Also:
Serialized Form

Nested Class Summary
static class PredicateConstraint.PredicateContextEntry
           
 
Constructor Summary
PredicateConstraint(Declaration[] previousDeclarations, Declaration[] localDeclarations)
           
PredicateConstraint(PredicateExpression evaluator)
           
PredicateConstraint(PredicateExpression expression, Declaration[] previousDeclarations, Declaration[] localDeclarations, String[] requiredGlobals)
           
 
Method Summary
 boolean equals(Object object)
           
 ContextEntry getContextEntry()
           
 Declaration[] getLocalDeclarations()
           
 PredicateExpression getPredicateExpression()
           
 Declaration[] getPreviousDeclarations()
           
 Declaration[] getRequiredDeclarations()
           
 int hashCode()
           
 boolean isAllowed(Object object, InternalWorkingMemory workingMemory)
           
 boolean isAllowedCachedLeft(ContextEntry context, Object object)
           
 boolean isAllowedCachedRight(ReteTuple tuple, ContextEntry context)
           
 void setPredicateExpression(PredicateExpression expression)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PredicateConstraint

public PredicateConstraint(PredicateExpression evaluator)

PredicateConstraint

public PredicateConstraint(Declaration[] previousDeclarations,
                           Declaration[] localDeclarations)

PredicateConstraint

public PredicateConstraint(PredicateExpression expression,
                           Declaration[] previousDeclarations,
                           Declaration[] localDeclarations,
                           String[] requiredGlobals)
Method Detail

getRequiredDeclarations

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

getPreviousDeclarations

public Declaration[] getPreviousDeclarations()

getLocalDeclarations

public Declaration[] getLocalDeclarations()

setPredicateExpression

public void setPredicateExpression(PredicateExpression expression)

getPredicateExpression

public PredicateExpression getPredicateExpression()

toString

public String toString()
Overrides:
toString in class Object

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 BetaNodeFieldConstraint

isAllowed

public boolean isAllowed(Object object,
                         InternalWorkingMemory workingMemory)
Specified by:
isAllowed in interface AlphaNodeFieldConstraint

isAllowedCachedLeft

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

isAllowedCachedRight

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


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