|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--soot.AbstractTrap
Partial implementation of trap (exception catcher), used within Body classes.
| Field Summary | |
protected UnitBox |
beginUnitBox
The first unit being trapped. |
protected UnitBox |
endUnitBox
The unit just before the last unit being trapped. |
protected SootClass |
exception
The exception being caught. |
protected UnitBox |
handlerUnitBox
The unit to which execution flows after the caught exception is triggered. |
protected java.util.List |
unitBoxes
The list of unitBoxes referred to in this Trap (begin, end and handler. |
| Constructor Summary | |
protected |
AbstractTrap(SootClass exception,
UnitBox beginUnitBox,
UnitBox endUnitBox,
UnitBox handlerUnitBox)
Creates an AbstractTrap with the given exception, handler, begin and end units. |
| 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. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected SootClass exception
protected UnitBox beginUnitBox
protected UnitBox endUnitBox
protected UnitBox handlerUnitBox
protected java.util.List unitBoxes
| Constructor Detail |
protected AbstractTrap(SootClass exception,
UnitBox beginUnitBox,
UnitBox endUnitBox,
UnitBox handlerUnitBox)
| Method Detail |
public Unit getBeginUnit()
TrapgetBeginUnit in interface Trappublic Unit getEndUnit()
TrapgetEndUnit in interface Trappublic Unit getHandlerUnit()
TrapgetHandlerUnit in interface Trappublic UnitBox getHandlerUnitBox()
TrapgetHandlerUnitBox in interface Trappublic UnitBox getBeginUnitBox()
TrapgetBeginUnitBox in interface Trappublic UnitBox getEndUnitBox()
TrapgetEndUnitBox in interface Trappublic java.util.List getUnitBoxes()
TrapgetUnitBoxes in interface Trappublic SootClass getException()
TrapgetException in interface Trappublic void setBeginUnit(Unit beginUnit)
TrapbeginUnit.setBeginUnit in interface Trappublic void setEndUnit(Unit endUnit)
TrapendUnit.setEndUnit in interface Trappublic void setHandlerUnit(Unit handlerUnit)
TraphandlerUnit.setHandlerUnit in interface Trappublic void setException(SootClass exception)
Trapexception.setException in interface Trappublic java.lang.Object clone()
Trapclone in interface Trapclone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||