Interface Case

All Superinterfaces:
Expression, 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

    • when

      @NotNull @CheckReturnValue @NotNull Case.OngoingWhenThen when(Expression nextExpression)
      Creates a new case/when expression with an additional WHEN block.
      Parameters:
      nextExpression - The next expression to use.
      Returns:
      An ongoing when builder.
    • create

      static Case create(@Nullable @Nullable Expression expression)
      Creates a new Case Expression
      Parameters:
      expression - starting expression for the simple case
      Returns:
      The new expression