Class TreeUtilsAfterJava11.ConstantCaseLabelUtils
java.lang.Object
org.checkerframework.javacutil.TreeUtilsAfterJava11.ConstantCaseLabelUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressionTreegetConstantExpression(Tree constantCaseLabelTree) Wrapper aroundConstantCaseLabelTree#getConstantExpression.static booleanisConstantCaseLabelTree(Tree tree) Returns true iftreeis aConstantCaseLabelTree.
-
Method Details
-
isConstantCaseLabelTree
Returns true iftreeis aConstantCaseLabelTree.- Parameters:
tree- a tree to check- Returns:
- true if
treeis aConstantCaseLabelTree
-
getConstantExpression
Wrapper aroundConstantCaseLabelTree#getConstantExpression.- Parameters:
constantCaseLabelTree- a ConstantCaseLabelTree tree- Returns:
- the expression in the
constantCaseLabelTree
-