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 TreegetPattern(Tree patternCaseLabelTree) Wrapper aroundPatternCaseLabelTree#getPattern.static booleanisPatternCaseLabelTree(Tree tree) Returns true iftreeis aPatternCaseLabelTree.
-
Method Details
-
isPatternCaseLabelTree
Returns true iftreeis aPatternCaseLabelTree.- Parameters:
tree- a tree to check- Returns:
- true if
treeis aPatternCaseLabelTree
-
getPattern
Wrapper aroundPatternCaseLabelTree#getPattern.- Parameters:
patternCaseLabelTree- a PatternCaseLabelTree tree- Returns:
- the
PatternTreein thepatternCaseLabelTree
-