|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--soot.AbstractUnitBox
Reference implementation for UnitBox; just add a canContainUnit method.
Field Summary | |
protected Unit |
unit
|
Constructor Summary | |
AbstractUnitBox()
|
Method Summary | |
abstract boolean |
canContainUnit(Unit u)
Returns true if this box can contain the given Unit. |
Unit |
getUnit()
Returns the unit contained within this box. |
boolean |
isBranchTarget()
Returns true if the UnitBox is holding a Unit that is the target of a branch (ie a Unit at the beginning of a CFG block). |
void |
setUnit(Unit unit)
Sets this box to contain the given unit. |
void |
toString(UnitPrinter up)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected Unit unit
Constructor Detail |
public AbstractUnitBox()
Method Detail |
public abstract boolean canContainUnit(Unit u)
public boolean isBranchTarget()
Returns false if the UnitBox is holding a Unit that indicates the end of a CFG block and may require specialised processing for SSA.
public void setUnit(Unit unit)
public Unit getUnit()
public void toString(UnitPrinter up)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |