Interface SwitchStatementTree

  • All Superinterfaces:
    StatementTree, Tree
    All Known Implementing Classes:
    SwitchStatementTreeImpl

    @Beta
    public interface SwitchStatementTree
    extends StatementTree
    'switch' statement. JLS 14.11
       switch ( expression() ) {
         cases()
       }
     
    Since:
    Java 1.3, SonarJava 5.12: Starting from this version and introduction of support of Java 12, this Tree is now only a wrapper on top of a SwitchExpressionTree. Syntactically, each SwitchStatementTree now has a SwitchExpressionTree as direct and only child.