Class Condition

java.lang.Object
com.aquima.interactions.rule.parser.Expression
com.aquima.interactions.rule.parser.Condition
All Implemented Interfaces:
ICondition, IExpression, Serializable

public class Condition extends Expression implements ICondition
Simple class wrapping an expression that always results in a boolean value.
Since:
5.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • Condition

      protected Condition(IExpr expr)
  • Method Details

    • evaluateConditionWith

      public BooleanValue evaluateConditionWith(InferenceContext context, BooleanValue unknownValue)
      Description copied from interface: ICondition
      Evaluate method that will ensure the result is a boolean value, and use the default value passed if the expression did not yield any result.
      Specified by:
      evaluateConditionWith in interface ICondition
      Parameters:
      context - The context that should be used to evaluate the expression with.
      unknownValue - The default value that should be returned when the expression does not yield a result.
      Returns:
      Boolean value containing the result of the expression evaluation, or the default value.
    • toString

      public String toString()
      Overrides:
      toString in class Expression