Class ComparisonCondition


  • public class ComparisonCondition
    extends CompositeCondition
    A condition which is true of the values of its two subconditions are true and both have the same value
    Author:
    bratseth
    • Constructor Detail

      • ComparisonCondition

        public ComparisonCondition​(Condition leftCondition,
                                   java.lang.String operatorString,
                                   Condition rightCondition)
    • Method Detail

      • doesMatch

        protected boolean doesMatch​(RuleEvaluation evaluation)
        Description copied from class: Condition
        Returns whether this condition matches the given evaluation at the current location of the evaluation. If there is a match, the evaluation must be advanced to the location beyond the matching item(s) before this method returns.
        Specified by:
        doesMatch in class Condition
      • traceResult

        protected void traceResult​(boolean matches,
                                   RuleEvaluation e,
                                   java.lang.Object left,
                                   java.lang.Object right)
      • getLeftCondition

        public Condition getLeftCondition()
      • setLeftCondition

        public void setLeftCondition​(Condition leftCondition)
      • getRightCondition

        public Condition getRightCondition()
      • setRightCondition

        public void setRightCondition​(Condition rightCondition)
      • toInnerString

        protected java.lang.String toInnerString()
        Description copied from class: Condition
        All instances of this produces a parseable string output
        Specified by:
        toInnerString in class Condition