Package soot
Class AbstractUnitBox
- java.lang.Object
-
- soot.AbstractUnitBox
-
- All Implemented Interfaces:
Serializable,UnitBox
- Direct Known Subclasses:
StmtBox
public abstract class AbstractUnitBox extends Object implements UnitBox
Reference implementation for UnitBox; just add a canContainUnit method.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractUnitBox()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnitgetUnit()Returns the unit contained within this box.booleanisBranchTarget()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).voidsetUnit(Unit unit)Sets this box to contain the given unit.voidtoString(UnitPrinter up)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface soot.UnitBox
canContainUnit
-
-
-
-
Field Detail
-
unit
protected Unit unit
-
-
Method Detail
-
isBranchTarget
public boolean isBranchTarget()
Description copied from interface:UnitBoxReturns 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). This is the default case.Returns false if the UnitBox is holding a Unit that indicates the end of a CFG block and may require specialised processing for SSA.
- Specified by:
isBranchTargetin interfaceUnitBox
-
setUnit
public void setUnit(Unit unit)
Description copied from interface:UnitBoxSets this box to contain the given unit. Subject to canContainValue() checks.
-
getUnit
public Unit getUnit()
Description copied from interface:UnitBoxReturns the unit contained within this box.
-
toString
public void toString(UnitPrinter up)
-
-