| Constructor and Description |
|---|
EmbeddedSlotMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Slot newSlot)
Insert a new slot to the map.
|
boolean |
isEmpty()
Return whether the map is empty.
|
Iterator<Slot> |
iterator() |
Slot |
modify(Object key,
int index,
int attributes)
Locate the slot with given name or index, and create a new one if necessary.
|
Slot |
query(Object key,
int index)
Locate the slot with the given name or index.
|
void |
remove(Object key,
int index)
Remove the slot at either "key" or "index".
|
void |
replace(Slot oldSlot,
Slot newSlot)
Replace "slot" with a new slot.
|
int |
size()
Return the size of the map.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic int size()
SlotMappublic boolean isEmpty()
SlotMappublic Slot modify(Object key, int index, int attributes)
modify in interface SlotMapkey - either a String or a Symbol object that identifies the propertyindex - index or 0 if slot holds property name.attributes - the attributes to be set on the slot if a new slot is created. Existing
slots will not be modified.public void replace(Slot oldSlot, Slot newSlot)
SlotMappublic void add(Slot newSlot)
SlotMapCopyright © 2023 HtmlUnit. All rights reserved.