|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--soot.util.UnitMap
Maps each unit to the result of mapTo.
| Constructor Summary | |
UnitMap(Body b)
maps each unit of this body to the result of mapTo.before the mapping the method init is called.the internal hashtable is initialized without any parameter. |
|
UnitMap(Body b,
int initialCapacity)
maps each unit of this body to the result of mapTo.before the mapping the method init is called.the internal hashtable is initialized to initialCapacity. |
|
UnitMap(Body b,
int initialCapacity,
float loadFactor)
maps each unit of this body to the result of mapTo.before the mapping the method init is called.the internal hashtable is initialized to initialCapacity and
loadFactor. |
|
UnitMap(UnitGraph g)
maps each unit of the graph to the result of mapTo.before the mapping the method init is called.the internal hashtable is initialized without any parameter. |
|
UnitMap(UnitGraph g,
int initialCapacity)
maps each unit of the graph to the result of mapTo.before the mapping the method init is called.the internal hashtable is initialized to initialCapacity. |
|
UnitMap(UnitGraph g,
int initialCapacity,
float loadFactor)
maps each unit of the graph to the result of mapTo.before the mapping the method init is called.the internal hashtable is initialized to initialCapacity and
loadFactor. |
|
| Method Summary | |
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.util.Set |
entrySet()
|
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
get(java.lang.Object key)
|
int |
hashCode()
|
protected void |
init()
allows one-time initialization before any mapping. |
boolean |
isEmpty()
|
java.util.Set |
keySet()
|
protected abstract java.lang.Object |
mapTo(Unit unit)
maps a unit to an object. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
|
void |
putAll(java.util.Map t)
|
java.lang.Object |
remove(java.lang.Object key)
|
int |
size()
|
java.util.Collection |
values()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UnitMap(Body b)
mapTo.init is called.
b - a Bodypublic UnitMap(UnitGraph g)
mapTo.init is called.
g - a UnitGraph
public UnitMap(Body b,
int initialCapacity)
mapTo.init is called.initialCapacity.
b - a BodyinitialCapacity - the initialCapacity of the internal hashtable.
public UnitMap(UnitGraph g,
int initialCapacity)
mapTo.init is called.initialCapacity.
g - a UnitGraphinitialCapacity - the initialCapacity of the internal hashtable.
public UnitMap(Body b,
int initialCapacity,
float loadFactor)
mapTo.init is called.initialCapacity and
loadFactor.
b - a BodyinitialCapacity - the initialCapacity of the internal hashtable.loadFactor - the loadFactor of the internal hashtable.
public UnitMap(UnitGraph g,
int initialCapacity,
float loadFactor)
mapTo.init is called.initialCapacity and
loadFactor.
g - a UnitGraphinitialCapacity - the initialCapacity of the internal hashtable.loadFactor - the loadFactor of the internal hashtable.| Method Detail |
protected void init()
protected abstract java.lang.Object mapTo(Unit unit)
null no object will be mapped.
null.public void clear()
clear in interface java.util.Mappublic boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Mappublic boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Mappublic java.util.Set entrySet()
entrySet in interface java.util.Mappublic boolean equals(java.lang.Object o)
equals in interface java.util.Mapequals in class java.lang.Objectpublic java.lang.Object get(java.lang.Object key)
get in interface java.util.Mappublic int hashCode()
hashCode in interface java.util.MaphashCode in class java.lang.Objectpublic boolean isEmpty()
isEmpty in interface java.util.Mappublic java.util.Set keySet()
keySet in interface java.util.Map
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mappublic void putAll(java.util.Map t)
putAll in interface java.util.Mappublic java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mappublic int size()
size in interface java.util.Mappublic java.util.Collection values()
values in interface java.util.Map
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||