|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soot.AbstractUnitBox
public abstract class 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)
UnitBox
canContainUnit
in interface UnitBox
public boolean isBranchTarget()
UnitBox
Returns false if the UnitBox is holding a Unit that indicates the end of a CFG block and may require specialised processing for SSA.
isBranchTarget
in interface UnitBox
public void setUnit(Unit unit)
UnitBox
setUnit
in interface UnitBox
public Unit getUnit()
UnitBox
getUnit
in interface UnitBox
public void toString(UnitPrinter up)
toString
in interface UnitBox
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |