Package org.htmlunit.javascript
Class FunctionWrapper
java.lang.Object
org.htmlunit.javascript.FunctionWrapper
- All Implemented Interfaces:
Serializable
,org.htmlunit.corejs.javascript.Callable
,org.htmlunit.corejs.javascript.Constructable
,org.htmlunit.corejs.javascript.Function
,org.htmlunit.corejs.javascript.Scriptable
- Direct Known Subclasses:
NativeFunctionToStringFunction
,NativeFunctionToStringFunction.NativeFunctionToStringFunctionChrome
,NativeFunctionToStringFunction.NativeFunctionToStringFunctionFF
public class FunctionWrapper
extends Object
implements org.htmlunit.corejs.javascript.Function, Serializable
Wrapper for a
Function
delegating all calls to the wrapped instance.- See Also:
-
Field Summary
FieldsFields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionWrapper
(org.htmlunit.corejs.javascript.Function wrapped) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptioncall
(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args) org.htmlunit.corejs.javascript.Scriptable
construct
(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, Object[] args) void
delete
(int index) void
get
(int index, org.htmlunit.corejs.javascript.Scriptable start) getDefaultValue
(Class<?> hint) Object[]
getIds()
org.htmlunit.corejs.javascript.Scriptable
org.htmlunit.corejs.javascript.Scriptable
boolean
has
(int index, org.htmlunit.corejs.javascript.Scriptable start) boolean
boolean
hasInstance
(org.htmlunit.corejs.javascript.Scriptable instance) void
void
void
setParentScope
(org.htmlunit.corejs.javascript.Scriptable parent) void
setPrototype
(org.htmlunit.corejs.javascript.Scriptable prototype)
-
Field Details
-
wrapped_
private final org.htmlunit.corejs.javascript.Function wrapped_
-
-
Constructor Details
-
FunctionWrapper
public FunctionWrapper(org.htmlunit.corejs.javascript.Function wrapped) Constructs a new instance.- Parameters:
wrapped
- the wrapped function
-
-
Method Details
-
call
public Object call(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args) - Specified by:
call
in interfaceorg.htmlunit.corejs.javascript.Callable
- Specified by:
call
in interfaceorg.htmlunit.corejs.javascript.Function
-
getClassName
- Specified by:
getClassName
in interfaceorg.htmlunit.corejs.javascript.Scriptable
-
construct
public org.htmlunit.corejs.javascript.Scriptable construct(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, Object[] args) - Specified by:
construct
in interfaceorg.htmlunit.corejs.javascript.Constructable
- Specified by:
construct
in interfaceorg.htmlunit.corejs.javascript.Function
-
get
- Specified by:
get
in interfaceorg.htmlunit.corejs.javascript.Scriptable
-
get
- Specified by:
get
in interfaceorg.htmlunit.corejs.javascript.Scriptable
-
has
- Specified by:
has
in interfaceorg.htmlunit.corejs.javascript.Scriptable
-
has
public boolean has(int index, org.htmlunit.corejs.javascript.Scriptable start) - Specified by:
has
in interfaceorg.htmlunit.corejs.javascript.Scriptable
-
put
- Specified by:
put
in interfaceorg.htmlunit.corejs.javascript.Scriptable
-
put
- Specified by:
put
in interfaceorg.htmlunit.corejs.javascript.Scriptable
-
delete
- Specified by:
delete
in interfaceorg.htmlunit.corejs.javascript.Scriptable
-
delete
public void delete(int index) - Specified by:
delete
in interfaceorg.htmlunit.corejs.javascript.Scriptable
-
getPrototype
public org.htmlunit.corejs.javascript.Scriptable getPrototype()- Specified by:
getPrototype
in interfaceorg.htmlunit.corejs.javascript.Scriptable
-
setPrototype
public void setPrototype(org.htmlunit.corejs.javascript.Scriptable prototype) - Specified by:
setPrototype
in interfaceorg.htmlunit.corejs.javascript.Scriptable
-
getParentScope
public org.htmlunit.corejs.javascript.Scriptable getParentScope()- Specified by:
getParentScope
in interfaceorg.htmlunit.corejs.javascript.Scriptable
-
setParentScope
public void setParentScope(org.htmlunit.corejs.javascript.Scriptable parent) - Specified by:
setParentScope
in interfaceorg.htmlunit.corejs.javascript.Scriptable
-
getIds
- Specified by:
getIds
in interfaceorg.htmlunit.corejs.javascript.Scriptable
-
getDefaultValue
- Specified by:
getDefaultValue
in interfaceorg.htmlunit.corejs.javascript.Scriptable
-
hasInstance
public boolean hasInstance(org.htmlunit.corejs.javascript.Scriptable instance) - Specified by:
hasInstance
in interfaceorg.htmlunit.corejs.javascript.Scriptable
-