Interface ASTPattern

    • Method Detail

      • getParenthesisDepth

        @Experimental
        @Deprecated
        int getParenthesisDepth()
        Deprecated.
        Parenthesized patterns are only possible with Java 20 Preview and are removed with Java 21.
        Returns the number of parenthesis levels around this pattern. If this method returns 0, then no parentheses are present.