public class SmartLocalDefs extends 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 |
|---|---|
List<Unit> |
getDefsOf(Local l)
Returns the definition sites for a Local merged over all points in a method.
|
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 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 List<Unit> getDefsOf(Local l)
LocalDefsnull.public UnitGraph getGraph()
Copyright © 2020 Soot OSS. All rights reserved.