Class AbstractThrowAnalysis

    • Constructor Detail

      • AbstractThrowAnalysis

        public AbstractThrowAnalysis()
    • Method Detail

      • mightThrow

        public abstract ThrowableSet mightThrow​(Unit u)
        Description copied from interface: ThrowAnalysis
        Returns a set representing the Throwable types that the specified unit might throw.
        Specified by:
        mightThrow in interface ThrowAnalysis
        Parameters:
        u - Unit whose exceptions are to be returned.
        Returns:
        a representation of the Throwable types that u might throw.
      • mightThrowExplicitly

        public ThrowableSet mightThrowExplicitly​(ThrowInst t)
        Description copied from interface: ThrowAnalysis
        Returns a set representing the Throwable types that the specified throw instruction might throw explicitly, that is, the possible types for its Throwable argument.
        Specified by:
        mightThrowExplicitly in interface ThrowAnalysis
        Parameters:
        t - ThrowInst whose explicit exceptions are to be returned.
        Returns:
        a representation of the possible types of t's Throwable operand.
      • mightThrowExplicitly

        public ThrowableSet mightThrowExplicitly​(ThrowStmt t)
        Description copied from interface: ThrowAnalysis
        Returns a set representing the Throwable types that the specified throw statement might throw explicitly, that is, the possible types for its Throwable argument.
        Specified by:
        mightThrowExplicitly in interface ThrowAnalysis
        Parameters:
        t - ThrowStmt whose explicit exceptions are to be returned.
        Returns:
        a representation of the possible types of t's Throwable operand.
      • mightThrowImplicitly

        public abstract ThrowableSet mightThrowImplicitly​(ThrowInst t)
        Description copied from interface: ThrowAnalysis
        Returns a set representing the Throwable types that the specified throw instruction might throw implicitly, that is, the possible types of errors which might arise in the course of executing the throw instruction, rather than the type of the throw's operand.
        Specified by:
        mightThrowImplicitly in interface ThrowAnalysis
        Parameters:
        t - ThrowStmt whose implicit exceptions are to be returned.
        Returns:
        a representation of the types of exceptions that t might throw implicitly.
      • mightThrowImplicitly

        public abstract ThrowableSet mightThrowImplicitly​(ThrowStmt t)
        Description copied from interface: ThrowAnalysis
        Returns a set representing the Throwable types that the specified throw statement might throw implicitly, that is, the possible types of errors which might arise in the course of executing the throw statement, rather than the type of the throw's operand.
        Specified by:
        mightThrowImplicitly in interface ThrowAnalysis
        Parameters:
        t - ThrowStmt whose implicit exceptions are to be returned.
        Returns:
        a representation of the types of exceptions that t might throw implicitly.