Class TreeUtilsAfterJava11.PatternCaseLabelUtils

  • Enclosing class:
    TreeUtilsAfterJava11

    public static class TreeUtilsAfterJava11.PatternCaseLabelUtils
    extends java.lang.Object
    Utility methods for accessing PatternCaseLabelTree methods.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.sun.source.tree.Tree getPattern​(com.sun.source.tree.Tree patternCaseLabelTree)
      Wrapper around PatternCaseLabelTree#getPattern.
      static boolean isPatternCaseLabelTree​(com.sun.source.tree.Tree tree)
      Returns whether tree is a PatternCaseLabelTree.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isPatternCaseLabelTree

        public static boolean isPatternCaseLabelTree​(com.sun.source.tree.Tree tree)
        Returns whether tree is a PatternCaseLabelTree.
        Parameters:
        tree - a tree to check
        Returns:
        true if tree is a PatternCaseLabelTree
      • getPattern

        public static com.sun.source.tree.Tree getPattern​(com.sun.source.tree.Tree patternCaseLabelTree)
        Wrapper around PatternCaseLabelTree#getPattern.
        Parameters:
        patternCaseLabelTree - a PatternCaseLabelTree tree
        Returns:
        the PatternTree in the patternCaseLabelTree