Package org.checkerframework.javacutil
Class TreeUtilsAfterJava11.ConstantCaseLabelUtils
java.lang.Object
org.checkerframework.javacutil.TreeUtilsAfterJava11.ConstantCaseLabelUtils
- Enclosing class:
TreeUtilsAfterJava11
@Deprecated(forRemoval=true,
since="4.0.0")
public static class TreeUtilsAfterJava11.ConstantCaseLabelUtils
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Utility methods for accessing
ConstantCaseLabelTree methods.-
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressionTreegetConstantExpression(Tree constantCaseLabelTree) Deprecated, for removal: This API element is subject to removal in a future version.static booleanisConstantCaseLabelTree(Tree tree) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
isConstantCaseLabelTree
@Deprecated(forRemoval=true, since="4.0.0") public static boolean isConstantCaseLabelTree(Tree tree) Deprecated, for removal: This API element is subject to removal in a future version.Returns true iftreeis aConstantCaseLabelTree.- Parameters:
tree- a tree to check- Returns:
- true if
treeis aConstantCaseLabelTree
-
getConstantExpression
@Deprecated(forRemoval=true, since="4.0.0") public static ExpressionTree getConstantExpression(Tree constantCaseLabelTree) Deprecated, for removal: This API element is subject to removal in a future version.Wrapper aroundConstantCaseLabelTree#getConstantExpression.- Parameters:
constantCaseLabelTree- a ConstantCaseLabelTree tree- Returns:
- the expression in the
constantCaseLabelTree
-
TreeUtilsAfterJava17.ConstantCaseLabelUtils.getConstantExpression(Tree)