Package org.checkerframework.javacutil
Class TreeUtilsAfterJava11.DeconstructionPatternUtils
- java.lang.Object
-
- org.checkerframework.javacutil.TreeUtilsAfterJava11.DeconstructionPatternUtils
-
- Enclosing class:
- TreeUtilsAfterJava11
public static class TreeUtilsAfterJava11.DeconstructionPatternUtils extends java.lang.Object
Utility methods for accessingDeconstructionPatternTree
methods.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.sun.source.tree.ExpressionTree
getDeconstructor(com.sun.source.tree.Tree tree)
Returns the deconstruction type oftree
.static java.util.List<? extends com.sun.source.tree.Tree>
getNestedPatterns(com.sun.source.tree.Tree tree)
Wrapper aroundDeconstructionPatternTree#getNestedPatterns
.
-
-
-
Method Detail
-
getDeconstructor
public static com.sun.source.tree.ExpressionTree getDeconstructor(com.sun.source.tree.Tree tree)
Returns the deconstruction type oftree
. Wrapper aroundDeconstructionPatternTree#getDeconstructor
.- Parameters:
tree
- the DeconstructionPatternTree- Returns:
- the deconstructor of
DeconstructionPatternTree
-
getNestedPatterns
public static java.util.List<? extends com.sun.source.tree.Tree> getNestedPatterns(com.sun.source.tree.Tree tree)
Wrapper aroundDeconstructionPatternTree#getNestedPatterns
.- Parameters:
tree
- the DeconstructionPatternTree- Returns:
- the nested patterns of
DeconstructionPatternTree
-
-