Package org.checkerframework.javacutil
Class TreeUtilsAfterJava11.SwitchExpressionUtils
java.lang.Object
org.checkerframework.javacutil.TreeUtilsAfterJava11.SwitchExpressionUtils
- Enclosing class:
 - TreeUtilsAfterJava11
 
Utility methods for accessing 
SwitchExpressionTree methods.- 
Method Summary
Modifier and TypeMethodDescriptionReturns the cases ofswitchExpressionTree.static ExpressionTreegetExpression(Tree switchExpressionTree) Returns the selector expression ofswitchExpressionTree. 
- 
Method Details
- 
getCases
Returns the cases ofswitchExpressionTree. For exampleswitch ( expression ) { cases }- Parameters:
 switchExpressionTree- the switch expression whose cases are returned- Returns:
 - the cases of 
switchExpressionTree 
 - 
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 
 
 -