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

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


org.drools.rule
Class LiteralConstraint

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

public class LiteralConstraint
extends Object
implements AlphaNodeFieldConstraint

See Also:
Serialized Form

Constructor Summary
LiteralConstraint(FieldExtractor extractor, Evaluator evaluator, FieldValue field)
           
LiteralConstraint(FieldExtractor extractor, LiteralRestriction restriction)
           
 
Method Summary
 boolean equals(Object object)
           
 Evaluator getEvaluator()
           
 FieldValue getField()
           
 FieldExtractor getFieldExtractor()
           
 Declaration[] getRDeclarations()
           
 Declaration[] getRequiredDeclarations()
          Literal constraints cannot have required declarations, so always return an empty array.
 int hashCode()
           
 boolean isAllowed(Object object, InternalWorkingMemory workingMemory)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LiteralConstraint

public LiteralConstraint(FieldExtractor extractor,
                         Evaluator evaluator,
                         FieldValue field)

LiteralConstraint

public LiteralConstraint(FieldExtractor extractor,
                         LiteralRestriction restriction)
Method Detail

getEvaluator

public Evaluator getEvaluator()

getField

public FieldValue getField()

getFieldExtractor

public FieldExtractor getFieldExtractor()

getRDeclarations

public Declaration[] getRDeclarations()

getRequiredDeclarations

public Declaration[] getRequiredDeclarations()
Literal constraints cannot have required declarations, so always return an empty array.

Specified by:
getRequiredDeclarations in interface Constraint
Returns:
Return an empty Declaration[]

isAllowed

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

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


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