Interface Case

All Superinterfaces:
Expression, PropertyAccessor, ProvidesAffixes, Visitable
All Known Subinterfaces:
Case.CaseEnding, Case.GenericCase, Case.SimpleCase

@API(status=STABLE, since="1.0") public interface Case extends Expression, ProvidesAffixes
Since:
1.0
Author:
Gerrit Meier, Michael J. Simons
  • Method Details

    • create

      static Case create(Expression expression)
      Creates a new Case Expression.
      Parameters:
      expression - starting expression for the simple case
      Returns:
      the new expression
    • when

      Creates a new case/when expression with an additional WHEN block.
      Parameters:
      nextExpression - the next expression to use.
      Returns:
      an ongoing when builder.