Package org.htmlunit.javascript
Class NativeFunctionToStringFunction
- java.lang.Object
-
- org.htmlunit.javascript.FunctionWrapper
-
- org.htmlunit.javascript.NativeFunctionToStringFunction
-
- 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
public class NativeFunctionToStringFunction extends FunctionWrapper
Replacement (in fact a wrapper) for Rhino's native toString function on Function prototype allowing to produce the desired formatting.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classNativeFunctionToStringFunction.NativeFunctionToStringFunctionChrome(package private) static classNativeFunctionToStringFunction.NativeFunctionToStringFunctionFF
-
Constructor Summary
Constructors Constructor Description NativeFunctionToStringFunction(org.htmlunit.corejs.javascript.Function wrapped)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectcall(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args)static voidinstallFix(org.htmlunit.corejs.javascript.Scriptable window, BrowserVersion browserVersion)Install the wrapper in place of the native toString function on Function's prototype.-
Methods inherited from class org.htmlunit.javascript.FunctionWrapper
construct, delete, delete, get, get, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, has, has, hasInstance, put, put, setParentScope, setPrototype
-
-
-
-
Method Detail
-
installFix
public static void installFix(org.htmlunit.corejs.javascript.Scriptable window, BrowserVersion browserVersion)Install the wrapper in place of the native toString function on Function's prototype.- Parameters:
window- the scopebrowserVersion- the simulated browser
-
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:
callin interfaceorg.htmlunit.corejs.javascript.Callable- Specified by:
callin interfaceorg.htmlunit.corejs.javascript.Function- Overrides:
callin classFunctionWrapper
-
-