Uses of Interface
org.mozilla.javascript.Function
Packages that use Function
Package
Description
Provides the public API for the CommonJS Modules/1.1 implementation.
-
Uses of Function in org.mozilla.javascript
Classes in org.mozilla.javascript that implement FunctionModifier and TypeClassDescriptionclassThe class for Arrow Function Definitions EcmaScript 6 Rev 14, March 8, 2013 Draft spec , 13.2classThe base class for Function objects.classThe class for results of the Function.bind operation EcmaScript 5 spec, 15.3.4.5classThis is a helper class for implementing wrappers around Scriptable objects.classclassclassclassThis 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.classThis 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 classclassThis class implements the Function native object.classThis class reflects Java classes into the JavaScript environment, mainly for constructors and static members.classThis class reflects a single Java constructor into the JavaScript environment.classThis class reflects Java methods into the JavaScript environment and handles overloading of methods.classThis class reflects Java packages into the JavaScript environment.classThis class provides support for implementing Java-style synchronized methods in Javascript.Methods in org.mozilla.javascript that return FunctionModifier and TypeMethodDescriptionfinal FunctionContext.compileFunction(Scriptable scope, String source, String sourceName, int lineno, Object securityDomain) Compile a JavaScript function.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 FunctionTopLevel.getBuiltinCtor(Context cx, Scriptable scope, TopLevel.Builtins type) Static helper method to get a built-in object constructor with the giventypefrom the givenscope.static FunctionJavaAdapter.getFunction(Scriptable obj, String functionName) Methods in org.mozilla.javascript with parameters of type FunctionModifier and TypeMethodDescriptionstatic ObjectJavaAdapter.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.final StringContext.decompileFunction(Function fun, int indent) Decompile a JavaScript Function.final StringContext.decompileFunctionBody(Function fun, int indent) Decompile the body of a JavaScript Function.voidImporterTopLevel.importPackage(Context cx, Scriptable thisObj, Object[] args, Function funObj) Deprecated.Kept only for compatibility. -
Uses of Function in org.mozilla.javascript.commonjs.module
Classes in org.mozilla.javascript.commonjs.module that implement FunctionModifier and TypeClassDescriptionclassImplements the require() function as defined by Common JS modules. -
Uses of Function in org.mozilla.javascript.engine
Methods in org.mozilla.javascript.engine with parameters of type FunctionModifier and TypeMethodDescriptionstatic voidBuiltins.print(Context cx, Scriptable thisObj, Object[] args, Function f) -
Uses of Function in org.mozilla.javascript.optimizer
Methods in org.mozilla.javascript.optimizer that return FunctionModifier and TypeMethodDescriptionstatic FunctionOptRuntime.bindThis(NativeFunction fn, Context cx, Scriptable scope, Scriptable thisObj) Codegen.createFunctionObject(Context cx, Scriptable scope, Object bytecode, Object staticSecurityDomain) -
Uses of Function in org.mozilla.javascript.tools.shell
Methods in org.mozilla.javascript.tools.shell with parameters of type FunctionModifier and TypeMethodDescriptionstatic voidGlobal.defineClass(Context cx, Scriptable thisObj, Object[] args, Function funObj) Load a Java class that defines a JavaScript object using the conventions outlined in ScriptableObject.defineClass.static ObjectGlobal.deserialize(Context cx, Scriptable thisObj, Object[] args, Function funObj) static ObjectGlobal.doctest(Context cx, 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).static voidGlobal.gc(Context cx, Scriptable thisObj, Object[] args, Function funObj) static voidGlobal.help(Context cx, Scriptable thisObj, Object[] args, Function funObj) Print a help message.static voidGlobal.load(Context cx, Scriptable thisObj, Object[] args, Function funObj) Load and execute a set of JavaScript source files.static voidGlobal.loadClass(Context cx, Scriptable thisObj, Object[] args, Function funObj) Load and execute a script compiled to a class file.static ObjectGlobal.print(Context cx, Scriptable thisObj, Object[] args, Function funObj) Print the string values of its arguments.static voidGlobal.quit(Context cx, Scriptable thisObj, Object[] args, Function funObj) Call embedding-specific quit action passing its argument as int32 exit code.static ObjectGlobal.readFile(Context cx, 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 ObjectGlobal.readline(Context cx, Scriptable thisObj, Object[] args, Function funObj) The readline reads one line from the standard input.static ObjectGlobal.readUrl(Context cx, 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 ObjectGlobal.runCommand(Context cx, 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 voidGlobal.seal(Context cx, Scriptable thisObj, Object[] args, Function funObj) The seal function seals all supplied arguments.static voidGlobal.serialize(Context cx, Scriptable thisObj, Object[] args, Function funObj) static ObjectGlobal.spawn(Context cx, Scriptable thisObj, Object[] args, Function funObj) The spawn function runs a given function or script in a different thread.static ObjectGlobal.sync(Context cx, 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 ObjectGlobal.toint32(Context cx, Scriptable thisObj, Object[] args, Function funObj) Convert the argument to int32 number.static doubleGlobal.version(Context cx, Scriptable thisObj, Object[] args, Function funObj) Get and set the language version.static ObjectGlobal.write(Context cx, Scriptable thisObj, Object[] args, Function funObj) Print just as in "print," but without the trailing newline.