|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsoot.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 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)
UnitBox
setUnit in interface UnitBoxpublic Unit getUnit()
UnitBox
getUnit in interface UnitBoxpublic void toString(UnitPrinter up)
toString in interface UnitBox
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||