Package org.checkerframework.javacutil
Class TreeUtilsAfterJava11.ConstantCaseLabelUtils
- java.lang.Object
-
- org.checkerframework.javacutil.TreeUtilsAfterJava11.ConstantCaseLabelUtils
-
- Enclosing class:
- TreeUtilsAfterJava11
public static class TreeUtilsAfterJava11.ConstantCaseLabelUtils extends java.lang.Object
Utility methods for accessingConstantCaseLabelTree
methods.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.sun.source.tree.ExpressionTree
getConstantExpression(com.sun.source.tree.Tree constantCaseLabelTree)
Wrapper aroundConstantCaseLabelTree#getConstantExpression
.static boolean
isConstantCaseLabelTree(com.sun.source.tree.Tree tree)
Returns true iftree
is aConstantCaseLabelTree
.
-
-
-
Method Detail
-
isConstantCaseLabelTree
public static boolean isConstantCaseLabelTree(com.sun.source.tree.Tree tree)
Returns true iftree
is aConstantCaseLabelTree
.- Parameters:
tree
- a tree to check- Returns:
- true if
tree
is aConstantCaseLabelTree
-
getConstantExpression
public static com.sun.source.tree.ExpressionTree getConstantExpression(com.sun.source.tree.Tree constantCaseLabelTree)
Wrapper aroundConstantCaseLabelTree#getConstantExpression
.- Parameters:
constantCaseLabelTree
- a ConstantCaseLabelTree tree- Returns:
- the expression in the
constantCaseLabelTree
-
-