Package soot.toolkits.graph
Class ExceptionalBlockGraph.ExceptionDest
- java.lang.Object
-
- soot.toolkits.graph.ExceptionalBlockGraph.ExceptionDest
-
- All Implemented Interfaces:
ExceptionalGraph.ExceptionDest<Block>
- Enclosing class:
- ExceptionalBlockGraph
public static class ExceptionalBlockGraph.ExceptionDest extends Object implements ExceptionalGraph.ExceptionDest<Block>
-
-
Field Summary
Fields Modifier and Type Field Description protected ThrowableSetthrowables
-
Constructor Summary
Constructors Modifier Constructor Description protectedExceptionDest(Trap trap, ThrowableSet throwables, Block handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockgetHandlerNode()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()}).ThrowableSetgetThrowables()Returns the exceptions thrown to this destination.TrapgetTrap()Returns the trap corresponding to this destination.StringtoString()
-
-
-
Field Detail
-
throwables
protected ThrowableSet throwables
-
-
Constructor Detail
-
ExceptionDest
protected ExceptionDest(Trap trap, ThrowableSet throwables, Block handler)
-
-
Method Detail
-
getTrap
public Trap getTrap()
Description copied from interface:ExceptionalGraph.ExceptionDestReturns the trap corresponding to this destination.- Specified by:
getTrapin interfaceExceptionalGraph.ExceptionDest<Block>- Returns:
- either a
Traprepresenting the handler that catches the exceptions, if there is such a handler within the method, ornullif there is no such handler and the exceptions cause the method to terminate abruptly.
-
getThrowables
public ThrowableSet getThrowables()
Description copied from interface:ExceptionalGraph.ExceptionDestReturns the exceptions thrown to this destination.- Specified by:
getThrowablesin interfaceExceptionalGraph.ExceptionDest<Block>- Returns:
- a
ThrowableSetrepresenting the exceptions which may be caught by thisExceptionDest's trap.
-
getHandlerNode
public Block getHandlerNode()
Description copied from interface:ExceptionalGraph.ExceptionDestReturns 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:
getHandlerNodein interfaceExceptionalGraph.ExceptionDest<Block>- Returns:
- the node in this graph which represents the beginning of the handler which catches these exceptions, or
nullif there is no such handler and the exceptions cause the method to terminate abruptly.
-
-