Class UnificationConstraint
- java.lang.Object
-
- org.drools.core.rule.MutableTypeConstraint
-
- org.drools.modelcompiler.constraints.UnificationConstraint
-
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,org.drools.core.rule.IndexableConstraint,org.drools.core.spi.AlphaNodeFieldConstraint,org.drools.core.spi.BetaNodeFieldConstraint,org.drools.core.spi.Constraint,org.drools.core.spi.RuleComponent
public class UnificationConstraint extends org.drools.core.rule.MutableTypeConstraint implements org.drools.core.rule.IndexableConstraint- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnificationConstraint(org.drools.core.rule.Declaration indexingDeclaration)UnificationConstraint(org.drools.core.rule.Declaration indexingDeclaration, ConstraintEvaluator evaluator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.drools.core.rule.MutableTypeConstraintclone()org.drools.core.rule.ContextEntrycreateContextEntry()org.drools.core.util.index.IndexUtil.ConstraintTypegetConstraintType()org.drools.core.spi.FieldValuegetField()org.drools.core.spi.InternalReadAccessorgetFieldExtractor()org.drools.core.util.AbstractHashTable.FieldIndexgetFieldIndex()org.drools.core.rule.DeclarationgetIndexExtractor()org.drools.core.rule.Declaration[]getRequiredDeclarations()booleanisAllowed(org.drools.core.common.InternalFactHandle handle, org.drools.core.common.ReteEvaluator reteEvaluator)booleanisAllowedCachedLeft(org.drools.core.rule.ContextEntry context, org.drools.core.common.InternalFactHandle handle)booleanisAllowedCachedRight(org.drools.core.spi.Tuple tuple, org.drools.core.rule.ContextEntry context)booleanisIndexable(short nodeType, org.drools.core.RuleBaseConfiguration config)booleanisTemporal()booleanisUnification()voidreplaceDeclaration(org.drools.core.rule.Declaration oldDecl, org.drools.core.rule.Declaration newDecl)voidunsetUnification()-
Methods inherited from class org.drools.core.rule.MutableTypeConstraint
cloneIfInUse, getType, readExternal, setInUse, setType, writeExternal
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.core.spi.Constraint
addPackageNames, equals, getListenedPropertyMask, getPackageNames, getType, mergeEvaluationContext, registerEvaluationContext
-
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
-
-
-
-
Constructor Detail
-
UnificationConstraint
public UnificationConstraint(org.drools.core.rule.Declaration indexingDeclaration)
-
UnificationConstraint
public UnificationConstraint(org.drools.core.rule.Declaration indexingDeclaration, ConstraintEvaluator evaluator)
-
-
Method Detail
-
isUnification
public boolean isUnification()
- Specified by:
isUnificationin interfaceorg.drools.core.rule.IndexableConstraint
-
unsetUnification
public void unsetUnification()
- Specified by:
unsetUnificationin interfaceorg.drools.core.rule.IndexableConstraint
-
isIndexable
public boolean isIndexable(short nodeType, org.drools.core.RuleBaseConfiguration config)- Specified by:
isIndexablein interfaceorg.drools.core.rule.IndexableConstraint
-
getConstraintType
public org.drools.core.util.index.IndexUtil.ConstraintType getConstraintType()
- Specified by:
getConstraintTypein interfaceorg.drools.core.rule.IndexableConstraint
-
getField
public org.drools.core.spi.FieldValue getField()
- Specified by:
getFieldin interfaceorg.drools.core.rule.IndexableConstraint
-
getFieldIndex
public org.drools.core.util.AbstractHashTable.FieldIndex getFieldIndex()
- Specified by:
getFieldIndexin interfaceorg.drools.core.rule.IndexableConstraint
-
getFieldExtractor
public org.drools.core.spi.InternalReadAccessor getFieldExtractor()
- Specified by:
getFieldExtractorin interfaceorg.drools.core.rule.IndexableConstraint
-
getIndexExtractor
public org.drools.core.rule.Declaration getIndexExtractor()
- Specified by:
getIndexExtractorin interfaceorg.drools.core.rule.IndexableConstraint
-
getRequiredDeclarations
public org.drools.core.rule.Declaration[] getRequiredDeclarations()
- Specified by:
getRequiredDeclarationsin interfaceorg.drools.core.spi.Constraint
-
replaceDeclaration
public void replaceDeclaration(org.drools.core.rule.Declaration oldDecl, org.drools.core.rule.Declaration newDecl)- Specified by:
replaceDeclarationin interfaceorg.drools.core.spi.Constraint
-
clone
public org.drools.core.rule.MutableTypeConstraint clone()
- Specified by:
clonein interfaceorg.drools.core.spi.Constraint- Specified by:
clonein classorg.drools.core.rule.MutableTypeConstraint
-
isTemporal
public boolean isTemporal()
- Specified by:
isTemporalin interfaceorg.drools.core.spi.Constraint
-
isAllowed
public boolean isAllowed(org.drools.core.common.InternalFactHandle handle, org.drools.core.common.ReteEvaluator reteEvaluator)- Specified by:
isAllowedin interfaceorg.drools.core.spi.AlphaNodeFieldConstraint
-
isAllowedCachedLeft
public boolean isAllowedCachedLeft(org.drools.core.rule.ContextEntry context, org.drools.core.common.InternalFactHandle handle)- Specified by:
isAllowedCachedLeftin interfaceorg.drools.core.spi.BetaNodeFieldConstraint
-
isAllowedCachedRight
public boolean isAllowedCachedRight(org.drools.core.spi.Tuple tuple, org.drools.core.rule.ContextEntry context)- Specified by:
isAllowedCachedRightin interfaceorg.drools.core.spi.BetaNodeFieldConstraint
-
createContextEntry
public org.drools.core.rule.ContextEntry createContextEntry()
- Specified by:
createContextEntryin interfaceorg.drools.core.spi.BetaNodeFieldConstraint
-
-