LocalDefs.Factory
Modifier and Type | Field and Description |
---|---|
protected java.util.BitSet[] |
localToDefsBits |
protected java.util.Map<Local,java.lang.Integer> |
localToNumber |
protected java.util.BitSet[] |
localToUsesBits |
protected java.util.List<Unit> |
unitList |
Constructor and Description |
---|
DexDefUseAnalysis(Body body) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<Unit> |
collectDefinitionsWithAliases(Local l)
Collect definitions of l in body including the definitions of aliases of
l.
|
java.util.List<Unit> |
getDefsOf(Local l)
Returns the definition sites for a Local merged over all points
in a method.
|
java.util.List<Unit> |
getDefsOfAt(Local l,
Unit s)
Returns the definition sites for a Local at a certain
point (Unit) in a method.
|
java.util.Set<Unit> |
getUsesOf(Local l) |
protected void |
initialize() |
protected java.util.BitSet[] localToDefsBits
protected java.util.BitSet[] localToUsesBits
protected java.util.Map<Local,java.lang.Integer> localToNumber
protected java.util.List<Unit> unitList
public DexDefUseAnalysis(Body body)
protected void initialize()
protected java.util.Set<Unit> collectDefinitionsWithAliases(Local l)
l
- the local whose definitions are to collectpublic java.util.List<Unit> getDefsOfAt(Local l, Unit s)
LocalDefs
null
.getDefsOfAt
in interface LocalDefs
l
- the Local in question.s
- a unit that specifies the method context (location)
to query for the definitions of the Local.