Uses of Interface
org.htmlunit.corejs.javascript.Function
Packages that use Function
Package
Description
-
Uses of Function in org.htmlunit.corejs.javascript
Classes in org.htmlunit.corejs.javascript that implement FunctionModifier and TypeClassDescriptionprivate static class
class
The class for Arrow Function Definitions EcmaScript 6 Rev 14, March 8, 2013 Draft spec , 13.2class
The base class for Function objects.class
The class for results of the Function.bind operation EcmaScript 5 spec, 15.3.4.5class
This is a helper class for implementing wrappers around Scriptable objects.(package private) class
class
class
class
(package private) final class
class
This class implements a JavaScript function that may be used as a constructor by delegating to an interface that can be easily implemented as a lambda.class
This class implements a single JavaScript function that has the prototype of the built-in Function class, and which is implemented using a single function that can easily be implemented using a lambda expression.final class
class
This class implements the Function native object.class
This class reflects Java classes into the JavaScript environment, mainly for constructors and static members.class
This class reflects a single Java constructor into the JavaScript environment.class
This class reflects Java methods into the JavaScript environment and handles overloading of methods.class
This class reflects Java packages into the JavaScript environment.(package private) class
The JavaScript Script object.class
This class provides support for implementing Java-style synchronized methods in Javascript.Fields in org.htmlunit.corejs.javascript declared as FunctionModifier and TypeFieldDescription(package private) Function
MemberBox.asGetterFunction
(package private) Function
MemberBox.asSetterFunction
(package private) Function
NativeError.ProtoProps.prepareStackTrace
Methods in org.htmlunit.corejs.javascript that return FunctionModifier and TypeMethodDescriptionAccessorSlot.FunctionGetter.asGetterFunction
(String name, Scriptable scope) AccessorSlot.Getter.asGetterFunction
(String name, Scriptable scope) AccessorSlot.MemberBoxGetter.asGetterFunction
(String name, Scriptable scope) (package private) Function
MemberBox.asGetterFunction
(String name, Scriptable scope) Function returned by calls to __lookupGetter__AccessorSlot.FunctionSetter.asSetterFunction
(String name, Scriptable scope) AccessorSlot.MemberBoxSetter.asSetterFunction
(String name, Scriptable scope) AccessorSlot.Setter.asSetterFunction
(String name, Scriptable scope) (package private) Function
MemberBox.asSetterFunction
(String name, Scriptable scope) Function returned by calls to __lookupSetter__final Function
Context.compileFunction
(Scriptable scope, String source, String sourceName, int lineno, Object securityDomain) Compile a JavaScript function.protected Function
Context.compileFunction
(Scriptable scope, String source, Evaluator compiler, ErrorReporter compilationErrorReporter, String sourceName, int lineno, Object securityDomain) Evaluator.createFunctionObject
(Context cx, Scriptable scope, Object bytecode, Object staticSecurityDomain) Create a function object.Interpreter.createFunctionObject
(Context cx, Scriptable scope, Object bytecode, Object staticSecurityDomain) static Function
TopLevel.getBuiltinCtor
(Context cx, Scriptable scope, TopLevel.Builtins type) Static helper method to get a built-in object constructor with the giventype
from the givenscope
.private static Function
NativeArray.getCallbackArg
(Context cx, Object callbackArg) (package private) static Function
ScriptRuntime.getExistingCtor
(Context cx, Scriptable scope, String constructorName) static Function
JavaAdapter.getFunction
(Scriptable obj, String functionName) (package private) Function
AccessorSlot.getGetterFunction
(String name, Scriptable scope) (package private) Function
Slot.getGetterFunction
(String name, Scriptable scope) Same for the "getter."(package private) static Function
TopLevel.getNativeErrorCtor
(Context cx, Scriptable scope, TopLevel.NativeErrors type) Static helper method to get a native error constructor with the giventype
from the givenscope
.(package private) Function
AccessorSlot.getSetterFunction
(String name, Scriptable scope) (package private) Function
Slot.getSetterFunction
(String name, Scriptable scope) Return a JavaScript function that represents the "setter".Methods in org.htmlunit.corejs.javascript with parameters of type FunctionModifier and TypeMethodDescriptionstatic Object
JavaAdapter.callMethod
(ContextFactory factory, Scriptable thisObj, Function f, Object[] args, long argsToWrap) Utility method which dynamically binds a Context to the current thread, if none already exists.private Object
NativeError.callPrepareStack
(Function prepare, ScriptStackElement[] stack) final String
Context.decompileFunction
(Function fun, int indent) Decompile a JavaScript Function.final String
Context.decompileFunctionBody
(Function fun, int indent) Decompile the body of a JavaScript Function.private static Object
JavaAdapter.doCall
(Context cx, Scriptable scope, Scriptable thisObj, Function f, Object[] args, long argsToWrap) (package private) static NativeCall
ScriptRuntime.findFunctionActivation
(Context cx, Function f) void
ImporterTopLevel.importPackage
(Context cx, Scriptable thisObj, Object[] args, Function funObj) Deprecated.Kept only for compatibility. -
Uses of Function in org.htmlunit.corejs.javascript.commonjs.module
Classes in org.htmlunit.corejs.javascript.commonjs.module that implement FunctionModifier and TypeClassDescriptionclass
Implements the require() function as defined by Common JS modules. -
Uses of Function in org.htmlunit.corejs.javascript.engine
Methods in org.htmlunit.corejs.javascript.engine with parameters of type FunctionModifier and TypeMethodDescriptionstatic void
Builtins.print
(Context cx, Scriptable thisObj, Object[] args, Function f) -
Uses of Function in org.htmlunit.corejs.javascript.optimizer
Methods in org.htmlunit.corejs.javascript.optimizer that return FunctionModifier and TypeMethodDescriptionstatic Function
OptRuntime.bindThis
(NativeFunction fn, Context cx, Scriptable scope, Scriptable thisObj) Codegen.createFunctionObject
(Context cx, Scriptable scope, Object bytecode, Object staticSecurityDomain) -
Uses of Function in org.htmlunit.corejs.javascript.regexp
Classes in org.htmlunit.corejs.javascript.regexp that implement FunctionModifier and TypeClassDescription(package private) class
Legacy implementation of RegExp was callable, this class exists to preserve this functionality(package private) class
This class implements the RegExp constructor native object.Fields in org.htmlunit.corejs.javascript.regexp declared as Function -
Uses of Function in org.htmlunit.corejs.javascript.tools.shell
Fields in org.htmlunit.corejs.javascript.tools.shell declared as FunctionModifier and TypeFieldDescriptionprivate Function
Runner.f
(package private) Function
Timers.Timeout.func
Methods in org.htmlunit.corejs.javascript.tools.shell with parameters of type FunctionModifier and TypeMethodDescriptionstatic void
Global.defineClass
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) Load a Java class that defines a JavaScript object using the conventions outlined in ScriptableObject.defineClass.static Object
Global.deserialize
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) static Object
Global.doctest
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) Example: doctest("js> function f() {\n > return 3;\n > }\njs> f();\n3\n"); returns 2 (since 2 tests were executed).private static Object
static void
Global.gc
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) private static Global
Global.getInstance
(Function function) static void
Global.help
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) Print a help message.static void
Global.load
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) Load and execute a set of JavaScript source files.static void
Global.loadClass
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) Load and execute a script compiled to a class file.static Object
Global.print
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) Print the string values of its arguments.static void
Global.quit
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) Call embedding-specific quit action passing its argument as int32 exit code.static Object
Global.readFile
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) The readFile reads the given file content and convert it to a string using the specified character coding or default character coding if explicit coding argument is not given.static Object
Global.readline
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) The readline reads one line from the standard input.static Object
Global.readUrl
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) The readUrl opens connection to the given URL, read all its data and converts them to a string using the specified character coding or default character coding if explicit coding argument is not given.static Object
Global.runCommand
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) Execute the specified command with the given argument and options as a separate process and return the exit status of the process.static void
Global.seal
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) The seal function seals all supplied arguments.static void
Global.serialize
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) static Object
Global.spawn
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) The spawn function runs a given function or script in a different thread.static Object
Global.sync
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) The sync function creates a synchronized function (in the sense of a Java synchronized method) from an existing function.static Object
Global.toint32
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) Convert the argument to int32 number.static double
Global.version
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) Get and set the language version.static Object
Global.write
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Function funObj) Print just as in "print," but without the trailing newline.Constructors in org.htmlunit.corejs.javascript.tools.shell with parameters of type FunctionModifierConstructorDescription(package private)
Runner
(Scriptable scope, Function func, Object[] args)