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)
UnitBoxcanContainUnit in interface UnitBoxpublic boolean isBranchTarget()
UnitBoxReturns 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 UnitBoxpublic void setUnit(Unit unit)
UnitBoxpublic Unit getUnit()
UnitBoxpublic void toString(UnitPrinter up)