public class SValueUnitPair extends ValueUnitPair implements SUnitBox
Modifier and Type | Field and Description |
---|---|
protected boolean |
unitChanged |
unit
col, 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, toString
getValue, setValue
addAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTag
finalize, getClass, notify, notifyAll, wait, wait, wait
canContainUnit, getUnit, toString
addAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTag
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
isBranchTarget
in class ValueUnitPair
UnitBox.isBranchTarget()
public void setUnit(Unit u)
UnitBox
setUnit
in interface UnitBox
setUnit
in class ValueUnitPair
UnitBox.setUnit(Unit)
public boolean isUnitChanged()
SUnitBox
Needed for Shimple internal Unit chain patching.
isUnitChanged
in interface SUnitBox
SUnitBox.isUnitChanged()
public void setUnitChanged(boolean unitChanged)
SUnitBox
Needed for Shimple internal Unit chain patching.
setUnitChanged
in interface SUnitBox
SUnitBox.setUnitChanged(boolean)