Package org.checkerframework.javacutil
Class TreeUtilsAfterJava11.SwitchExpressionUtils
java.lang.Object
org.checkerframework.javacutil.TreeUtilsAfterJava11.SwitchExpressionUtils
- Enclosing class:
TreeUtilsAfterJava11
@Deprecated(forRemoval=true,
since="4.0.0")
public static class TreeUtilsAfterJava11.SwitchExpressionUtils
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Utility methods for accessing
SwitchExpressionTree methods.-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.static ExpressionTreegetExpression(Tree switchExpressionTree) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
getCases
@Deprecated(forRemoval=true, since="4.0.0") public static List<? extends CaseTree> getCases(Tree switchExpressionTree) Deprecated, for removal: This API element is subject to removal in a future version.Returns the cases ofswitchExpressionTree. For exampleswitch ( expression ) { cases }- Parameters:
switchExpressionTree- the switch expression whose cases are returned- Returns:
- the cases of
switchExpressionTree
-
getExpression
@Deprecated(forRemoval=true, since="4.0.0") public static ExpressionTree getExpression(Tree switchExpressionTree) Deprecated, for removal: This API element is subject to removal in a future version.Returns the selector expression ofswitchExpressionTree. For exampleswitch ( expression ) { ... }- Parameters:
switchExpressionTree- the switch expression whose selector expression is returned- Returns:
- the selector expression of
switchExpressionTree
-
SwitchExpressionTree.getCases()