public class SmartLocalDefs extends java.lang.Object implements LocalDefs
SimpleLocalDefs.
Be warned: This implementation requires a lot of memory and CPU time,
normally SimpleLocalDefs is much faster.LocalDefs.Factory| Constructor and Description |
|---|
SmartLocalDefs(UnitGraph g,
LiveLocals live) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
UnitGraph |
getGraph()
Returns the associated unit graph.
|
void |
printAnswer() |
public SmartLocalDefs(UnitGraph g, LiveLocals live)
public void printAnswer()
public java.util.List<Unit> getDefsOfAt(Local l, Unit s)
LocalDefsnull.getDefsOfAt in interface LocalDefsl - the Local in question.s - a unit that specifies the method context (location)
to query for the definitions of the Local.public java.util.List<Unit> getDefsOf(Local l)
LocalDefsnull.public UnitGraph getGraph()