|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soot.util.UnitMap
public abstract class UnitMap
Maps each unit to the result of mapTo
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
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(Object key)
|
boolean |
containsValue(Object value)
|
Set |
entrySet()
|
boolean |
equals(Object o)
|
Object |
get(Object key)
|
int |
hashCode()
|
protected void |
init()
allows one-time initialization before any mapping. |
boolean |
isEmpty()
|
Set<Object> |
keySet()
|
protected abstract Object |
mapTo(Unit unit)
maps a unit to an object. |
Object |
put(Object key,
Object value)
|
void |
putAll(Map t)
|
Object |
remove(Object key)
|
int |
size()
|
Collection<Object> |
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 Object mapTo(Unit unit)
null
no object will be mapped.
the
- Unit to which o
should be mapped.
null
.public void clear()
clear
in interface Map
public boolean containsKey(Object key)
containsKey
in interface Map
public boolean containsValue(Object value)
containsValue
in interface Map
public Set entrySet()
entrySet
in interface Map
public boolean equals(Object o)
equals
in interface Map
equals
in class Object
public Object get(Object key)
get
in interface Map
public int hashCode()
hashCode
in interface Map
hashCode
in class Object
public boolean isEmpty()
isEmpty
in interface Map
public Set<Object> keySet()
keySet
in interface Map
public Object put(Object key, Object value)
put
in interface Map
public void putAll(Map t)
putAll
in interface Map
public Object remove(Object key)
remove
in interface Map
public int size()
size
in interface Map
public Collection<Object> values()
values
in interface Map
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |