Package org.checkerframework.javacutil
Class TreeUtilsAfterJava11.PatternCaseLabelUtils
java.lang.Object
org.checkerframework.javacutil.TreeUtilsAfterJava11.PatternCaseLabelUtils
- Enclosing class:
- TreeUtilsAfterJava11
Utility methods for accessing
PatternCaseLabelTree
methods.-
Method Summary
Modifier and TypeMethodDescriptionstatic Tree
getPattern
(Tree patternCaseLabelTree) Wrapper aroundPatternCaseLabelTree#getPattern
.static boolean
isPatternCaseLabelTree
(Tree tree) Returns whethertree
is aPatternCaseLabelTree
.
-
Method Details
-
isPatternCaseLabelTree
Returns whethertree
is aPatternCaseLabelTree
.- Parameters:
tree
- a tree to check- Returns:
- true if
tree
is aPatternCaseLabelTree
-
getPattern
Wrapper aroundPatternCaseLabelTree#getPattern
.- Parameters:
patternCaseLabelTree
- a PatternCaseLabelTree tree- Returns:
- the
PatternTree
in thepatternCaseLabelTree
-