public interface SlotMap
extends java.lang.Iterable<net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.Slot>
| Modifier and Type | Method and Description |
|---|---|
void |
addSlot(net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.Slot newSlot)
Insert a new slot to the map.
|
net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.Slot |
get(java.lang.Object key,
int index,
net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.SlotAccess accessType)
Return the Slot that matches EITHER "key" or "index".
|
boolean |
isEmpty()
Return whether the map is empty.
|
net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.Slot |
query(java.lang.Object key,
int index)
This is an optimization that is the same as get with an accessType of SLOT_QUERY.
|
void |
remove(java.lang.Object key,
int index)
Remove the slot at either "key" or "index".
|
int |
size()
Return the size of the map.
|
int size()
boolean isEmpty()
net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.Slot get(java.lang.Object key,
int index,
net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.SlotAccess accessType)
net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.Slot query(java.lang.Object key,
int index)
void addSlot(net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.Slot newSlot)
void remove(java.lang.Object key,
int index)