Class Pattern

    • Constructor Detail

      • Pattern

        public Pattern()
      • Pattern

        public Pattern​(int patternId,
                       ObjectType objectType)
      • Pattern

        public Pattern​(int patternId,
                       ObjectType objectType,
                       String identifier)
      • Pattern

        public Pattern​(int patternId,
                       int tupleIndex,
                       int objectIndex,
                       ObjectType objectType,
                       String identifier)
      • Pattern

        public Pattern​(int patternId,
                       int tupleIndex,
                       int objectIndex,
                       ObjectType objectType,
                       String identifier,
                       boolean isInternalFact)
    • Method Detail

      • hasNegativeConstraint

        public boolean hasNegativeConstraint()
      • setHasNegativeConstraint

        public void setHasNegativeConstraint​(boolean negative)
      • getRequiredDeclarations

        public Declaration[] getRequiredDeclarations()
      • getObjectType

        public ObjectType getObjectType()
      • setObjectType

        public void setObjectType​(ObjectType objectType)
      • isPassive

        public boolean isPassive()
      • setPassive

        public void setPassive​(boolean passive)
      • addConstraint

        public void addConstraint​(int index,
                                  Constraint constraint)
      • addConstraint

        public void addConstraint​(Constraint constraint)
      • hasXPath

        public boolean hasXPath()
      • getXPathDeclaration

        public Declaration getXPathDeclaration()
      • addDeclaration

        public void addDeclaration​(Declaration decl)
      • resetDeclarations

        public void resetDeclarations()
      • isBound

        public boolean isBound()
      • getPatternId

        public int getPatternId()
        The index of the Pattern, in the list of patterns.
        Returns:
        the patternIndex
      • getObjectIndex

        public int getObjectIndex()
      • setObjectIndex

        public void setObjectIndex​(int objectIndex)
      • getTupleIndex

        public int getTupleIndex()
        The index of pattern in the tuple chain.
        Returns:
        the tupleIndex
      • setTupleIndex

        public void setTupleIndex​(int tupleIndex)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isPatternScopeDelimiter

        public boolean isPatternScopeDelimiter()
        Description copied from interface: RuleConditionElement
        Returns true in case this RuleConditionElement delimits a pattern visibility scope. For instance, AND CE is not a scope delimiter, while NOT CE is a scope delimiter
        Specified by:
        isPatternScopeDelimiter in interface RuleConditionElement
        Returns:
      • getBehaviors

        public List<Behavior> getBehaviors()
        Returns:
        the behaviors
      • setBehaviors

        public void setBehaviors​(List<Behavior> behaviors)
        Parameters:
        behaviors - the behaviors to set
      • addBehavior

        public void addBehavior​(Behavior behavior)
      • addBoundProperty

        public void addBoundProperty​(String boundProperty)
      • addWatchedProperty

        public void addWatchedProperty​(String watchedProperty)
      • addWatchedProperties

        public void addWatchedProperties​(Collection<String> watchedProperties)
      • getPositiveWatchMask

        public BitMask getPositiveWatchMask​(List<String> accessibleProperties)
      • setPositiveWatchMask

        public void setPositiveWatchMask​(BitMask positiveWatchMask)
      • getNegativeWatchMask

        public BitMask getNegativeWatchMask​(List<String> accessibleProperties)
      • setNegativeWatchMask

        public void setNegativeWatchMask​(BitMask negativeWatchMask)
      • setBackRefDeclarations

        public void setBackRefDeclarations​(XpathBackReference backRefDeclarations)
      • getXpathBackReferenceClasses

        public List<Class<?>> getXpathBackReferenceClasses()
      • isCompatibleWithAccumulateReturnType

        public boolean isCompatibleWithAccumulateReturnType​(Class<?> returnType)
      • isCompatibleWithFromReturnType

        public boolean isCompatibleWithFromReturnType​(Class<?> returnType)
      • isCompatibleWithAccumulateReturnType

        public static boolean isCompatibleWithAccumulateReturnType​(Class<?> patternType,
                                                                   Class<?> returnType)
      • isCompatibleWithFromReturnType

        public static boolean isCompatibleWithFromReturnType​(Class<?> patternType,
                                                             Class<?> returnType)