Module org.htmlunit.corejs
Package org.htmlunit.corejs.javascript
Class StandardSlot<T extends PropHolder<T>>
java.lang.Object
org.htmlunit.corejs.javascript.Slot<T>
org.htmlunit.corejs.javascript.StandardSlot<T>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AccessorSlot,LambdaAccessorSlot,LambdaSlot,LazyLoadSlot
A Slot is the base class for all properties stored in the ScriptableObject class. There are a
number of different types of slots. This base class represents an "ordinary" property such as a
primitive type or another object. Separate classes are used to represent properties that have
various types of getter and setter methods.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intfinal ObjectgetKey()final ObjectgetName()final booleankeyMatches(Object key, int indexOrHash) booleanprotected voidthrowNoSetterException(T start, Object newValue)
-
Constructor Details
-
StandardSlot
-
-
Method Details
-
getValue
- Overrides:
getValuein classSlot<T extends PropHolder<T>>
-
setValue
- Specified by:
setValuein classSlot<T extends PropHolder<T>>
-
throwNoSetterException
- Specified by:
throwNoSetterExceptionin classSlot<T extends PropHolder<T>>
-
keyMatches
- Specified by:
keyMatchesin classSlot<T extends PropHolder<T>>
-
getKey
- Specified by:
getKeyin classSlot<T extends PropHolder<T>>
-
getName
- Specified by:
getNamein classSlot<T extends PropHolder<T>>
-
getIndexOrHash
public final int getIndexOrHash()- Specified by:
getIndexOrHashin classSlot<T extends PropHolder<T>>
-