Interface CtCase<S>

    • Method Detail

      • setCaseExpression

        <T extends CtCase<S>> T setCaseExpression​(CtExpression<S> caseExpression)
        Sets the case expression. If set with null, the CtCase will represent a default label. Use setCaseExpressions(List) since Java 12
      • getCaseExpressions

        java.util.List<CtExpression<S>> getCaseExpressions()
        Gets the case expressions. (Multiple case expressions are available as a preview feature since Java 12)
      • setCaseExpressions

        <T extends CtCase<S>> T setCaseExpressions​(java.util.List<CtExpression<S>> caseExpressions)
        Sets the case expressions. If set with null or an empty list, the CtCase will represent a default label. (Multiple case expressions are available as a preview feature since Java 12)
      • addCaseExpression

        <T extends CtCase<S>> T addCaseExpression​(CtExpression<S> caseExpression)
        Adds case expression. (Multiple case expressions are available as a preview feature since Java 12)
      • getCaseKind

        CaseKind getCaseKind()
        Gets the kind of this case - colon (:) or arrow (->) (Arrow syntax is available as a preview feature since Java 12)
      • setCaseKind

        <T extends CtCase<S>> T setCaseKind​(CaseKind kind)
        Sets the kind of this case - colon (:) or arrow (->) (Arrow syntax is available as a preview feature since Java 12)