Class TreeUtilsAfterJava11.SwitchExpressionUtils
java.lang.Object
org.checkerframework.javacutil.TreeUtilsAfterJava11.SwitchExpressionUtils
-
Method Summary
Modifier and TypeMethodDescriptionReturns the cases ofswitchExpressionTree
.static ExpressionTree
getExpression
(Tree switchExpressionTree) Returns the selector expression ofswitchExpressionTree
.
-
Method Details
-
getCases
-
getExpression
Returns the selector expression ofswitchExpressionTree
. For exampleswitch ( expression ) { ... }
- Parameters:
switchExpressionTree
- the switch expression whose selector expression is returned- Returns:
- the selector expression of
switchExpressionTree
-