Class ExceptionalUnitGraph.ExceptionDest

    • Constructor Detail

      • ExceptionDest

        protected ExceptionDest​(Trap trap,
                                ThrowableSet throwables)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getTrap

        public Trap getTrap()
        Description copied from interface: ExceptionalGraph.ExceptionDest
        Returns the trap corresponding to this destination.
        Specified by:
        getTrap in interface ExceptionalGraph.ExceptionDest<Unit>
        Returns:
        either a Trap representing the handler that catches the exceptions, if there is such a handler within the method, or null if there is no such handler and the exceptions cause the method to terminate abruptly.
      • getHandlerNode

        public Unit getHandlerNode()
        Description copied from interface: ExceptionalGraph.ExceptionDest
        Returns the CFG node corresponding to the beginning of the exception handler that catches the exceptions (that is, the node that includes {@link trap().getBeginUnit()}).
        Specified by:
        getHandlerNode in interface ExceptionalGraph.ExceptionDest<Unit>
        Returns:
        the node in this graph which represents the beginning of the handler which catches these exceptions, or null if there is no such handler and the exceptions cause the method to terminate abruptly.