Class HtmlUnitScriptableProxy<T extends HtmlUnitScriptable>

  • Type Parameters:
    T - the type of scriptable object being wrapped
    All Implemented Interfaces:
    java.io.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 java.io.Serializable
    Proxy for a HtmlUnitScriptable.
    See Also:
    Serialized Form
    • Field Summary

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

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

        NOT_FOUND
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​(int index, org.htmlunit.corejs.javascript.Scriptable start)
      java.lang.Object get​(java.lang.String name, org.htmlunit.corejs.javascript.Scriptable start)
      java.lang.Object getDefaultValue​(java.lang.Class<?> hint)
      Delegates call to delegee.
      boolean has​(int index, org.htmlunit.corejs.javascript.Scriptable start)
      boolean has​(java.lang.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, java.lang.Object value)
      void put​(java.lang.String name, org.htmlunit.corejs.javascript.Scriptable start, java.lang.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 Detail

      • HtmlUnitScriptableProxy

        public HtmlUnitScriptableProxy()
    • Method Detail

      • get

        public java.lang.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 java.lang.Object get​(java.lang.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​(java.lang.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,
                        java.lang.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​(java.lang.String name,
                        org.htmlunit.corejs.javascript.Scriptable start,
                        java.lang.Object value)
        Specified by:
        put in interface org.htmlunit.corejs.javascript.Scriptable
        Overrides:
        put in class org.htmlunit.corejs.javascript.Delegator
      • getDefaultValue

        public java.lang.Object getDefaultValue​(java.lang.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<?>)