Class ASTThrowStatement

    • Method Detail

      • getFirstClassOrInterfaceTypeImage

        @Deprecated
        public final String getFirstClassOrInterfaceTypeImage()
        Deprecated.
        This method is too specific and doesn't support all cases. It will be removed with PMD 7.
        Gets the image of the first ASTClassOrInterfaceType child or null if none is found. Note that when the statement is something like throw new Exception, this method returns 'Exception' and if the throw statement is like throw e: this method returns 'e'. A special case of returning null is when the throws is like throw this.e or throw this.

        TODO - use symbol table (?)

        Returns:
        the image of the first ASTClassOrInterfaceType node found or null