public class SimpleLiveLocals extends java.lang.Object implements LiveLocals
LiveLocals.Factory
Constructor and Description |
---|
SimpleLiveLocals(UnitGraph graph)
Computes the analysis given a UnitGraph computed from a method body.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Local> |
getLiveLocalsAfter(Unit s)
Returns the list of Locals that are live after the specified
Unit.
|
java.util.List<Local> |
getLiveLocalsBefore(Unit s)
Returns the list of Locals that are live before the specified
Unit.
|
public SimpleLiveLocals(UnitGraph graph)
graph
- a graph on which to compute the analysis.ExceptionalUnitGraph
public java.util.List<Local> getLiveLocalsAfter(Unit s)
LiveLocals
getLiveLocalsAfter
in interface LiveLocals
s
- the Unit that defines this query.public java.util.List<Local> getLiveLocalsBefore(Unit s)
LiveLocals
getLiveLocalsBefore
in interface LiveLocals
s
- the Unit that defines this query.