Interface ExpressionDef.ConditionExpressionDef

All Superinterfaces:
ExpressionDef
All Known Implementing Classes:
ExpressionDef.And, ExpressionDef.Condition, ExpressionDef.EqualsReferentially, ExpressionDef.EqualsStructurally, ExpressionDef.InstanceOf, ExpressionDef.IsFalse, ExpressionDef.IsNotNull, ExpressionDef.IsNull, ExpressionDef.IsTrue, ExpressionDef.Or
Enclosing interface:
ExpressionDef

The conditional expression.
Since:
1.5
Author:
Denis Stepanov
  • Method Details

    • type

      default TypeDef type()
      Description copied from interface: ExpressionDef
      The type of the expression.
      Specified by:
      type in interface ExpressionDef
      Returns:
      The type
    • doIf

      default StatementDef doIf(StatementDef statement)
      The conditional statement based on this expression.
      Parameters:
      statement - The statement
      Returns:
      The statement returning this expression
      Since:
      1.5
    • doIfElse

      default StatementDef doIfElse(StatementDef statement, StatementDef elseStatement)
      The conditional statement based on this expression.
      Parameters:
      statement - The statement
      elseStatement - The else statement
      Returns:
      The statement returning this expression
      Since:
      1.5
    • doIfElse

      default ExpressionDef doIfElse(ExpressionDef expression, ExpressionDef elseExpression)
      The conditional if else expression.
      Parameters:
      expression - The expression
      elseExpression - The else expression
      Returns:
      The statement returning this expression
      Since:
      1.5
    • and

      The and condition of this variable.
      Parameters:
      expression - The expression of this variable
      Returns:
      The "and" condition expression
      Since:
      1.5
    • or

      The or condition of this variable.
      Parameters:
      expression - The expression of this variable
      Returns:
      The "or" condition expression
      Since:
      1.5