Uses of Interface
org.htmlunit.corejs.javascript.Function
-
-
Uses of Function in org.htmlunit.corejs.javascript
Classes in org.htmlunit.corejs.javascript that implement Function Modifier and Type Class Description private static classArguments.ThrowTypeErrorclassArrowFunctionThe class for Arrow Function Definitions EcmaScript 6 Rev 14, March 8, 2013 Draft spec , 13.2classBaseFunctionThe base class for Function objects.classBoundFunctionThe class for results of the Function.bind operation EcmaScript 5 spec, 15.3.4.5classDelegatorThis is a helper class for implementing wrappers around Scriptable objects.(package private) classFieldAndMethodsclassFunctionObjectclassIdFunctionObjectclassIdFunctionObjectES6(package private) classInterpretedFunctionclassLambdaConstructorThis 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.classLambdaFunctionThis 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.classNativeContinuationclassNativeFunctionThis class implements the Function native object.classNativeJavaClassThis class reflects Java classes into the JavaScript environment, mainly for constructors and static members.classNativeJavaConstructorThis class reflects a single Java constructor into the JavaScript environment.classNativeJavaMethodThis class reflects Java methods into the JavaScript environment and handles overloading of methods.classNativeJavaTopPackageThis class reflects Java packages into the JavaScript environment.(package private) classNativeScriptThe JavaScript Script object.classSynchronizerThis class provides support for implementing Java-style synchronized methods in Javascript.Fields in org.htmlunit.corejs.javascript declared as Function Modifier and Type Field Description (package private) FunctionMemberBox. asGetterFunction(package private) FunctionMemberBox. asSetterFunction(package private) FunctionNativeError.ProtoProps. prepareStackTraceMethods in org.htmlunit.corejs.javascript that return Function Modifier and Type Method Description FunctionAccessorSlot.FunctionGetter. asGetterFunction(java.lang.String name, Scriptable scope)FunctionAccessorSlot.Getter. asGetterFunction(java.lang.String name, Scriptable scope)FunctionAccessorSlot.MemberBoxGetter. asGetterFunction(java.lang.String name, Scriptable scope)(package private) FunctionMemberBox. asGetterFunction(java.lang.String name, Scriptable scope)Function returned by calls to __lookupGetter__FunctionAccessorSlot.FunctionSetter. asSetterFunction(java.lang.String name, Scriptable scope)FunctionAccessorSlot.MemberBoxSetter. asSetterFunction(java.lang.String name, Scriptable scope)FunctionAccessorSlot.Setter. asSetterFunction(java.lang.String name, Scriptable scope)(package private) FunctionMemberBox. asSetterFunction(java.lang.String name, Scriptable scope)Function returned by calls to __lookupSetter__FunctionContext. compileFunction(Scriptable scope, java.lang.String source, java.lang.String sourceName, int lineno, java.lang.Object securityDomain)Compile a JavaScript function.protected FunctionContext. compileFunction(Scriptable scope, java.lang.String source, Evaluator compiler, ErrorReporter compilationErrorReporter, java.lang.String sourceName, int lineno, java.lang.Object securityDomain)FunctionEvaluator. createFunctionObject(Context cx, Scriptable scope, java.lang.Object bytecode, java.lang.Object staticSecurityDomain)Create a function object.FunctionInterpreter. createFunctionObject(Context cx, Scriptable scope, java.lang.Object bytecode, java.lang.Object staticSecurityDomain)static FunctionTopLevel. getBuiltinCtor(Context cx, Scriptable scope, TopLevel.Builtins type)Static helper method to get a built-in object constructor with the giventypefrom the givenscope.private static FunctionNativeArray. getCallbackArg(Context cx, java.lang.Object callbackArg)(package private) static FunctionScriptRuntime. getExistingCtor(Context cx, Scriptable scope, java.lang.String constructorName)static FunctionJavaAdapter. getFunction(Scriptable obj, java.lang.String functionName)(package private) FunctionAccessorSlot. getGetterFunction(java.lang.String name, Scriptable scope)(package private) FunctionSlot. getGetterFunction(java.lang.String name, Scriptable scope)Same for the "getter."(package private) static FunctionTopLevel. getNativeErrorCtor(Context cx, Scriptable scope, TopLevel.NativeErrors type)Static helper method to get a native error constructor with the giventypefrom the givenscope.(package private) FunctionAccessorSlot. getSetterFunction(java.lang.String name, Scriptable scope)(package private) FunctionSlot. getSetterFunction(java.lang.String name, Scriptable scope)Return a JavaScript function that represents the "setter".Methods in org.htmlunit.corejs.javascript with parameters of type Function Modifier and Type Method Description static java.lang.ObjectJavaAdapter. callMethod(ContextFactory factory, Scriptable thisObj, Function f, java.lang.Object[] args, long argsToWrap)Utility method which dynamically binds a Context to the current thread, if none already exists.private java.lang.ObjectNativeError. callPrepareStack(Function prepare, ScriptStackElement[] stack)java.lang.StringContext. decompileFunction(Function fun, int indent)Decompile a JavaScript Function.java.lang.StringContext. decompileFunctionBody(Function fun, int indent)Decompile the body of a JavaScript Function.private static java.lang.ObjectJavaAdapter. doCall(Context cx, Scriptable scope, Scriptable thisObj, Function f, java.lang.Object[] args, long argsToWrap)(package private) static NativeCallScriptRuntime. findFunctionActivation(Context cx, Function f)voidImporterTopLevel. importPackage(Context cx, Scriptable thisObj, java.lang.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 Function Modifier and Type Class Description classRequireImplements 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 Function Modifier and Type Method Description static voidBuiltins. print(Context cx, Scriptable thisObj, java.lang.Object[] args, Function f) -
Uses of Function in org.htmlunit.corejs.javascript.optimizer
Methods in org.htmlunit.corejs.javascript.optimizer that return Function Modifier and Type Method Description static FunctionOptRuntime. bindThis(NativeFunction fn, Context cx, Scriptable scope, Scriptable thisObj)FunctionCodegen. createFunctionObject(Context cx, Scriptable scope, java.lang.Object bytecode, java.lang.Object staticSecurityDomain) -
Uses of Function in org.htmlunit.corejs.javascript.regexp
Classes in org.htmlunit.corejs.javascript.regexp that implement Function Modifier and Type Class Description (package private) classNativeRegExpCallableLegacy implementation of RegExp was callable, this class exists to preserve this functionality(package private) classNativeRegExpCtorThis class implements the RegExp constructor native object.Fields in org.htmlunit.corejs.javascript.regexp declared as Function Modifier and Type Field Description (package private) FunctionGlobData. lambda -
Uses of Function in org.htmlunit.corejs.javascript.tools.shell
Fields in org.htmlunit.corejs.javascript.tools.shell declared as Function Modifier and Type Field Description private FunctionRunner. f(package private) FunctionTimers.Timeout. funcMethods in org.htmlunit.corejs.javascript.tools.shell with parameters of type Function Modifier and Type Method Description static voidGlobal. defineClass(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args, Function funObj)Load a Java class that defines a JavaScript object using the conventions outlined in ScriptableObject.defineClass.static java.lang.ObjectGlobal. deserialize(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args, Function funObj)static java.lang.ObjectGlobal. doctest(Context cx, Scriptable scope, Scriptable thisObj, java.lang.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 java.lang.ObjectGlobal. doPrint(java.lang.Object[] args, Function funObj, boolean newline)static voidGlobal. gc(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args, Function funObj)private static GlobalGlobal. getInstance(Function function)static voidGlobal. help(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args, Function funObj)Print a help message.static voidGlobal. load(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args, Function funObj)Load and execute a set of JavaScript source files.static voidGlobal. loadClass(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args, Function funObj)Load and execute a script compiled to a class file.static java.lang.ObjectGlobal. print(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args, Function funObj)Print the string values of its arguments.static voidGlobal. quit(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args, Function funObj)Call embedding-specific quit action passing its argument as int32 exit code.static java.lang.ObjectGlobal. readFile(Context cx, Scriptable scope, Scriptable thisObj, java.lang.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 java.lang.ObjectGlobal. readline(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args, Function funObj)The readline reads one line from the standard input.static java.lang.ObjectGlobal. readUrl(Context cx, Scriptable scope, Scriptable thisObj, java.lang.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 java.lang.ObjectGlobal. runCommand(Context cx, Scriptable scope, Scriptable thisObj, java.lang.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 voidGlobal. seal(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args, Function funObj)The seal function seals all supplied arguments.static voidGlobal. serialize(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args, Function funObj)static java.lang.ObjectGlobal. spawn(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args, Function funObj)The spawn function runs a given function or script in a different thread.static java.lang.ObjectGlobal. sync(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args, Function funObj)The sync function creates a synchronized function (in the sense of a Java synchronized method) from an existing function.static java.lang.ObjectGlobal. toint32(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args, Function funObj)Convert the argument to int32 number.static doubleGlobal. version(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args, Function funObj)Get and set the language version.static java.lang.ObjectGlobal. write(Context cx, Scriptable scope, Scriptable thisObj, java.lang.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 Function Constructor Description Runner(Scriptable scope, Function func, java.lang.Object[] args)
-