Class EvalCondition

    • Constructor Detail

      • EvalCondition

        public EvalCondition()
      • EvalCondition

        public EvalCondition​(Declaration[] requiredDeclarations)
    • Method Detail

      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • wire

        public void wire​(java.lang.Object object)
        Specified by:
        wire in interface Wireable
      • setEvalExpression

        public void setEvalExpression​(EvalExpression expression)
      • getRequiredDeclarations

        public Declaration[] getRequiredDeclarations()
      • createContext

        public java.lang.Object createContext()
      • isAllowed

        public boolean isAllowed​(Tuple tuple,
                                 ReteEvaluator reteEvaluator,
                                 java.lang.Object context)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • setOuterDeclarations

        public void setOuterDeclarations​(java.util.Map<java.lang.String,​Declaration> outerDeclarations)
      • 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:
      • resolveDeclaration

        public Declaration resolveDeclaration​(java.lang.String identifier)
        Description copied from interface: RuleConditionElement
        Resolves the given identifier in the current scope and returns the Declaration object for the declaration. Returns null if identifier can not be resolved.
        Specified by:
        resolveDeclaration in interface RuleConditionElement
        Returns:
      • setCloned

        public void setCloned​(java.util.List<EvalCondition> cloned)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object