soot.toolkits.scalar
Class SimpleLocalUses
java.lang.Object
|
+--soot.toolkits.scalar.SimpleLocalUses
- public class SimpleLocalUses
- extends java.lang.Object
- implements LocalUses
Analysis that implements the LocalUses interface.
Uses for a Local defined at a given Unit are returned as
a list of UnitValueBoxPairs each containing a Unit that use the
local and the Local itself wrapped in a ValueBox.
Method Summary |
java.util.List |
getUsesOf(Unit s)
Uses for a Local defined at a given Unit are returned as
a list of UnitValueBoxPairs each containing a Unit that use the
local and the Local itself wrapped in a ValueBox. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SimpleLocalUses
public SimpleLocalUses(CompleteUnitGraph graph,
LocalDefs localDefs)
- Construct the analysis from a CompleteUnitGraph representation
of a method body and a LocalDefs interface. This supposes that
a LocalDefs analysis must have been computed prior.
Note: If you do not already have a CompleteUnitGraph, it
may be cheaper to use the constructor which only requires a
Body.
SimpleLocalUses
public SimpleLocalUses(Body body,
LocalDefs localDefs)
- Construct the analysis from a method body and a LocalDefs
interface. This supposes that a LocalDefs analysis must have
been computed prior.
getUsesOf
public java.util.List getUsesOf(Unit s)
- Uses for a Local defined at a given Unit are returned as
a list of UnitValueBoxPairs each containing a Unit that use the
local and the Local itself wrapped in a ValueBox.
- Specified by:
- getUsesOf in interface LocalUses
- Parameters:
s
- a unit that we want to query for the uses of the Local it (may) define.- Returns:
- a UnitValueBoxPair of the Units that use the Local.