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 Details

    • ComparisonCondition

      public ComparisonCondition(Condition leftCondition, String operatorString, Condition rightCondition)
  • Method Details

    • 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)
      Overrides:
      traceResult in class Condition
    • traceResult

      protected void traceResult(boolean matches, RuleEvaluation e, Object left, Object right)
    • getLeftCondition

      public Condition getLeftCondition()
    • setLeftCondition

      public void setLeftCondition(Condition leftCondition)
    • getRightCondition

      public Condition getRightCondition()
    • setRightCondition

      public void setRightCondition(Condition rightCondition)
    • toInnerString

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