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.ObjectUtility methods for accessingConstantCaseLabelTreemethods.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.sun.source.tree.ExpressionTreegetConstantExpression(com.sun.source.tree.Tree constantCaseLabelTree)Wrapper aroundConstantCaseLabelTree#getConstantExpression.static booleanisConstantCaseLabelTree(com.sun.source.tree.Tree tree)Returns true iftreeis aConstantCaseLabelTree.
-
-
-
Method Detail
-
isConstantCaseLabelTree
public static boolean isConstantCaseLabelTree(com.sun.source.tree.Tree tree)
Returns true iftreeis aConstantCaseLabelTree.- Parameters:
tree- a tree to check- Returns:
- true if
treeis 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
-
-