public abstract class AbstractUnit extends AbstractHost implements Unit
col, line, mTagList| Constructor and Description |
|---|
AbstractUnit() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBoxPointingToThis(UnitBox b)
Adds a box to the list returned by getBoxesPointingToThis.
|
void |
apply(Switch sw)
Used to implement the Switchable construct.
|
void |
clearUnitBoxes()
Clears any pointers to and from this Unit's UnitBoxes.
|
abstract java.lang.Object |
clone()
Returns a deep clone of this object.
|
java.util.List<UnitBox> |
getBoxesPointingToThis()
Returns a list of Boxes pointing to this Unit.
|
java.util.List<ValueBox> |
getDefBoxes()
Returns a list of Boxes containing Values defined in this Unit.
|
java.util.List<UnitBox> |
getUnitBoxes()
Returns a list of Boxes containing Units defined in this Unit; typically
branch targets.
|
java.util.List<ValueBox> |
getUseAndDefBoxes()
Returns a list of ValueBoxes, either used or defined in this Unit.
|
java.util.List<ValueBox> |
getUseBoxes()
Returns a list of Boxes containing Values used in this Unit.
|
void |
redirectJumpsToThisTo(Unit newLocation)
Redirects jumps to this Unit to newLocation.
|
void |
removeBoxPointingToThis(UnitBox b)
Removes a box from the list returned by getBoxesPointingToThis.
|
addAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTagequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbranches, fallsThrough, toStringaddAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTagpublic abstract java.lang.Object clone()
public java.util.List<ValueBox> getUseBoxes()
getUseBoxes in interface Unitpublic java.util.List<ValueBox> getDefBoxes()
getDefBoxes in interface Unitpublic java.util.List<UnitBox> getUnitBoxes()
getUnitBoxes in interface Unitpublic java.util.List<UnitBox> getBoxesPointingToThis()
getBoxesPointingToThis in interface Unitpublic void addBoxPointingToThis(UnitBox b)
UnitaddBoxPointingToThis in interface Unitpublic void removeBoxPointingToThis(UnitBox b)
UnitremoveBoxPointingToThis in interface Unitpublic void clearUnitBoxes()
UnitclearUnitBoxes in interface Unitpublic java.util.List<ValueBox> getUseAndDefBoxes()
getUseAndDefBoxes in interface Unitpublic void apply(Switch sw)
apply in interface Switchablepublic void redirectJumpsToThisTo(Unit newLocation)
UnitredirectJumpsToThisTo in interface UnitPatchingChain.getNonPatchingChain(),
soot.shimple.Shimple#redirectToPreds(Chain, Unit),
Shimple.redirectPointers(Unit, Unit)