Uses of Interface
org.htmlunit.corejs.javascript.Scriptable
Packages that use Scriptable
Package
Description
-
Uses of Scriptable in org.htmlunit.corejs.javascript
Subinterfaces of Scriptable in org.htmlunit.corejs.javascriptModifier and TypeInterfaceDescriptioninterfaceThis is interface that all functions in JavaScript must implement.Classes in org.htmlunit.corejs.javascript that implement ScriptableModifier and TypeClassDescriptionclassThe 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.final classclassclassclassclassBase class for native object implementation that uses IdFunctionObject to export its methods to script via <class-name>.prototype object.static classclassRepresents a JavaScript function built upon a aJSDescriptor.classThis class implements a lambda function which is known to the runtime system and which may be treated specially by the interpreter or runtime.classThis 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.classThis class implements the Array native object.final classclassThis class is used by the V8 extension "Error.prepareStackTrace."classclassfinal classclassImplementation of ECMAScript 2021 FinalizationRegistry.classThis class implements the Function native object.final classThis class implements generator objects.final classThis class implements iterator objects.static classclassThis class reflects Java arrays into the JavaScript environment.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.classNativeJavaListis a wrapper for java objects implementingjava.util.Listinterface.classNativeJavaMapis a wrapper for java objects implementingjava.util.Mapinterface.classThis class reflects Java methods into the JavaScript environment and handles overloading of methods.classThis class reflects non-Array Java objects into the JavaScript environment.classThis class reflects Java packages into the JavaScript environment.classThis class reflects Java packages into the JavaScript environment.final classThis class implements the JSON native object.classclassThis class implements the Object native object.classclassfinal classclassThis is an implementation of the standard "Symbol" type that implements all of its weird properties.classThis is an implementation of the ES6 WeakMap class.classclassThis is an implementation of the ES6 WeakSet class.classclassThis is the default implementation of the Scriptable interface.classThis class provides support for implementing Java-style synchronized methods in Javascript.static classFields in org.htmlunit.corejs.javascript declared as ScriptableModifier and TypeFieldDescriptionprotected ScriptableDelegator.objprotected ScriptableNativeJavaObject.prototypeThe prototype of this object.static final ScriptableUndefined.SCRIPTABLE_UNDEFINEDAn alternate representation of undefined, to be used only when we need to pass it to a method that takes as Scriptable as a parameter.Fields in org.htmlunit.corejs.javascript with type parameters of type ScriptableMethods in org.htmlunit.corejs.javascript with type parameters of type ScriptableModifier and TypeMethodDescriptionstatic <T extends Scriptable>
voidScriptableObject.defineClass(VarScope scope, Class<T> clazz) Defines JavaScript objects from a Java class that implements Scriptable.static <T extends Scriptable>
voidScriptableObject.defineClass(VarScope scope, Class<T> clazz, boolean sealed) Defines JavaScript objects from a Java class, optionally allowing sealing.static <T extends Scriptable>
StringScriptableObject.defineClass(VarScope scope, Class<T> clazz, boolean sealed, boolean mapInheritance) Defines JavaScript objects from a Java class, optionally allowing sealing and mapping of Java inheritance to JavaScript prototype-based inheritance.Methods in org.htmlunit.corejs.javascript that return ScriptableModifier and TypeMethodDescriptionCall the function as a constructor.default ScriptableCall the function as a constructor.Note that if thedelegeeisnull, this method creates a new instance of the Delegator itself rather than forwarding the call to thedelegee.Call the function as a constructor.static ScriptableJavaAdapter.createAdapterWrapper(Scriptable obj, Object adapter) BaseFunction.createObject(Context cx, VarScope scope) Creates new script object.BaseFunction.createObject(Context cx, VarScope scope, Object nt) FunctionObject.createObject(Context cx, VarScope scope) Return newScriptableinstance using the default constructor for the class of the underlying Java method.IdFunctionObject.createObject(Context cx, VarScope scope) static ScriptableScriptRuntime.doObjectRest(Context cx, VarScope scope, Object source, Object[] excludeKeys) Helper for object rest properties in destructuring.protected static ScriptableScriptableObject.ensureScriptable(Object arg) static ScriptableScriptRuntime.findPrototype(JSFunction f, Object nt, TopLevel.Builtins type) static ScriptableScriptRuntime.findPrototype(JSFunction f, Object nt, org.htmlunit.corejs.javascript.TopLevel.NativeErrors type) default ScriptableScriptable.getAncestor()ScriptableObject.getAncestor()static ScriptableScriptRuntime.getApplyOrCallThis(Context cx, VarScope scope, Object arg0, int l, Function target) static ScriptableScriptableObject.getArrayPrototype(VarScope scope) TopLevel.getBuiltinPrototype(TopLevel.Builtins type) Get the cached built-in object prototype from this scope with the giventype.TopLevel.getBuiltinPrototype(org.htmlunit.corejs.javascript.TopLevel.NativeErrors type) Get the cached built-in object prototype from this scope with the giventype.static ScriptableTopLevel.getBuiltinPrototype(TopLevel scope, TopLevel.Builtins type) Static helper method to get a built-in object prototype with the giventypefrom the givenscope.BaseFunction.getClassPrototype()static ScriptableScriptableObject.getClassPrototype(VarScope scope, String className) Get the prototype for the named class.static ScriptableScriptableObject.getClassPrototype(VarScope scope, Symbol className) Delegator.getDelegee()Retrieve the delegee.EcmaError.getErrorObject()Deprecated.Always returns null.static ScriptableScriptableObject.getFunctionPrototype(VarScope scope) Get the Function.prototype property.static ScriptableScriptableObject.getGeneratorFunctionPrototype(VarScope scope) BaseFunction.getHomeObject()JSFunction.getHomeObject()JSScript.getHomeObject()NativeCall.getHomeObject()default ScriptableScriptOrFn.getHomeObject()WithScope.getObject()static ScriptableScriptableObject.getObjectPrototype(VarScope scope) Get the Object.prototype property.Delegator.getPrototype()IdFunctionObject.getPrototype()NativeJavaArray.getPrototype()NativeJavaObject.getPrototype()ScopeWrapper.getPrototype()Scriptable.getPrototype()Get the prototype of the object.ScriptableObject.getPrototype()Returns the prototype of the object.static ScriptableScriptRuntime.getTemplateLiteralCallSite(Context cx, VarScope scope, Object[] strings, int index) ScriptRuntime.LookupResult.getThis()static ScriptableScriptRuntime.getThisForScope(VarScope scope, Object callThisArg) final ScriptableIdFunctionObject.getThisObj(Object thisObj) CompilerEnvirons.homeObject()static ScriptableScriptRuntime.lastStoredScriptable(Context cx) Deprecated, for removal: This API element is subject to removal in a future version.Create an array with a specified initial length.Create an array with a set of initial elements.static ScriptableScriptRuntime.newArrayLiteral(Object[] objects, int[] skipIndices, Context cx, VarScope scope) static ScriptableScriptRuntime.newBuiltinObject(Context cx, VarScope scope, TopLevel.Builtins type, Object[] args) Create a new JavaScript object.Create a new JavaScript object by executing the named constructor.Creates a new JavaScript object by executing the named constructor.static ScriptableOperator new.static Scriptablestatic ScriptableScriptRuntime.newObjectLiteral(Object[] propertyIds, Object[] propertyValues, int[] getterSetters, Context cx, VarScope scope) static ScriptableScriptRuntime.newObjectLiteral(Object[] propertyIds, Object[] propertyValues, Context cx, VarScope scope) Deprecated.static Scriptablestatic ScriptableScriptRuntime.toIterator(Context cx, Scriptable obj, boolean keyOnly) static ScriptableConvert the value to an JavaScript object value.static ScriptableDeprecated.static ScriptableConvert the value to an object.static ScriptableDeprecated.UseScriptRuntime.toObject(Context, VarScope, Object)instead.static Scriptablestatic ScriptableDeprecated.UseScriptRuntime.toObject(VarScope, Object)instead.static ScriptableScriptRuntime.toObjectOrNull(Context cx, Object obj) Deprecated.static ScriptableScriptRuntime.toObjectOrNull(Context cx, Object obj, VarScope scope) final ScriptableWrapFactory.wrapAsJavaObject(Context cx, VarScope scope, Object javaObject, Class<?> staticType) WrapFactory.wrapAsJavaObject(Context cx, VarScope scope, Object javaObject, TypeInfo staticType) Wrap Java object as Scriptable instance to allow full access to its methods and fields from JavaScript.static ScriptableScriptRuntime.wrapException(Throwable t, VarScope scope, Context cx) WrapFactory.wrapJavaClass(Context cx, VarScope scope, Class<?> javaClass) Wrap a Java class as Scriptable instance to allow access to its static members and fields and use as constructor from JavaScript.WrapFactory.wrapNewObject(Context cx, VarScope scope, Object obj) Wrap an object newly created by a constructor call.RegExpProxy.wrapRegExp(Context cx, VarScope scope, Object compiled) static ScriptableScriptRuntime.wrapRegExp(Context cx, VarScope scope, Object compiled) Methods in org.htmlunit.corejs.javascript that return types with arguments of type ScriptableMethods in org.htmlunit.corejs.javascript with parameters of type ScriptableModifier and TypeMethodDescriptionvoidScriptableObject.LambdaSetterFunction.accept(Scriptable owner, Object value) voidFunctionObject.addAsConstructor(VarScope scope, Scriptable prototype) Define this function as a JavaScript constructor.voidFunctionObject.addAsConstructor(VarScope scope, Scriptable prototype, int attributes) Define this function as a JavaScript constructor.protected voidIdScriptableObject.addIdFunctionProperty(Scriptable obj, Object tag, int id, String name, int arity) BuiltInSlot.Getter.apply(T builtIn, Scriptable start) booleanBuiltInSlot.Setter.apply(T builtIn, Object value, Scriptable owner, Scriptable start, boolean isThrow) ScriptableObject.LambdaGetterFunction.apply(Scriptable scope) static ObjectContext.call(ContextFactory factory, Callable callable, VarScope scope, Scriptable thisObj, Object[] args) CallCallable.call(Context cx, VarScope scope, Scriptable thisObj, Object[] args)using the Context instance associated with the current thread.abstract ObjectSecureCaller.call(Callable callable, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) static 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.static ObjectScriptableObject.callMethod(Context cx, Scriptable obj, String methodName, Object[] args) Call a method of an object.static ObjectScriptableObject.callMethod(Scriptable obj, String methodName, Object[] args) Call a method of an object.static ObjectScriptRuntime.callSpecial(Context cx, Callable fun, Scriptable thisObj, Object[] args, VarScope scope, Object callerThis, int callType, String filename, int lineNumber, boolean isOptionalChainingCall) final ScriptContext.compileReader(Scriptable scope, Reader in, String sourceName, int lineno, Object securityDomain) Deprecated.static EcmaErrorNativeGlobal.constructError(Context cx, String error, String message, Scriptable scope) Deprecated.UseScriptRuntime.constructError(String,String)instead.static EcmaErrorNativeGlobal.constructError(Context cx, String error, String message, Scriptable scope, String sourceName, int lineNumber, int columnNumber, String lineSource) Deprecated.static ScriptableJavaAdapter.createAdapterWrapper(Scriptable obj, Object adapter) static JSFunctionJSFunction.createFunction(Context cx, VarScope scope, JSDescriptor<JSFunction> desc, Scriptable homeObject, Object staticSecurityDomain) Create function compiled from Function(...) constructor.static JSScriptJSFunction.createScript(JSDescriptor<JSScript> desc, Scriptable homeObject, Object staticSecurityDomain) Create script from compiled bytecode.voidScriptableObject.defineConst(Context cx, String name, Scriptable start) static booleanScriptableObject.deleteProperty(Scriptable obj, int index) Removes the property from an object or its prototype chain.static booleanScriptableObject.deleteProperty(Scriptable obj, String name) Removes the property from an object or its prototype chain.static booleanScriptableObject.deleteProperty(Scriptable obj, Symbol key) A version of deleteProperty for properties with Symbol keys.IdFunctionCall.execIdCall(IdFunctionObject f, Context cx, VarScope scope, Scriptable thisObj, Object[] args) 'thisObj' will be null if invoked as constructor, in which case instance of Scriptable should be returnedIdScriptableObject.execIdCall(IdFunctionObject f, Context cx, VarScope scope, Scriptable thisObj, Object[] args) 'thisObj' will be null if invoked as constructor, in which case * instance of Scriptable should be returned.NativeJavaTopPackage.execIdCall(IdFunctionObject f, Context cx, VarScope scope, Scriptable thisObj, Object[] args) static voidScriptRuntime.fillObjectLiteral(Scriptable object, Object[] propertyIds, Object[] propertyValues, int[] getterSetters, Context cx, VarScope scope) intRegExpProxy.find_split(Context cx, VarScope scope, String target, String separator, Scriptable re, int[] ip, int[] matchlen, boolean[] matched, String[][] parensp) Delegator.get(int index, Scriptable start) Delegator.get(String name, Scriptable start) Delegator.get(Symbol key, Scriptable start) IdScriptableObject.get(String name, Scriptable start) IdScriptableObject.get(Symbol key, Scriptable start) ImporterTopLevel.ImporterGlobalThis.get(String name, Scriptable start) NativeArray.get(int index, Scriptable start) NativeJavaArray.get(int index, Scriptable start) NativeJavaArray.get(String id, Scriptable start) NativeJavaArray.get(Symbol key, Scriptable start) NativeJavaClass.get(String name, Scriptable start) NativeJavaList.get(int index, Scriptable start) NativeJavaList.get(String name, Scriptable start) NativeJavaList.get(Symbol key, Scriptable start) NativeJavaMap.get(int index, Scriptable start) NativeJavaMap.get(String name, Scriptable start) NativeJavaMap.get(Symbol key, Scriptable start) NativeJavaObject.get(int index, Scriptable start) NativeJavaObject.get(String name, Scriptable start) NativeJavaObject.get(Symbol key, Scriptable start) NativeJavaPackage.get(int index, Scriptable start) NativeJavaPackage.get(String id, Scriptable start) ScopeWrapper.get(String name, Scriptable start) Scriptable.get(int index, Scriptable start) Get a property from the object selected by an integral index.Scriptable.get(String name, Scriptable start) Get a named property from the object.default ObjectScriptable.get(Symbol key, Scriptable start) ScriptableObject.get(int index, Scriptable start) Returns the value of the indexed property or NOT_FOUND.SymbolScriptable.get(Symbol key, Scriptable start) Return the value of the property with the specified key, or NOT_FOUND.static Object[]ScriptRuntime.getArrayElements(Context cx, Scriptable object) final intSlotMapOwner.getAttributes(int index, Scriptable start) Deprecated.final intSlotMapOwner.getAttributes(String name, Scriptable start) Deprecated.static ObjectScriptableObject.getDefaultValue(Scriptable object, Class<?> typeHint) final Object[]Context.getElements(Scriptable object) Get the elements of a JavaScript array.static FunctionJavaAdapter.getFunction(Scriptable obj, String functionName) JSFunction.getFunctionThis(Scriptable functionThis) ScriptableObject.getGetterOrSetter(String name, int index, Scriptable scope, boolean isSetter) Get the getter or setter for a given property.longArrayLikeAbstractOperations.LengthAccessor.getLength(Context cx, Scriptable o) static longNativeArray.getLengthProperty(Context cx, Scriptable obj) static ObjectScriptRuntime.getObjectElem(Scriptable obj, Object elem, Context cx) static ObjectScriptRuntime.getObjectIndex(Scriptable obj, int index, Context cx) static ObjectScriptRuntime.getObjectProp(Scriptable obj, String property, Context cx) static ObjectScriptableObject.getProperty(Scriptable obj, int index) Gets an indexed property from an object or any object in its prototype chain.static ObjectScriptableObject.getProperty(Scriptable obj, String name) Gets a named property from an object or any object in its prototype chain.static ObjectScriptableObject.getProperty(Scriptable obj, Symbol key) This is a version of getProperty that works with Symbols.static Object[]ScriptableObject.getPropertyIds(Scriptable obj) Returns an array of all ids from an object and its prototypes.static ObjectScriptRuntime.getSuperElem(Object elem, Scriptable superScriptable, Scriptable thisScriptable) static ObjectScriptableObject.getSuperProperty(Scriptable superObj, Scriptable thisObj, int index) Gets an indexed property from super, walking the super's prototype chain, but passing the correct "this" to getter slots.static ObjectScriptableObject.getSuperProperty(Scriptable superObj, Scriptable thisObj, String name) Gets a named property from super, walking the super's prototype chain, but passing the correct "this" to getter slots.static ObjectScriptableObject.getSuperProperty(Scriptable superObj, Scriptable thisObj, Symbol key) This is a version of getSuperProperty that works with Symbols.static <T> TScriptableObject.getTypedProperty(Scriptable s, int index, Class<T> type) Gets an indexed property from an object or any object in its prototype chain and coerces it to the requested Java type.static <T> TScriptableObject.getTypedProperty(Scriptable s, String name, Class<T> type) Gets a named property from an object or any object in its prototype chain and coerces it to the requested Java type.AccessorSlot.getValue(Scriptable start) BuiltInSlot.Descriptor.getValue(CompactSlot<BuiltInSlot.Descriptor<T>, Scriptable, T> slot, Scriptable start) LambdaAccessorSlot.getValue(Scriptable owner) LambdaSlot.getValue(Scriptable start) booleanDelegator.has(int index, Scriptable start) booleanDelegator.has(String name, Scriptable start) booleanDelegator.has(Symbol key, Scriptable start) booleanIdScriptableObject.has(String name, Scriptable start) booleanIdScriptableObject.has(Symbol key, Scriptable start) booleanImporterTopLevel.ImporterGlobalThis.has(String name, Scriptable start) booleanNativeArray.has(int index, Scriptable start) booleanNativeJavaArray.has(int index, Scriptable start) booleanNativeJavaArray.has(String id, Scriptable start) booleanNativeJavaArray.has(Symbol key, Scriptable start) booleanNativeJavaClass.has(String name, Scriptable start) booleanNativeJavaList.has(int index, Scriptable start) booleanNativeJavaList.has(String name, Scriptable start) booleanNativeJavaList.has(Symbol key, Scriptable start) booleanNativeJavaMap.has(int index, Scriptable start) booleanNativeJavaMap.has(String name, Scriptable start) booleanNativeJavaMap.has(Symbol key, Scriptable start) booleanNativeJavaObject.has(int index, Scriptable start) booleanNativeJavaObject.has(String name, Scriptable start) booleanNativeJavaObject.has(Symbol key, Scriptable start) booleanNativeJavaPackage.has(int index, Scriptable start) booleanNativeJavaPackage.has(String id, Scriptable start) booleanScopeWrapper.has(String name, Scriptable start) booleanScriptable.has(int index, Scriptable start) Indicates whether or not an indexed property is defined in an object.booleanScriptable.has(String name, Scriptable start) Indicates whether or not a named property is defined in an object.default booleanScriptable.has(Symbol key, Scriptable start) booleanScriptableObject.has(int index, Scriptable start) Returns true if the property index is defined.booleanSymbolScriptable.has(Symbol key, Scriptable start) Return true if the specified property exists.booleanBaseFunction.hasInstance(Scriptable instance) Implements the instanceof operator for JavaScript Function objects.booleanBoundFunction.hasInstance(Scriptable instance) booleanDelegator.hasInstance(Scriptable instance) booleanNativeIterator.StopIteration.hasInstance(Scriptable instance) booleanNativeJavaArray.hasInstance(Scriptable value) booleanNativeJavaClass.hasInstance(Scriptable value) Determines if prototype is a wrapped Java object and performs a Java "instanceof".booleanNativeJavaObject.hasInstance(Scriptable value) booleanScriptable.hasInstance(Scriptable instance) The instanceof operator.booleanScriptableObject.hasInstance(Scriptable instance) Implements the instanceof operator.static booleanScriptRuntime.hasObjectElem(Scriptable target, Object elem, Context cx) static booleanScriptableObject.hasProperty(Scriptable obj, int index) Returns whether an indexed property is defined in an object or any object in its prototype chain.static booleanScriptableObject.hasProperty(Scriptable obj, String name) Returns whether a named property is defined in an object or any object in its prototype chain.static booleanScriptableObject.hasProperty(Scriptable obj, Symbol key) A version of hasProperty for properties with Symbol keys.voidImporterTopLevel.importPackage(Context cx, Scriptable thisObj, Object[] args, Function funObj) Deprecated.Kept only for compatibility.static booleanScriptRuntime.isArrayLike(Scriptable obj) booleanRegExpProxy.isRegExp(Scriptable obj) static voidNativeObject.js_protoSetter(Scriptable thisObj, Object proto) static booleanScriptRuntime.jsDelegatesTo(Scriptable lhs, Scriptable rhs) Delegates tostatic longAbstractEcmaObjectOperations.lengthOfArrayLike(Context cx, Scriptable o) LengthOfArrayLike ( obj )final voidIdFunctionObject.markAsConstructor(Scriptable prototypeProperty) static booleanAbstractEcmaObjectOperations.ordinarySet(Context cx, VarScope s, ScriptableObject o, Object p, Object v, Scriptable receiver) Implements the OrdinarySetWithOwnDescriptor abstract operation.voidDelegator.put(int index, Scriptable start, Object value) voidDelegator.put(String name, Scriptable start, Object value) voidDelegator.put(Symbol symbol, Scriptable start, Object value) voidIdScriptableObject.put(String name, Scriptable start, Object value) voidIdScriptableObject.put(Symbol key, Scriptable start, Object value) voidNativeArray.put(int index, Scriptable start, Object value) voidNativeArray.put(String id, Scriptable start, Object value) voidNativeJavaArray.put(int index, Scriptable start, Object value) voidNativeJavaArray.put(String id, Scriptable start, Object value) voidNativeJavaClass.put(String name, Scriptable start, Object value) voidNativeJavaList.put(int index, Scriptable start, Object value) voidNativeJavaList.put(String name, Scriptable start, Object value) voidNativeJavaMap.put(int index, Scriptable start, Object value) voidNativeJavaMap.put(String name, Scriptable start, Object value) voidNativeJavaObject.put(int index, Scriptable start, Object value) voidNativeJavaObject.put(String name, Scriptable start, Object value) voidNativeJavaObject.put(Symbol symbol, Scriptable start, Object value) voidNativeJavaPackage.put(int index, Scriptable start, Object value) voidNativeJavaPackage.put(String id, Scriptable start, Object value) voidNativeSymbol.put(int index, Scriptable start, Object value) voidNativeSymbol.put(String name, Scriptable start, Object value) voidNativeSymbol.put(Symbol key, Scriptable start, Object value) voidScopeWrapper.put(String name, Scriptable start, Object value) voidScriptable.put(int index, Scriptable start, Object value) Sets an indexed property in this object.voidScriptable.put(String name, Scriptable start, Object value) Sets a named property in this object.default voidScriptable.put(Symbol key, Scriptable start, Object value) voidScriptableObject.put(int index, Scriptable start, Object value) Sets the value of the indexed property, creating it if need be.voidScriptableObject.put(String name, Scriptable start, Object value) Sets the value of the named property, creating it if need be.voidScriptableObject.put(Symbol key, Scriptable start, Object value) Implementation of put required by SymbolScriptable objects.voidSymbolScriptable.put(Symbol key, Scriptable start, Object value) Add a new property to to the object.voidScriptableObject.putConst(Context cx, String name, Scriptable start, Object value) Sets the value of the named const property, creating it if need be.static voidScriptableObject.putConstProperty(Context cx, Scriptable obj, String name, Object value) Puts a named property in an object or in an object in its prototype chain.protected booleanScriptableObject.putOwnProperty(int index, Scriptable start, Object value, boolean isThrow) Set the value of the named property, and return true if the property is actually defined and can be set.protected booleanScriptableObject.putOwnProperty(String name, Scriptable start, Object value, boolean isThrow) Set the value of the named property, and return true if the property is actually defined and can be set.protected booleanScriptableObject.putOwnProperty(Symbol key, Scriptable start, Object value, boolean isThrow) Set the value of the named property, and return true if the property is actually defined and can be set.static voidScriptableObject.putProperty(Scriptable obj, int index, Object value) Puts an indexed property in an object or in an object in its prototype chain.static voidScriptableObject.putProperty(Scriptable obj, String name, Object value) Puts a named property in an object or in an object in its prototype chain.static voidScriptableObject.putProperty(Scriptable obj, Symbol key, Object value) This is a version of putProperty for Symbol keys.static voidScriptableObject.putSuperProperty(Scriptable superObj, Scriptable thisObj, int index, Object value) Variant of putProperty to handle super[index] = value where index is integerstatic voidScriptableObject.putSuperProperty(Scriptable superObj, Scriptable thisObj, String name, Object value) Variant of putProperty to handle super.name = valuestatic voidScriptableObject.putSuperProperty(Scriptable superObj, Scriptable thisObj, Symbol key, Object value) Variant of putProperty to handle super[key] = value where key is a symbolstatic ObjectJavaAdapter.readAdapterObject(Scriptable self, ObjectInputStream in) static voidScriptableObject.redefineProperty(Context cx, Scriptable obj, String name, boolean isConst) If hasProperty(obj, name) would return true, then if the property that was found is compatible with the new property, this method just returns.NativeFunction.resumeGenerator(Context cx, Scriptable scope, int operation, Object state, Object value) Resume execution of a suspended generator.voidSlotMapOwner.setAttributes(int index, Scriptable start, int attributes) Deprecated.final voidSlotMapOwner.setAttributes(String name, Scriptable start, int attributes) Deprecated.voidDelegator.setDelegee(Scriptable obj) Set the delegee.voidBaseFunction.setHomeObject(Scriptable homeObject) voidCompilerEnvirons.setHomeObject(Scriptable homeObject) voidJSFunction.setHomeObject(Scriptable homeObject) voidWithScope.setObject(Scriptable obj) static ObjectScriptRuntime.setObjectElem(Scriptable obj, Object elem, Object value, Context cx) static ObjectScriptRuntime.setObjectIndex(Scriptable obj, int index, Object value, Context cx) static ObjectScriptRuntime.setObjectProp(Scriptable obj, String property, Object value, Context cx) voidDelegator.setPrototype(Scriptable prototype) voidNativeArray.setPrototype(Scriptable p) voidNativeJavaObject.setPrototype(Scriptable m) Sets the prototype of the object.voidScriptable.setPrototype(Scriptable prototype) Set the prototype of the object.voidScriptableObject.setPrototype(Scriptable m) Sets the prototype of the object.static ObjectScriptRuntime.setSuperElem(Scriptable superScriptable, Scriptable thisScriptable, Object elem, Object value, Context cx) static ObjectScriptRuntime.setSuperIndex(Scriptable superScriptable, Scriptable thisScriptable, int index, Object value, Context cx) static ObjectScriptRuntime.setSuperProp(Scriptable superScriptable, Scriptable thisScriptable, String property, Object value, Context cx) booleanAccessorSlot.setValue(Object value, Scriptable owner, Scriptable start, boolean isThrow) booleanBuiltInSlot.Descriptor.setValue(CompactSlot<BuiltInSlot.Descriptor<T>, Scriptable, T> slot, Object value, Scriptable owner, Scriptable start, boolean isThrow) booleanLambdaAccessorSlot.setValue(Object value, Scriptable scope, Scriptable start, boolean isThrow) booleanLambdaSlot.setValue(Object value, Scriptable owner, Scriptable start, boolean isThrow) voidBuiltInSlot.setValueFromDescriptor(Object value, Scriptable owner, Scriptable start, boolean isThrow) static booleanInterpreterV2.shouldOverrideNativeCall(Object securityDomain, Callable fun, Scriptable funThisObj) static ScriptableScriptRuntime.toIterator(Context cx, Scriptable obj, boolean keyOnly) Method parameters in org.htmlunit.corejs.javascript with type arguments of type ScriptableModifier and TypeMethodDescriptionprotected voidBaseFunction.createPrototypeProperty(CompoundOperationMap<Scriptable> compoundOp) voidNativeArray.deleteInternal(CompoundOperationMap<Scriptable> compoundOp, int index) voidNativeArray.deleteInternal(CompoundOperationMap<Scriptable> compoundOp, String id) Object[]NativeArray.getIds(CompoundOperationMap<Scriptable> map, boolean nonEnumerable, boolean getSymbols) BuiltInSlot.Descriptor.getValue(CompactSlot<BuiltInSlot.Descriptor<T>, Scriptable, T> slot, Scriptable start) voidBuiltInSlot.Descriptor.setAttributes(CompactSlot<BuiltInSlot.Descriptor<T>, Scriptable, T> slot, int value) booleanBuiltInSlot.Descriptor.setValue(CompactSlot<BuiltInSlot.Descriptor<T>, Scriptable, T> slot, Object value, Scriptable owner, Scriptable start, boolean isThrow) SlotMapDescriptor.Builder.withSlot(CompactSlot.Descriptor<?, Scriptable, O> descriptor, int attributes) Constructors in org.htmlunit.corejs.javascript with parameters of type ScriptableModifierConstructorDescriptionBaseFunction(VarScope scope, Scriptable prototype) BoundFunction(Context cx, VarScope scope, Callable targetFunction, Scriptable boundThis, Object[] boundArgs) CallFrameV2(Context cx, VarScope callerScope, Object thisObj, Object newTarget, Scriptable homeObj, Object[] args, double[] doubleArgs, int argShift, int argCount, ScriptOrFn<?> fnOrScript, CallFrameV2 parentFrame, ACallFrame<?, ?> previousInterpreterFrame) Delegator(Scriptable obj) Create a new Delegator that forwards requests to a delegee Scriptable object.EcmaError(Scriptable nativeError, String sourceName, int lineNumber, int columnNumber, String lineSource) Deprecated.EcmaError error instances should not be constructed explicitly since they are generated by the engine.IdScriptableObject(VarScope scope, Scriptable prototype) JSFunction(Context cx, VarScope scope, JSDescriptor<JSFunction> descriptor, Object lexicalThis, Object lexicalNewTarget, Scriptable homeObject) JSScript(JSDescriptor<JSScript> descriptor, Scriptable homeObject) ScriptableObject(VarScope scope, Scriptable prototype) Synchronizer(Scriptable obj) Create a new synchronized function from an existing one.Synchronizer(Scriptable obj, Object syncObject) Create a new synchronized function from an existing one using an explicit object as synchronization object.WithScope(VarScope parentScope, Scriptable obj) -
Uses of Scriptable in org.htmlunit.corejs.javascript.commonjs.module
Classes in org.htmlunit.corejs.javascript.commonjs.module that implement ScriptableModifier and TypeClassDescriptionclassImplements the require() function as defined by Common JS modules.Methods in org.htmlunit.corejs.javascript.commonjs.module that return ScriptableModifier and TypeMethodDescriptionRequire.requireMain(Context cx, String mainModuleId) Calling this method establishes a module as being the main module of the program to which this require() instance belongs.Methods in org.htmlunit.corejs.javascript.commonjs.module with parameters of type ScriptableModifier and TypeMethodDescriptionModuleScriptProvider.getModuleScript(Context cx, String moduleId, URI moduleUri, URI baseUri, Scriptable paths) Returns a module script. -
Uses of Scriptable in org.htmlunit.corejs.javascript.commonjs.module.provider
Methods in org.htmlunit.corejs.javascript.commonjs.module.provider with parameters of type ScriptableModifier and TypeMethodDescriptionCachingModuleScriptProviderBase.getModuleScript(Context cx, String moduleId, URI moduleUri, URI baseUri, Scriptable paths) MultiModuleScriptProvider.getModuleScript(Context cx, String moduleId, URI uri, URI base, Scriptable paths) SoftCachingModuleScriptProvider.getModuleScript(Context cx, String moduleId, URI uri, URI base, Scriptable paths) ModuleSourceProvider.loadSource(String moduleId, Scriptable paths, Object validator) Returns the script source of the requested module.ModuleSourceProviderBase.loadSource(String moduleId, Scriptable paths, Object validator) -
Uses of Scriptable in org.htmlunit.corejs.javascript.regexp
Classes in org.htmlunit.corejs.javascript.regexp that implement ScriptableModifier and TypeClassDescriptionclassThis class implements the RegExp native object.final classMethods in org.htmlunit.corejs.javascript.regexp that return ScriptableModifier and TypeMethodDescriptionRegExpImpl.wrapRegExp(Context cx, VarScope scope, Object compiled) Methods in org.htmlunit.corejs.javascript.regexp with parameters of type ScriptableModifier and TypeMethodDescriptionintRegExpImpl.find_split(Context cx, VarScope scope, String target, String separator, Scriptable reObj, int[] ip, int[] matchlen, boolean[] matched, String[][] parensp) booleanRegExpImpl.isRegExp(Scriptable obj) static ObjectNativeRegExp.regExpExec(Scriptable regexp, String string, Context cx, VarScope scope) Constructors in org.htmlunit.corejs.javascript.regexp with parameters of type ScriptableModifierConstructorDescriptionNativeRegExpStringIterator(VarScope scope, Scriptable regexp, String string, boolean global, boolean fullUnicode) -
Uses of Scriptable in org.htmlunit.corejs.javascript.tools.shell
Classes in org.htmlunit.corejs.javascript.tools.shell that implement ScriptableModifier and TypeClassDescriptionclassEnvironment, intended to be instantiated at global scope, provides a natural way to access System properties from JavaScript.Methods in org.htmlunit.corejs.javascript.tools.shell with parameters of type ScriptableModifier 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) Environment.get(String name, Scriptable start) booleanEnvironment.has(String name, Scriptable start) 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.voidEnvironment.put(String name, Scriptable start, Object value) 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. -
Uses of Scriptable in org.htmlunit.corejs.javascript.typedarrays
Classes in org.htmlunit.corejs.javascript.typedarrays that implement ScriptableModifier and TypeClassDescriptionclassA NativeArrayBuffer is the backing buffer for a typed array.classThis class is the abstract parent for all views of the array.classAn array view that stores 64-bit quantities and implements the JavaScript "Float64Array" interface.classclassAn array view that stores 64-bit quantities and implements the JavaScript "Float64Array" interface.classThis class represents the JavaScript "DataView" interface, which allows direct manipulations of the bytes in a NativeArrayBuffer.classAn array view that stores 32-bit quantities and implements the JavaScript "Float16Array" interface.classAn array view that stores 32-bit quantities and implements the JavaScript "Float32Array" interface.classAn array view that stores 64-bit quantities and implements the JavaScript "Float64Array" interface.classAn array view that stores 16-bit quantities and implements the JavaScript "Int16Array" interface.classAn array view that stores 32-bit quantities and implements the JavaScript "Int32Array" interface.classAn array view that stores 8-bit quantities and implements the JavaScript "Int8Array" interface.classThis class is the abstract parent for all of the various typed arrays.classAn array view that stores 16-bit quantities and implements the JavaScript "Uint16Array" interface.classAn array view that stores 32-bit quantities and implements the JavaScript "Uint32Array" interface.classAn array view that stores 8-bit quantities and implements the JavaScript "Uint8Array" interface.classAn array view that stores 8-bit quantities and implements the JavaScript "Uint8ClampedArray" interface.Methods in org.htmlunit.corejs.javascript.typedarrays with parameters of type ScriptableModifier and TypeMethodDescriptionNativeTypedArrayView.get(int index, Scriptable start) NativeTypedArrayView.get(String name, Scriptable start) booleanNativeTypedArrayView.has(int index, Scriptable start) booleanNativeTypedArrayView.has(String name, Scriptable start) voidNativeTypedArrayView.put(int index, Scriptable start, Object val) voidNativeTypedArrayView.put(String name, Scriptable start, Object val) NativeTypedArrayView.RealThis.realThis(Scriptable thisObj) -
Uses of Scriptable in org.htmlunit.corejs.javascript.xml
Classes in org.htmlunit.corejs.javascript.xml that implement ScriptableModifier and TypeClassDescriptionclassThis Interface describes what all XML objects (XML, XMLList) should have in common.Methods in org.htmlunit.corejs.javascript.xml that return ScriptableModifier and TypeMethodDescriptionabstract ScriptableXMLObject.getExtraMethodSource(Context cx) Return an additional object to look for methods that runtime should consider during method search.Constructors in org.htmlunit.corejs.javascript.xml with parameters of type Scriptable