public class SValueUnitPair extends ValueUnitPair implements SUnitBox
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
unitChanged |
unitcol, line, mTagList| Constructor and Description |
|---|
SValueUnitPair(Value value,
Unit unit) |
| Modifier and Type | Method and Description |
|---|---|
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).
|
boolean |
isUnitChanged()
Indicates whether the contents of the UnitBox may have been
changed.
|
void |
setUnit(Unit u)
Sets this box to contain the given unit.
|
void |
setUnitChanged(boolean unitChanged)
Updates the value of the flag used to indicate whether the
contents of the UnitBox may have changed.
|
canContainUnit, canContainValue, clone, equals, equivHashCode, equivTo, getUnit, hashCode, toString, toStringgetValue, setValueaddAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTagfinalize, getClass, notify, notifyAll, wait, wait, waitcanContainUnit, getUnit, toStringaddAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTagpublic 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 UnitBoxisBranchTarget in class ValueUnitPairUnitBox.isBranchTarget()public void setUnit(Unit u)
UnitBoxsetUnit in interface UnitBoxsetUnit in class ValueUnitPairUnitBox.setUnit(Unit)public boolean isUnitChanged()
SUnitBoxNeeded for Shimple internal Unit chain patching.
isUnitChanged in interface SUnitBoxSUnitBox.isUnitChanged()public void setUnitChanged(boolean unitChanged)
SUnitBoxNeeded for Shimple internal Unit chain patching.
setUnitChanged in interface SUnitBoxSUnitBox.setUnitChanged(boolean)