Class TreeUtilsAfterJava11.SwitchExpressionUtils
java.lang.Object
org.checkerframework.javacutil.TreeUtilsAfterJava11.SwitchExpressionUtils
-
Method Summary
Modifier and TypeMethodDescriptionReturns the cases ofswitchExpressionTree.static ExpressionTreegetExpression(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
-