当前页面:
在线文档首页 >
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
org.drools.rule.LiteralConstraint
- All Implemented Interfaces:
- Serializable, AlphaNodeFieldConstraint, Constraint, RuleComponent
public class LiteralConstraint
- extends Object
- implements AlphaNodeFieldConstraint
- See Also:
- Serialized Form
LiteralConstraint
public LiteralConstraint(FieldExtractor extractor,
Evaluator evaluator,
FieldValue field)
LiteralConstraint
public LiteralConstraint(FieldExtractor extractor,
LiteralRestriction restriction)
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.