Class TreeUtilsAfterJava11.DeconstructionPatternUtils

java.lang.Object
org.checkerframework.javacutil.TreeUtilsAfterJava11.DeconstructionPatternUtils
Enclosing class:
TreeUtilsAfterJava11

public static class TreeUtilsAfterJava11.DeconstructionPatternUtils extends Object
Utility methods for accessing DeconstructionPatternTree methods.
  • Method Details

    • getDeconstructor

      public static ExpressionTree getDeconstructor(Tree tree)
      Returns the deconstruction type of tree. Wrapper around DeconstructionPatternTree#getDeconstructor.
      Parameters:
      tree - the DeconstructionPatternTree
      Returns:
      the deconstructor of DeconstructionPatternTree
    • getNestedPatterns

      public static List<? extends Tree> getNestedPatterns(Tree tree)
      Wrapper around DeconstructionPatternTree#getNestedPatterns.
      Parameters:
      tree - the DeconstructionPatternTree
      Returns:
      the nested patterns of DeconstructionPatternTree