soot
Interface Trap

All Known Implementing Classes:
AbstractTrap

public interface Trap

A trap (exception catcher), used within Body classes. Intermediate representations must use an implementation of Trap to describe caught exceptions.


Method Summary
 java.lang.Object clone()
          Performs a shallow clone of this trap.
 Unit getBeginUnit()
          Returns the first trapped unit.
 UnitBox getBeginUnitBox()
          Returns the box holding this trap's first trapped unit.
 Unit getEndUnit()
          Returns the last trapped unit.
 UnitBox getEndUnitBox()
          Returns the box holding this trap's last trapped unit.
 SootClass getException()
          Returns the exception being caught.
 Unit getHandlerUnit()
          Returns the unit handling the exception being trapped.
 UnitBox getHandlerUnitBox()
          Returns the box holding the exception handler's unit.
 java.util.List getUnitBoxes()
          Returns the boxes for first, last and handler units.
 void setBeginUnit(Unit beginUnit)
          Sets the first unit being trapped to beginUnit.
 void setEndUnit(Unit endUnit)
          Sets the last unit being trapped to endUnit.
 void setException(SootClass exception)
          Sets the exception being caught to exception.
 void setHandlerUnit(Unit handlerUnit)
          Sets the unit handling the exception to handlerUnit.
 

Method Detail

getBeginUnit

public Unit getBeginUnit()
Returns the first trapped unit.


getEndUnit

public Unit getEndUnit()
Returns the last trapped unit.


getHandlerUnit

public Unit getHandlerUnit()
Returns the unit handling the exception being trapped.


getBeginUnitBox

public UnitBox getBeginUnitBox()
Returns the box holding this trap's first trapped unit.


getEndUnitBox

public UnitBox getEndUnitBox()
Returns the box holding this trap's last trapped unit.


getHandlerUnitBox

public UnitBox getHandlerUnitBox()
Returns the box holding the exception handler's unit.


getUnitBoxes

public java.util.List getUnitBoxes()
Returns the boxes for first, last and handler units.


getException

public SootClass getException()
Returns the exception being caught.


setBeginUnit

public void setBeginUnit(Unit beginUnit)
Sets the first unit being trapped to beginUnit.


setEndUnit

public void setEndUnit(Unit endUnit)
Sets the last unit being trapped to endUnit.


setHandlerUnit

public void setHandlerUnit(Unit handlerUnit)
Sets the unit handling the exception to handlerUnit.


setException

public void setException(SootClass exception)
Sets the exception being caught to exception.


clone

public java.lang.Object clone()
Performs a shallow clone of this trap.