Package org.checkerframework.javacutil
Class TreeUtilsAfterJava11.PatternCaseLabelUtils
- java.lang.Object
-
- org.checkerframework.javacutil.TreeUtilsAfterJava11.PatternCaseLabelUtils
-
- Enclosing class:
- TreeUtilsAfterJava11
public static class TreeUtilsAfterJava11.PatternCaseLabelUtils extends java.lang.Object
Utility methods for accessingPatternCaseLabelTree
methods.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.sun.source.tree.Tree
getPattern(com.sun.source.tree.Tree patternCaseLabelTree)
Wrapper aroundPatternCaseLabelTree#getPattern
.static boolean
isPatternCaseLabelTree(com.sun.source.tree.Tree tree)
Returns whethertree
is aPatternCaseLabelTree
.
-
-
-
Method Detail
-
isPatternCaseLabelTree
public static boolean isPatternCaseLabelTree(com.sun.source.tree.Tree tree)
Returns whethertree
is aPatternCaseLabelTree
.- Parameters:
tree
- a tree to check- Returns:
- true if
tree
is aPatternCaseLabelTree
-
getPattern
public static com.sun.source.tree.Tree getPattern(com.sun.source.tree.Tree patternCaseLabelTree)
Wrapper aroundPatternCaseLabelTree#getPattern
.- Parameters:
patternCaseLabelTree
- a PatternCaseLabelTree tree- Returns:
- the
PatternTree
in thepatternCaseLabelTree
-
-