public class ShimpleLocalUses extends java.lang.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
,
SimpleLocalUses
LocalUses.Factory
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<Local,java.util.ArrayList> |
localToUses |
Constructor and Description |
---|
ShimpleLocalUses(ShimpleBody sb)
Build a LocalUses interface from a ShimpleBody.
|
Modifier and Type | Method and Description |
---|---|
java.util.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.
|
java.util.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.
|
protected java.util.Map<Local,java.util.ArrayList> localToUses
public ShimpleLocalUses(ShimpleBody sb)
public java.util.List getUsesOf(Local local)
This method is currently not required by the LocalUses interface.
public java.util.List getUsesOf(Unit unit)