Class ASTThrowStatement

    • Method Detail

      • getFirstClassOrInterfaceTypeImage

        public final String getFirstClassOrInterfaceTypeImage()
        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