soot.toolkits.scalar
Class SimpleLocalDefs

java.lang.Object
  |
  +--soot.toolkits.scalar.SimpleLocalDefs
All Implemented Interfaces:
LocalDefs

public class SimpleLocalDefs
extends java.lang.Object
implements LocalDefs

Analysis that provides an implementation of the LocalDefs interface.


Constructor Summary
SimpleLocalDefs(CompleteUnitGraph g)
          Computes the analysis given a CompleteUnitGraph computed from a method body.
 
Method Summary
 java.util.List getDefsOfAt(Local l, Unit s)
          Returns the definition sites for a Local at a certain point (Unit) in a method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLocalDefs

public SimpleLocalDefs(CompleteUnitGraph g)
Computes the analysis given a CompleteUnitGraph computed from a method body.
Parameters:
g - a graph on which to compute the analysis.
See Also:
CompleteUnitGraph
Method Detail

getDefsOfAt

public java.util.List getDefsOfAt(Local l,
                                  Unit s)
Description copied from interface: LocalDefs
Returns the definition sites for a Local at a certain point (Unit) in a method.
Specified by:
getDefsOfAt in interface LocalDefs
Following copied from interface: soot.toolkits.scalar.LocalDefs
Parameters:
l - the Local in question.
s - a unit that specifies the method context (location) to query for the definitions of the Local.
Returns:
a list of Units where the local is defined in the current method context.