Package org.checkerframework.javacutil
Class TreeUtilsAfterJava11.DeconstructionPatternUtils
java.lang.Object
org.checkerframework.javacutil.TreeUtilsAfterJava11.DeconstructionPatternUtils
- Enclosing class:
TreeUtilsAfterJava11
Utility methods for accessing
DeconstructionPatternTree methods.-
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressionTreegetDeconstructor(Tree tree) Returns the deconstruction type oftree.getNestedPatterns(Tree tree) Wrapper aroundDeconstructionPatternTree#getNestedPatterns.
-
Method Details
-
getDeconstructor
Returns the deconstruction type oftree. Wrapper aroundDeconstructionPatternTree#getDeconstructor.- Parameters:
tree- the DeconstructionPatternTree- Returns:
- the deconstructor of
DeconstructionPatternTree
-
getNestedPatterns
Wrapper aroundDeconstructionPatternTree#getNestedPatterns.- Parameters:
tree- the DeconstructionPatternTree- Returns:
- the nested patterns of
DeconstructionPatternTree
-