Package org.sonar.plugins.java.api.tree
Interface SwitchStatementTree
-
- All Superinterfaces:
StatementTree
,SwitchTree
,Tree
- All Known Implementing Classes:
SwitchStatementTreeImpl
@Beta public interface SwitchStatementTree extends SwitchTree, StatementTree
'switch' statement. JLS 14.11switch (
SwitchTree.expression()
) {SwitchTree.cases()
}- Since:
- Java 1.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description SwitchExpressionTree
asSwitchExpression()
Deprecated.since SonarJava 6.15, for removal, SwitchStatementTree will not have an underlying SwitchExpressionTree but share the same SwitchTree interface with SwitchExpressionTree-
Methods inherited from interface org.sonar.plugins.java.api.tree.SwitchTree
cases, closeBraceToken, closeParenToken, expression, openBraceToken, openParenToken, switchKeyword
-
-
-
-
Method Detail
-
asSwitchExpression
@Deprecated SwitchExpressionTree asSwitchExpression()
Deprecated.since SonarJava 6.15, for removal, SwitchStatementTree will not have an underlying SwitchExpressionTree but share the same SwitchTree interface with SwitchExpressionTreeConsider the statement as a Switch expression- Since:
- SonarJava 5.12: Support of Java 12
-
-