Class Slot<T extends PropHolder<T>>

java.lang.Object
org.htmlunit.corejs.javascript.Slot<T>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CompactSlot, StandardSlot

public abstract class Slot<T extends PropHolder<T>> extends Object implements Serializable
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 Details

    • Slot

      protected Slot(Slot<T> oldSlot)
  • Method Details

    • setValue

      public final boolean setValue(Object value, T owner, T start)
    • setValue

      public abstract boolean setValue(Object value, T owner, T start, boolean isThrow)
    • getValue

      public Object getValue(T start)
    • throwNoSetterException

      protected abstract void throwNoSetterException(T start, Object newValue)
    • keyMatches

      public abstract boolean keyMatches(Object key, int indexOrHash)
    • getKey

      public abstract Object getKey()
    • getName

      public abstract Object getName()
    • getIndexOrHash

      public abstract int getIndexOrHash()