Package org.checkerframework.javacutil
Class TreeUtilsAfterJava11.ConstantCaseLabelUtils
java.lang.Object
org.checkerframework.javacutil.TreeUtilsAfterJava11.ConstantCaseLabelUtils
- Enclosing class:
TreeUtilsAfterJava11
Utility methods for accessing
ConstantCaseLabelTree
methods.-
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressionTree
getConstantExpression
(Tree constantCaseLabelTree) Wrapper aroundConstantCaseLabelTree#getConstantExpression
.static boolean
isConstantCaseLabelTree
(Tree tree) Returns true iftree
is aConstantCaseLabelTree
.
-
Method Details
-
isConstantCaseLabelTree
Returns true iftree
is aConstantCaseLabelTree
.- Parameters:
tree
- a tree to check- Returns:
- true if
tree
is aConstantCaseLabelTree
-
getConstantExpression
Wrapper aroundConstantCaseLabelTree#getConstantExpression
.- Parameters:
constantCaseLabelTree
- a ConstantCaseLabelTree tree- Returns:
- the expression in the
constantCaseLabelTree
-