public abstract class AbstractUnit extends AbstractHost implements Unit
| Modifier and Type | Field and Description |
|---|---|
static java.util.List |
emptyList
Canonical AbstractUnit.emptyList list.
|
| 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 |
getBoxesPointingToThis()
Returns a list of Boxes pointing to this Unit.
|
java.util.List |
getDefBoxes()
Returns a list of Boxes containing Values defined in this Unit.
|
java.util.List |
getUnitBoxes()
Returns a list of Boxes containing Units defined in this Unit; typically
branch targets.
|
java.util.List |
getUseAndDefBoxes()
Returns a list of ValueBoxes, either used or defined in this Unit.
|
java.util.List |
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, getTag, getTags, hasTag, removeAllTags, removeTagequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbranches, fallsThrough, toStringaddAllTagsOf, addTag, getTag, getTags, hasTag, removeAllTags, removeTagpublic static final java.util.List emptyList
public abstract java.lang.Object clone()
public java.util.List getUseBoxes()
getUseBoxes in interface Unitpublic java.util.List getDefBoxes()
getDefBoxes in interface Unitpublic java.util.List getUnitBoxes()
getUnitBoxes in interface Unitpublic java.util.List 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 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),
soot.shimple.Shimple#redirectPointers(Unit, Unit)Copyright © 2012-2019 RoboVM AB. All Rights Reserved.