Class FunctionWrapper

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.htmlunit.corejs.javascript.Function wrapped_  
      • Fields inherited from interface org.htmlunit.corejs.javascript.Scriptable

        NOT_FOUND
    • Constructor Summary

      Constructors 
      Constructor Description
      FunctionWrapper​(org.htmlunit.corejs.javascript.Function wrapped)
      Constructs a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object call​(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args)
      org.htmlunit.corejs.javascript.Scriptable construct​(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, java.lang.Object[] args)
      void delete​(int index)
      void delete​(java.lang.String name)
      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.String getClassName()
      java.lang.Object getDefaultValue​(java.lang.Class<?> hint)
      java.lang.Object[] getIds()
      org.htmlunit.corejs.javascript.Scriptable getParentScope()
      org.htmlunit.corejs.javascript.Scriptable getPrototype()
      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)
      void setParentScope​(org.htmlunit.corejs.javascript.Scriptable parent)
      void setPrototype​(org.htmlunit.corejs.javascript.Scriptable prototype)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • wrapped_

        private final org.htmlunit.corejs.javascript.Function wrapped_
    • Constructor Detail

      • FunctionWrapper

        public FunctionWrapper​(org.htmlunit.corejs.javascript.Function wrapped)
        Constructs a new instance.
        Parameters:
        wrapped - the wrapped function
    • Method Detail

      • call

        public java.lang.Object call​(org.htmlunit.corejs.javascript.Context cx,
                                     org.htmlunit.corejs.javascript.Scriptable scope,
                                     org.htmlunit.corejs.javascript.Scriptable thisObj,
                                     java.lang.Object[] args)
        Specified by:
        call in interface org.htmlunit.corejs.javascript.Callable
        Specified by:
        call in interface org.htmlunit.corejs.javascript.Function
      • getClassName

        public java.lang.String getClassName()
        Specified by:
        getClassName in interface org.htmlunit.corejs.javascript.Scriptable
      • construct

        public org.htmlunit.corejs.javascript.Scriptable construct​(org.htmlunit.corejs.javascript.Context cx,
                                                                   org.htmlunit.corejs.javascript.Scriptable scope,
                                                                   java.lang.Object[] args)
        Specified by:
        construct in interface org.htmlunit.corejs.javascript.Constructable
        Specified by:
        construct in interface org.htmlunit.corejs.javascript.Function
      • 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
      • get

        public java.lang.Object get​(int index,
                                    org.htmlunit.corejs.javascript.Scriptable start)
        Specified by:
        get in interface org.htmlunit.corejs.javascript.Scriptable
      • has

        public boolean has​(java.lang.String name,
                           org.htmlunit.corejs.javascript.Scriptable start)
        Specified by:
        has in interface org.htmlunit.corejs.javascript.Scriptable
      • has

        public boolean has​(int index,
                           org.htmlunit.corejs.javascript.Scriptable start)
        Specified by:
        has in interface org.htmlunit.corejs.javascript.Scriptable
      • 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
      • 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
      • delete

        public void delete​(java.lang.String name)
        Specified by:
        delete in interface org.htmlunit.corejs.javascript.Scriptable
      • delete

        public void delete​(int index)
        Specified by:
        delete in interface org.htmlunit.corejs.javascript.Scriptable
      • getPrototype

        public org.htmlunit.corejs.javascript.Scriptable getPrototype()
        Specified by:
        getPrototype in interface org.htmlunit.corejs.javascript.Scriptable
      • setPrototype

        public void setPrototype​(org.htmlunit.corejs.javascript.Scriptable prototype)
        Specified by:
        setPrototype in interface org.htmlunit.corejs.javascript.Scriptable
      • getParentScope

        public org.htmlunit.corejs.javascript.Scriptable getParentScope()
        Specified by:
        getParentScope in interface org.htmlunit.corejs.javascript.Scriptable
      • setParentScope

        public void setParentScope​(org.htmlunit.corejs.javascript.Scriptable parent)
        Specified by:
        setParentScope in interface org.htmlunit.corejs.javascript.Scriptable
      • getIds

        public java.lang.Object[] getIds()
        Specified by:
        getIds in interface org.htmlunit.corejs.javascript.Scriptable
      • getDefaultValue

        public java.lang.Object getDefaultValue​(java.lang.Class<?> hint)
        Specified by:
        getDefaultValue in interface org.htmlunit.corejs.javascript.Scriptable
      • hasInstance

        public boolean hasInstance​(org.htmlunit.corejs.javascript.Scriptable instance)
        Specified by:
        hasInstance in interface org.htmlunit.corejs.javascript.Scriptable