| Package | Description |
|---|---|
| org.htmlunit.corejs.javascript |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
SlotMap.SlotComputer<S extends Slot> |
| Modifier and Type | Class and Description |
|---|---|
class |
AccessorSlot
This is a specialization of Slot to store various types of values that are retrieved dynamically
using Java and JavaScript functions.
|
class |
BuiltInSlot<T extends ScriptableObject>
This is a specialization of property access using some lambda functions designed for properties
on built in objects that may be created extremely frequently.
|
class |
LambdaAccessorSlot
A specialized property accessor using lambda functions, similar to
LambdaSlot, but allows
defining properties with getter and setter lambdas that require access to the owner object
('this'). |
class |
LambdaSlot
This is a specialization of property access using some lambda functions.
|
class |
LazyLoadSlot
This is a specialization of Slot to store values that are retrieved via calls to script
functions.
|
| Modifier and Type | Method and Description |
|---|---|
<S extends Slot> |
SlotMap.compute(SlotMapOwner owner,
Object key,
int index,
SlotMap.SlotComputer<S> compute)
Replace the value of key with the slot computed by the "compute" method.
|
<S extends Slot> |
HashSlotMap.compute(SlotMapOwner owner,
Object key,
int index,
SlotMap.SlotComputer<S> c) |
<S extends Slot> |
EmbeddedSlotMap.compute(SlotMapOwner owner,
Object key,
int index,
SlotMap.SlotComputer<S> c) |
| Modifier and Type | Method and Description |
|---|---|
Slot |
SlotMap.modify(SlotMapOwner owner,
Object key,
int index,
int attributes)
Return the Slot that matches EITHER "key" or "index".
|
Slot |
HashSlotMap.modify(SlotMapOwner owner,
Object key,
int index,
int attributes) |
Slot |
EmbeddedSlotMap.modify(SlotMapOwner owner,
Object key,
int index,
int attributes)
Locate the slot with given name or index, and create a new one if necessary.
|
Slot |
SlotMap.query(Object key,
int index)
Retrieve the slot at EITHER key or index, or return null if the slot cannot be found.
|
Slot |
HashSlotMap.query(Object key,
int index) |
Slot |
EmbeddedSlotMap.query(Object key,
int index)
Locate the slot with the given name or index.
|
protected Slot |
ScriptableObject.querySlot(Context cx,
Object id) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Slot> |
HashSlotMap.iterator() |
Iterator<Slot> |
EmbeddedSlotMap.iterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
SlotMap.add(SlotMapOwner owner,
Slot newSlot)
Insert a new slot to the map.
|
void |
HashSlotMap.add(SlotMapOwner owner,
Slot newSlot) |
void |
EmbeddedSlotMap.add(SlotMapOwner owner,
Slot newSlot) |
protected void |
ScriptableObject.checkPropertyChangeForSlot(Object id,
Slot current,
ScriptableObject desc) |
S |
SlotMap.SlotComputer.compute(Object key,
int index,
Slot existing) |
protected void |
EmbeddedSlotMap.promoteMap(SlotMapOwner owner,
Slot newSlot) |
| Constructor and Description |
|---|
HashSlotMap(SlotMap oldMap,
Slot newSlot) |
Slot(Slot oldSlot) |
Copyright © 2025 HtmlUnit. All rights reserved.