public abstract class AbstractUnitBox extends java.lang.Object implements UnitBox
Constructor and Description |
---|
AbstractUnitBox() |
Modifier and Type | Method and Description |
---|---|
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) |
protected Unit unit
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
public Unit getUnit()
UnitBox
public void toString(UnitPrinter up)