Module org.htmlunit.corejs
Package org.htmlunit.corejs.javascript
package org.htmlunit.corejs.javascript
-
ClassDescriptionAbstract Object Operations as defined by EcmaScriptAbstract operations for string manipulation as defined by EcmaScriptInterface representing a call frame in the interpreter.This is a specialization of Slot to store various types of values that are retrieved dynamically using Java and JavaScript functions.This class is intended as proxy to give
DebugFrameaccess to the contents of local variables.Contains implementation of shared methods useful for arrays and typed arrays.The base class for Function objects.The class for results of the Function.bind() operation EcmaScript 5 spec, 15.3.4.5BuiltInSlot<T extends ScriptableObject>This is a specialization of property access using some lambda functions designed for properties on built in objects that may be created extremely frequently.BuiltInSlot.AttributeSetter<U extends ScriptableObject>BuiltInSlot.Descriptor<T extends ScriptableObject>BuiltInSlot.Getter<T extends ScriptableObject>BuiltInSlot.Setter<T extends ScriptableObject>Can provide source code for a built in FunctionGeneric notion of callable object that can execute some script-related code upon request with specified values for script scope and this objects.Cache of generated classes and data structures to access Java runtime from JavaScript.A descriptor for a constructor and its prototype methods which can then be used to build a real constructor function and prototype during standard object initialisation.A builder for creating class descriptors.ClassDescriptor.BuiltInJSCodeExec<U extends ScriptOrFn<U>>ClassDescriptor.BuiltInJSCodeResume<U extends ScriptOrFn<U>>Enum indicating the destination for an operation.Embeddings that wish to filter Java classes that are visible to scripts through the LiveConnect, should implement this interface.Common utilities usable by all the compilers for populatingJSDescriptor.Builderentries from IR nodes.CompactSlot<T extends CompactSlot.Descriptor<T,U, O>, U extends PropHolder<U>, O extends ScriptableObject> CompactSlot.Descriptor<T extends CompactSlot.Descriptor<T,U, O>, U extends PropHolder<U>, O extends ScriptableObject> CompilationResult<T extends ScriptOrFn<T>>Opaque result of compiling aScriptNodevia anEvaluator.CompileSpec<T extends ScriptOrFn<T>>Parameters for compiling a JavaScript script (i.e. top-level program source) or function.CompoundOperationMap<T extends PropHolder<T>>This class represents a compound operation performed on a non-thread safe map.This class represents a string composed of two components, each of which may be ajava.lang.Stringor another ConsString.ConstProperties<T extends PropHolder<T>>An interface that can be used to implement a constructor function as a lambda.This class represents the runtime context of an executing script.Enumeration of evaluation methods supported by Rhino.Interface to represent arbitrary action that requires to have Context object associated with the current thread for its execution.Factory class that Rhino runtime uses to create newContextinstances.Listener ofContextcreation and release events.Deprecated.Exception thrown byContext.executeScriptWithContinuations(Script, VarScope)andContext.callFunctionWithContinuations(Callable, VarScope, Object[])when execution encounters a continuation captured byContext.captureContinuation().Load generated classes.This is a helper class for implementing wrappers around Scriptable objects.Stores a reference to the original source code and returns it as necessary.The class of exceptions raised by the engine as described in ECMA edition 3.EmbeddedSlotMap<T extends PropHolder<T>>This is interface defines a protocol for the reporting of errors during JavaScript translation or execution.Abstraction of evaluation, which can be implemented either by an interpreter or compiler.The class of exceptions thrown by the JavaScript engine.Implement this interface in order to allow external data to be attached to a ScriptableObject.This is interface that all functions in JavaScript must implement.Parameters for compiling a JavaScript function (a single function definition).Interface to define classes from generated byte code.HashSlotMap<T extends PropHolder<T>>This class implements the SlotMap interface using a java.util.HashMap.This generic hash table class is used by Set and Map.One entry in the hash table.Master for id-based functions that knows their properties and how to execute them.Base class for native object implementation that uses IdFunctionObject to export its methods to script via <class-name>.prototype object.ImmutableSmallSlotMap<T extends PropHolder<T>>This class is a singleton that just exists to serve up the implementation version.Class ImporterTopLevelA single-function interface so that we can use lambda functions to lazily initialize native classes.Adapter to use JS function as implementation of Java interfaces with single method or multiple methods with the same signature.This class rewrites the parse tree into an IR suitable for codegen.This is a class that makes it easier to iterate over "iterator-like" objects as defined in the ECMAScript spec.Java reflection of JavaScript exceptions.This class provides implementations of converters for Java objects to be used by the JSON.stringify method.JSCode<T extends ScriptOrFn<T>>Represents code that is executable, and potentially resumable.JSCode.Builder<U extends ScriptOrFn<U>>Represents a mutableJSCodeobject in the process of being created, usually as a child of aJSDescriptor.Builder.JSCode.NullBuilder<V extends ScriptOrFn<V>>A builder for a null code entry.JSCodeExec<T extends ScriptOrFn<T>>This interface represent a thing which can be executed in JavaScript, whether that is a script, function call, or function constructor.JSCodeResume<T extends ScriptOrFn<T>>This interface represent a thing which can be executed in JavaScript, which could be a generator, or potentially in future an async function.JSCodeResume.NullResume<T extends ScriptOrFn<T>>JSDescriptor<T extends ScriptOrFn<T>>This class holds all the meta-data associated with a function in as an immutable form as possible, along with the executable things associated with the function.JSDescriptor.Builder<T extends ScriptOrFn<T>>A mutable object for creating the final immutableJSDescriptor.Represents a JavaScript function built upon a aJSDescriptor.Represents a script object built upon aJSDescriptor.Collection of utilitiesThis class implements a lambda function which is known to the runtime system and which may be treated specially by the interpreter or runtime.A specialized property accessor using lambda functions, similar toLambdaSlot, but allows defining properties with getter and setter lambdas that require access to the owner object ('this').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.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.This is a specialization of property access using some lambda functions.LazilyLoadedCtor<T extends PropHolder<T>>Avoid loading classes unless they are used.LazyLoadSlot<T extends PropHolder<T>>This is a specialization of Slot to store values that are retrieved via calls to script functions.Can provide source code from a lazySourceCodeSupplier, that for example can retrieve it from the database.This class implements the Array native object.This class implements the activation object.This class is used by the V8 extension "Error.prepareStackTrace."Implementation of ECMAScript 2021 FinalizationRegistry.This class implements the Function native object.This class implements generator objects.This class implements the global native object (function and value properties only).This class implements iterator objects.This class reflects Java arrays into the JavaScript environment.This class reflects Java classes into the JavaScript environment, mainly for constructors and static members.This class reflects a single Java constructor into the JavaScript environment.NativeJavaListis a wrapper for java objects implementingjava.util.Listinterface.NativeJavaMapis a wrapper for java objects implementingjava.util.Mapinterface.This class reflects Java methods into the JavaScript environment and handles overloading of methods.This class reflects non-Array Java objects into the JavaScript environment.This class reflects Java packages into the JavaScript environment.This class reflects Java packages into the JavaScript environment.This class implements the JSON native object.This class implements the Object native object.This is an implementation of the standard "Symbol" type that implements all of its weird properties.This is an implementation of the ES6 WeakMap class.This is an implementation of the ES6 WeakSet class.Used to store the support structures for a literal object (or array) being built.This class implements the root of the intermediate representation.This class transforms a tree to a lower-level representation for codegen.This class implements the JavaScript parser.A security controller relying on JavaPolicyin effect.PropHolder<T extends PropHolder<T>>Interface the common route of JS objects and environment records, i.e. a thing that has properties and some form of ancestor.Generic notion of reference object that know how to query/modify the target objects based on some property/index.Object that can allows assignments to the result of function calls.This interface is used to load the RegExp implementation from the classpath.A proxy for the regexp package, so that the regexp package can be loaded optionally.The class of exceptions thrown by the JavaScript engine.Ajava.lang.SecurityManagersubclass that provides access to the current top-most script class on the execution stack.All compiled scripts implement this interface.This is interface that all objects in JavaScript must implement.This is the default implementation of the Scriptable interface.This comparator sorts property fields in spec-compliant order.This is a single method interface suitable to be implemented as a lambda.This is a single method interface suitable to be implemented as a lambda.Parameters for compiling a JavaScript script (i.e. top-level program source).ScriptOrFn<T extends ScriptOrFn<T>>Super type for Javascript scripts and functions.This is the class that implements the runtime.This is returned from the various "getFooAndThis" methods, so it can return the result, the appropriate "this" object, and the name of the property so that a proper exception can be thrown if the result is not a function.This is an interface defining a message provider.Helper to return a string or an integer.This class represents an element on the script execution stack.This class describes the support needed to implement security.This interface makes it possible to pass a lambda function to the various methods in LambdaConstructor and LambdaFunction that require a Callable that is also Serializable.This interface makes it possible to pass a lambda function to the various methods in LambdaConstructor and LambdaFunction that require a Constructable that is also Serializable.Slot<T extends PropHolder<T>>A Slot is the base class for all properties stored in the ScriptableObject class.SlotMap<T extends PropHolder<T>>A SlotMap is an interface to the main data structure that contains all the "Slots" that back a ScriptableObject.SlotMapDescriptor<O extends ScriptableObject>SlotMapDescriptor.Builder<O extends ScriptableObject>SlotMapOwner<T extends PropHolder<T>>An object that can provide the source code for the given function.A lambda that can provide the source code for a given script.This class distinguishes between the three different supported stack trace formats.StandardSlot<T extends PropHolder<T>>A Slot is the base class for all properties stored in the ScriptableObject class.A Symbol is a JavaScript object that obeys the special properties of the Symbol prototype.Represents the kind of the symbol, built in, registered, or normal.A SymbolKey is one of the implementations of Symbol.This interface may be combined with any object that implements Scriptable to add support for properties keyed by Symbol objects (as opposed to String and number objects as in previous versions of JavaScript.This class provides support for implementing Java-style synchronized methods in Javascript.ThreadSafeImmutableSmallSlotMap<T extends PropHolder<T>>This class implements the JavaScript scanner.A top-level scope object that provides special means to cache and preserve the initial values of the built-in constructor properties for better ECMAScript compliance.An enumeration of built-in ECMAScript objects.This class implements the Undefined value in JavaScript.This class is responsible for handling tracking of unhandled Promise rejections.Class instances represent serializable tags to mark special Object values.Interface that represents an the bindings of an ECMAScript environment record.Embeddings that wish to provide their own custom wrappings for Java objects may extend this class and callContext.setWrapFactory(WrapFactory)Once an instance of this class or an extension of this class is enabled for a given context (by calling setWrapFactory on that context), Rhino will call the methods of this class whenever it needs to wrap a value resulting from calling a Java method or accessing a Java field.A wrapper for runtime exceptions.Objects that can wrap other values for reflection in the JS environment will implement Wrapper.
Contextinstances should implementContextFactory.Listener.