|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--soot.util.UnitMap
Maps each unit to the result of mapTo
.
Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
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 UnitGraphpublic 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.the
- Unit to which o
should be mapped.null
.public void clear()
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public java.util.Set entrySet()
public boolean equals(java.lang.Object o)
public java.lang.Object get(java.lang.Object key)
public int hashCode()
public boolean isEmpty()
public java.util.Set keySet()
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
public void putAll(java.util.Map t)
public java.lang.Object remove(java.lang.Object key)
public int size()
public java.util.Collection values()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |