Class UnificationConstraint

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, org.drools.core.rule.constraint.AlphaNodeFieldConstraint, org.drools.core.rule.constraint.BetaNodeFieldConstraint, org.drools.core.rule.constraint.Constraint, org.drools.core.rule.IndexableConstraint, org.drools.core.rule.RuleComponent

    public class UnificationConstraint
    extends org.drools.core.rule.MutableTypeConstraint
    implements org.drools.core.rule.IndexableConstraint
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.drools.core.rule.constraint.Constraint

        org.drools.core.rule.constraint.Constraint.ConstraintType
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.drools.core.rule.MutableTypeConstraint clone()  
      org.drools.core.rule.ContextEntry createContextEntry()  
      org.drools.core.util.index.IndexUtil.ConstraintType getConstraintType()  
      org.drools.core.rule.accessor.FieldValue getField()  
      org.drools.core.rule.accessor.ReadAccessor getFieldExtractor()  
      org.drools.core.util.AbstractHashTable.FieldIndex getFieldIndex()  
      org.drools.core.rule.Declaration getIndexExtractor()  
      org.drools.core.rule.Declaration[] getRequiredDeclarations()  
      boolean isAllowed​(org.drools.core.common.InternalFactHandle handle, org.drools.core.common.ReteEvaluator reteEvaluator)  
      boolean isAllowedCachedLeft​(org.drools.core.rule.ContextEntry context, org.drools.core.common.InternalFactHandle handle)  
      boolean isAllowedCachedRight​(org.drools.core.reteoo.Tuple tuple, org.drools.core.rule.ContextEntry context)  
      boolean isIndexable​(short nodeType, org.kie.api.KieBaseConfiguration config)  
      boolean isTemporal()  
      boolean isUnification()  
      void replaceDeclaration​(org.drools.core.rule.Declaration oldDecl, org.drools.core.rule.Declaration newDecl)  
      void unsetUnification()  
      • 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.rule.constraint.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:
        isUnification in interface org.drools.core.rule.IndexableConstraint
      • unsetUnification

        public void unsetUnification()
        Specified by:
        unsetUnification in interface org.drools.core.rule.IndexableConstraint
      • isIndexable

        public boolean isIndexable​(short nodeType,
                                   org.kie.api.KieBaseConfiguration config)
        Specified by:
        isIndexable in interface org.drools.core.rule.IndexableConstraint
      • getConstraintType

        public org.drools.core.util.index.IndexUtil.ConstraintType getConstraintType()
        Specified by:
        getConstraintType in interface org.drools.core.rule.IndexableConstraint
      • getField

        public org.drools.core.rule.accessor.FieldValue getField()
        Specified by:
        getField in interface org.drools.core.rule.IndexableConstraint
      • getFieldIndex

        public org.drools.core.util.AbstractHashTable.FieldIndex getFieldIndex()
        Specified by:
        getFieldIndex in interface org.drools.core.rule.IndexableConstraint
      • getFieldExtractor

        public org.drools.core.rule.accessor.ReadAccessor getFieldExtractor()
        Specified by:
        getFieldExtractor in interface org.drools.core.rule.IndexableConstraint
      • getIndexExtractor

        public org.drools.core.rule.Declaration getIndexExtractor()
        Specified by:
        getIndexExtractor in interface org.drools.core.rule.IndexableConstraint
      • getRequiredDeclarations

        public org.drools.core.rule.Declaration[] getRequiredDeclarations()
        Specified by:
        getRequiredDeclarations in interface org.drools.core.rule.constraint.Constraint
      • replaceDeclaration

        public void replaceDeclaration​(org.drools.core.rule.Declaration oldDecl,
                                       org.drools.core.rule.Declaration newDecl)
        Specified by:
        replaceDeclaration in interface org.drools.core.rule.constraint.Constraint
      • clone

        public org.drools.core.rule.MutableTypeConstraint clone()
        Specified by:
        clone in interface org.drools.core.rule.constraint.Constraint
        Specified by:
        clone in class org.drools.core.rule.MutableTypeConstraint
      • isTemporal

        public boolean isTemporal()
        Specified by:
        isTemporal in interface org.drools.core.rule.constraint.Constraint
      • isAllowed

        public boolean isAllowed​(org.drools.core.common.InternalFactHandle handle,
                                 org.drools.core.common.ReteEvaluator reteEvaluator)
        Specified by:
        isAllowed in interface org.drools.core.rule.constraint.AlphaNodeFieldConstraint
      • isAllowedCachedLeft

        public boolean isAllowedCachedLeft​(org.drools.core.rule.ContextEntry context,
                                           org.drools.core.common.InternalFactHandle handle)
        Specified by:
        isAllowedCachedLeft in interface org.drools.core.rule.constraint.BetaNodeFieldConstraint
      • isAllowedCachedRight

        public boolean isAllowedCachedRight​(org.drools.core.reteoo.Tuple tuple,
                                            org.drools.core.rule.ContextEntry context)
        Specified by:
        isAllowedCachedRight in interface org.drools.core.rule.constraint.BetaNodeFieldConstraint
      • createContextEntry

        public org.drools.core.rule.ContextEntry createContextEntry()
        Specified by:
        createContextEntry in interface org.drools.core.rule.constraint.BetaNodeFieldConstraint