Class HtmlUnitScriptableProxy<T extends HtmlUnitScriptable>

java.lang.Object
org.htmlunit.corejs.javascript.Delegator
org.htmlunit.javascript.HtmlUnitScriptableProxy<T>
Type Parameters:
T - the type of scriptable object being wrapped
All Implemented Interfaces:
Serializable, org.htmlunit.corejs.javascript.Callable, org.htmlunit.corejs.javascript.Constructable, org.htmlunit.corejs.javascript.Function, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable
Direct Known Subclasses:
DocumentProxy, WindowProxy

public abstract class HtmlUnitScriptableProxy<T extends HtmlUnitScriptable> extends org.htmlunit.corejs.javascript.Delegator implements Serializable
Proxy for a HtmlUnitScriptable.
See Also:
  • Field Summary

    Fields inherited from class org.htmlunit.corejs.javascript.Delegator

    obj

    Fields inherited from interface org.htmlunit.corejs.javascript.Scriptable

    NOT_FOUND
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    get(int index, org.htmlunit.corejs.javascript.Scriptable start)
    get(String name, org.htmlunit.corejs.javascript.Scriptable start)
    Delegates call to delegee.
    boolean
    has(int index, org.htmlunit.corejs.javascript.Scriptable start)
    boolean
    has(String name, org.htmlunit.corejs.javascript.Scriptable start)
    boolean
    hasInstance(org.htmlunit.corejs.javascript.Scriptable instance)
    void
    put(int index, org.htmlunit.corejs.javascript.Scriptable start, Object value)
    void
    put(String name, org.htmlunit.corejs.javascript.Scriptable start, Object value)

    Methods inherited from class org.htmlunit.corejs.javascript.Delegator

    call, construct, delete, delete, delete, get, getClassName, getDelegee, getIds, getParentScope, getPrototype, has, newInstance, put, setDelegee, setParentScope, setPrototype

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HtmlUnitScriptableProxy

      public HtmlUnitScriptableProxy()
  • Method Details

    • get

      public Object get(int index, org.htmlunit.corejs.javascript.Scriptable start)
      Specified by:
      get in interface org.htmlunit.corejs.javascript.Scriptable
      Overrides:
      get in class org.htmlunit.corejs.javascript.Delegator
    • get

      public Object get(String name, org.htmlunit.corejs.javascript.Scriptable start)
      Specified by:
      get in interface org.htmlunit.corejs.javascript.Scriptable
      Overrides:
      get in class org.htmlunit.corejs.javascript.Delegator
    • has

      public boolean has(int index, org.htmlunit.corejs.javascript.Scriptable start)
      Specified by:
      has in interface org.htmlunit.corejs.javascript.Scriptable
      Overrides:
      has in class org.htmlunit.corejs.javascript.Delegator
    • has

      public boolean has(String name, org.htmlunit.corejs.javascript.Scriptable start)
      Specified by:
      has in interface org.htmlunit.corejs.javascript.Scriptable
      Overrides:
      has in class org.htmlunit.corejs.javascript.Delegator
    • hasInstance

      public boolean hasInstance(org.htmlunit.corejs.javascript.Scriptable instance)
      Specified by:
      hasInstance in interface org.htmlunit.corejs.javascript.Scriptable
      Overrides:
      hasInstance in class org.htmlunit.corejs.javascript.Delegator
    • put

      public void put(int index, org.htmlunit.corejs.javascript.Scriptable start, Object value)
      Specified by:
      put in interface org.htmlunit.corejs.javascript.Scriptable
      Overrides:
      put in class org.htmlunit.corejs.javascript.Delegator
    • put

      public void put(String name, org.htmlunit.corejs.javascript.Scriptable start, Object value)
      Specified by:
      put in interface org.htmlunit.corejs.javascript.Scriptable
      Overrides:
      put in class org.htmlunit.corejs.javascript.Delegator
    • getDefaultValue

      public Object getDefaultValue(Class<?> hint)
      Delegates call to delegee.
      Specified by:
      getDefaultValue in interface org.htmlunit.corejs.javascript.Scriptable
      Overrides:
      getDefaultValue in class org.htmlunit.corejs.javascript.Delegator
      Parameters:
      hint - the type hint
      Returns:
      the default value
      See Also:
      • Scriptable.getDefaultValue(java.lang.Class<?>)