public class ShimpleLocalUses extends Object implements LocalUses
In addition to the interface required by LocalUses, ShimpleLocalUses also provides a method for obtaining the list of uses given only the Local. Furthermore, unlike SimpleLocalUses, a LocalDefs object is not required when constructing ShimpleLocalUses.
ShimpleLocalDefs,
SimpleLocalDefs,
SimpleLocalUsesLocalUses.Factory| Modifier and Type | Field and Description |
|---|---|
protected Map<Local,ArrayList> |
localToUses |
| Constructor and Description |
|---|
ShimpleLocalUses(ShimpleBody sb)
Build a LocalUses interface from a ShimpleBody.
|
| Modifier and Type | Method and Description |
|---|---|
List |
getUsesOf(Local local)
Returns all the uses of the given Local as a list of UnitValueBoxPairs, each containing a Unit that uses the local and
the corresponding ValueBox containing the Local.
|
List |
getUsesOf(Unit unit)
If a Local is defined in the Unit, returns all the uses of that Local as a list of UnitValueBoxPairs, each containing a
Unit that uses the local and the corresponding ValueBox containing the Local.
|
public ShimpleLocalUses(ShimpleBody sb)
public List getUsesOf(Local local)
This method is currently not required by the LocalUses interface.
Copyright © 2020 Soot OSS. All rights reserved.