Class When

    • Field Detail

      • condition

        public final Expression condition
        The condition to verify.
      • action

        public final Expression action
        The action to be executed if the condition is true.
    • Method Detail

      • when

        public static When when​(Expression condition,
                                Expression action)
        Creates a new When expression.
        Parameters:
        condition - condition to verify.
        action - action to be executed if the condition is true.
        Returns:
        a new when.
      • translate

        public String translate()
        Description copied from class: Expression
        Translates the expression.
        Specified by:
        translate in class Expression
        Returns:
        A translation of the implementing expression.