soot.toolkits.scalar
Class SimpleLiveLocals

java.lang.Object
  |
  +--soot.toolkits.scalar.SimpleLiveLocals
All Implemented Interfaces:
LiveLocals

public class SimpleLiveLocals
extends java.lang.Object
implements LiveLocals

Analysis that provides an implementation of the LiveLocals interface.


Constructor Summary
SimpleLiveLocals(CompleteUnitGraph graph)
          Computes the analysis given a CompleteUnitGraph computed from a method body.
 
Method Summary
 java.util.List getLiveLocalsAfter(Unit s)
          Returns the list of Locals that are live after the specified Unit.
 java.util.List getLiveLocalsBefore(Unit s)
          Returns the list of Locals that are live before the specified Unit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLiveLocals

public SimpleLiveLocals(CompleteUnitGraph graph)
Computes the analysis given a CompleteUnitGraph computed from a method body.

See Also:
CompleteUnitGraph
Method Detail

getLiveLocalsAfter

public java.util.List getLiveLocalsAfter(Unit s)
Description copied from interface: LiveLocals
Returns the list of Locals that are live after the specified Unit.

Specified by:
getLiveLocalsAfter in interface LiveLocals
Parameters:
s - the Unit that defines this query.
Returns:
a list of Locals that are live after the specified unit in the method.

getLiveLocalsBefore

public java.util.List getLiveLocalsBefore(Unit s)
Description copied from interface: LiveLocals
Returns the list of Locals that are live before the specified Unit.

Specified by:
getLiveLocalsBefore in interface LiveLocals
Parameters:
s - the Unit that defines this query.
Returns:
a list of Locals that are live before the specified unit in the method.