public class VariableVirtualStackValueMap<K extends Value,T> extends ValueMap<K,T>
Modifier and Type | Field and Description |
---|---|
private Object[] |
slots |
private Object[] |
variables |
Constructor and Description |
---|
VariableVirtualStackValueMap(int initialVariableCapacity,
int initialStackSlotCapacity) |
Modifier and Type | Method and Description |
---|---|
T |
get(K value)
Gets the object associated with
value or null if there is no such mapping. |
private static <T> T |
get(Object[] array,
int index) |
void |
put(K value,
T object)
Associates
object with value . |
private static <T> Object[] |
put(Object[] array,
int index,
T object) |
void |
remove(K value)
Removes the object associated with
value from the map. |
private static void |
remove(Object[] array,
int index) |
public VariableVirtualStackValueMap(int initialVariableCapacity, int initialStackSlotCapacity)
public T get(K value)
ValueMap
value
or null
if there is no such mapping.public void remove(K value)
ValueMap
value
from the map.public void put(K value, T object)
ValueMap
object
with value
.