Uses of Class
org.htmlunit.corejs.javascript.Context
Packages that use Context
Package
Description
-
Uses of Context in org.htmlunit.corejs.javascript
Methods in org.htmlunit.corejs.javascript that return ContextModifier and TypeMethodDescriptionstatic ContextContext.enter()Same as callingContextFactory.enterContext()on the global ContextFactory instance.static ContextDeprecated.final ContextContextFactory.enter()Deprecated.useContextFactory.enterContext()insteadContextFactory.enterContext()Get a context associated with the current thread, creating one if need be.final ContextContextFactory.enterContext(Context cx) Get a Context associated with the current thread, using the given Context if need be.static ContextContext.getCurrentContext()Get the current Context.protected ContextContextFactory.makeContext()Create newContextinstance to be associated with the current thread.Methods in org.htmlunit.corejs.javascript with parameters of type ContextModifier and TypeMethodDescriptionstatic Objectstatic voidInterpreterV2.addInstructionCount(Context cx, CallFrameV2 frame, int extra) static voidScriptRuntime.addInstructionCount(Context cx, int instructionsToAdd) static voidScriptRuntimeES6.addSymbolSpecies(Context cx, VarScope scope, ScriptableObject constructor) Registers the symbol[Symbol.species]on the given constructor function.static voidScriptRuntimeES6.addSymbolUnscopables(Context cx, VarScope scope, ScriptableObject constructor, LazilyLoadedCtor value) Registers the symbol[Symbol.unscopables]on the given constructor function.ClassDescriptor.ValueCreator.apply(Context cx, VarScope scope, ScriptableObject obj) static ObjectScriptRuntime.applyOrCall(boolean isApply, Context cx, VarScope scope, Object thisObj, Object[] args) Function.prototype.apply and Function.prototype.callstatic VarScopeReturns the object in the scope chain that has a given property.ClassDescriptor.buildConstructor(Context cx, VarScope scope, ScriptableObject proto, boolean sealed) Build a constructor from this descriptor.ClassDescriptor.buildConstructor(Context cx, VarScope scope, ScriptableObject proto, boolean sealed, BiConsumer<Context, JSFunction> customStep) Build a constructor from this descriptor.LambdaAccessorSlot.buildPropertyDescriptor(Context cx) The method exists avoid changing the getPropertyDescriptor signature and at the same time to make it explicit that we don't use Scriptable scope parameter of getPropertyDescriptor, since it can be problematic when called from inside ThreadSafeSlotMapContainer::compute lambda which can lead to deadlocks.final ObjectShould be overridden.Perform the call.Call the function.Performs conversions on argument types if needed and invokes the underlying Java method or constructor.abstract ObjectPolicySecurityController.SecureCaller.call(Callable callable, Context cx, VarScope scope, Object thisObj, Object[] args) static ObjectDeprecated.The method is only present for compatibility.A convenience method to coerce the result to a Callable as in "getCallable()", then call the result with ths stored "this".abstract ObjectSecureCaller.call(Callable callable, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) static ObjectScriptRuntime.callIterator(Object obj, Context cx, VarScope scope) Given an object, get the "Symbol.iterator" element, throw a TypeError if it is not present, then call the result, (throwing a TypeError if the result is not a function), and return that result, whatever it is.static ObjectScriptableObject.callMethod(Context cx, Scriptable obj, String methodName, Object[] args) Call a method of an object.static RefPerform function call in reference context.static ObjectScriptRuntime.callSpecial(Context cx, Callable fun, Scriptable thisObj, Object[] args, VarScope scope, Object callerThis, int callType, String filename, int lineNumber, boolean isOptionalChainingCall) PolicySecurityController.callWithDomain(Object securityDomain, Context cx, Callable callable, VarScope scope, Object thisObj, Object[] args) SecurityController.callWithDomain(Object securityDomain, Context cx, Callable callable, VarScope scope, Object thisObj, Object[] args) CallCallable.call(Context cx, VarScope scope, Scriptable thisObj, Object[] args)of callable under restricted security domain where an action is allowed only if it is allowed according to the Java stack on the moment of the execWithDomain call and securityDomain.SecurityController.callWithDomain(Object securityDomain, Context cx, Script script, VarScope scope, Object thisObj, Object[] args) static NativeContinuationInterpreter.captureContinuation(Context cx) static RegExpProxyScriptRuntime.checkRegExpProxy(Context cx) static ObjectArrayLikeAbstractOperations.coercibleIterativeMethod(Context cx, ArrayLikeAbstractOperations.IterativeOperation operation, VarScope scope, Object o, Object[] args, long length) RegExpProxy.compileRegExp(Context cx, String source, String flags) Call 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 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.voidContextFactory.Listener.contextCreated(Context cx) Notify about newly createdContextobject.voidContextListener.contextEntered(Context cx) Deprecated.Rhino runtime never calls the method.voidContextListener.contextExited(Context cx) Deprecated.Rhino runtime never calls the method.voidContextFactory.Listener.contextReleased(Context cx) Notify that the specifiedContextinstance is no longer associated with the current thread.static ObjectFunctionObject.convertArg(Context cx, VarScope scope, Object arg, int typeTag) static ObjectFunctionObject.convertArg(Context cx, VarScope scope, Object arg, int typeTag, boolean isNullable) static ObjectFunctionObject.convertArg(Context cx, VarScope scope, Object arg, Class<?> desired) Deprecated.UseFunctionObject.getTypeTag(Class)andFunctionObject.convertArg(Context, VarScope, Object, int, boolean)for type conversion.static NewLiteralStoragestatic NewLiteralStoragestatic VarScopeScriptRuntime.createArrowFunctionActivation(JSFunction funObj, Context cx, VarScope scope, Object[] args, boolean argsHasRest, boolean requiresArgumentObject) static JSFunctionJSFunction.createFunction(Context cx, VarScope scope, JSDescriptor<JSFunction> desc, Scriptable homeObject, Object staticSecurityDomain) Create function compiled from Function(...) constructor.static VarScopeScriptRuntime.createFunctionActivation(JSFunction funObj, Context cx, VarScope scope, Object[] args, boolean argsHasRest, boolean requiresArgumentObject) Evaluator.createFunctionObject(Context cx, VarScope scope, CompilationResult<JSFunction> compiled, Object staticSecurityDomain) Create a function object.Interpreter.createFunctionObject(Context cx, VarScope scope, CompilationResult<JSFunction> compiled, Object staticSecurityDomain) InterpreterV2.createFunctionObject(Context cx, VarScope scope, CompilationResult<JSFunction> compiled, Object staticSecurityDomain) static TopLevelImporterTopLevel.createIsolate(Context cx, TopLevel parent) 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) voidAInterpreter.DebugScope.defineConst(Context cx, String name, VarScope start) voidConstProperties.defineConst(Context cx, String name, T start) Reserves a definition spot for a const.voidScopeObject.defineConst(Context cx, String name, VarScope start) voidScriptableObject.defineConst(Context cx, String name, Scriptable start) static voidScriptRuntime.defineConst(Context cx, VarScope scope, String name) Creates an uninitialized const binding, to be initialized by its declaration.voidTopLevel.defineConst(Context cx, String name, VarScope start) voidWithScope.defineConst(Context cx, String name, VarScope start) static <T extends PropHolder<T>>
voidScriptableObject.defineConstProperty(Context cx, T destination, String propertyName) Utility method to add properties to arbitrary Scriptable object.voidScriptableObject.defineOwnProperties(Context cx, ScriptableObject props) Defines one or more properties on this object.protected booleanIdScriptableObject.defineOwnProperty(Context cx, Object key, ScriptableObject.DescriptorInfo desc, boolean checkValid) protected booleanNativeArray.defineOwnProperty(Context cx, Object id, ScriptableObject.DescriptorInfo desc, boolean checkValid) booleanScriptableObject.defineOwnProperty(Context cx, Object id, ScriptableObject desc) Defines a property on an object.booleanScriptableObject.defineOwnProperty(Context cx, Object id, ScriptableObject.DescriptorInfo desc) protected booleanScriptableObject.defineOwnProperty(Context cx, Object id, ScriptableObject.DescriptorInfo desc, boolean checkValid) Defines a property on an object.voidLambdaConstructor.defineProperty(Context cx, String name, ScriptableObject.LambdaGetterFunction getter, int attributes) voidLambdaConstructor.defineProperty(Context cx, String name, ScriptableObject.LambdaGetterFunction getter, ScriptableObject.LambdaSetterFunction setter, int attributes) voidScriptableObject.defineProperty(Context cx, VarScope scope, String name, ScriptableObject.LambdaGetterFunction getter, int attributes) voidScriptableObject.defineProperty(Context cx, VarScope scope, String name, ScriptableObject.LambdaGetterFunction getter, ScriptableObject.LambdaSetterFunction setter, int attributes) Define a property on this object that is implemented using lambda functions accepting Scriptable `this` object as first parameter.voidScriptableObject.defineProperty(Context cx, VarScope scope, Symbol key, ScriptableObject.LambdaGetterFunction getter, ScriptableObject.LambdaSetterFunction setter, int attributes) voidLambdaConstructor.definePrototypeProperty(Context cx, String name, ScriptableObject descriptor) voidLambdaConstructor.definePrototypeProperty(Context cx, String name, ScriptableObject.LambdaGetterFunction getter) voidLambdaConstructor.definePrototypeProperty(Context cx, String name, ScriptableObject.LambdaGetterFunction getter, int attributes) Define a property on the prototype using a function.voidLambdaConstructor.definePrototypeProperty(Context cx, String name, ScriptableObject.LambdaGetterFunction getter, ScriptableObject.LambdaSetterFunction setter) voidLambdaConstructor.definePrototypeProperty(Context cx, String name, ScriptableObject.LambdaGetterFunction getter, ScriptableObject.LambdaSetterFunction setter, int attributes) Define a property on the prototype using functions for getter and setter.voidLambdaConstructor.definePrototypeProperty(Context cx, Symbol key, ScriptableObject descriptor) voidLambdaConstructor.definePrototypeProperty(Context cx, Symbol key, ScriptableObject.LambdaGetterFunction getter, int attributes) voidLambdaConstructor.definePrototypeProperty(Context cx, Symbol name, ScriptableObject.LambdaGetterFunction getter, ScriptableObject.LambdaSetterFunction setter) voidLambdaConstructor.definePrototypeProperty(Context cx, Symbol key, ScriptableObject.LambdaGetterFunction getter, ScriptableObject.LambdaSetterFunction setter, int attributes) booleanstatic ObjectDeprecated.static ObjectDeprecated.static ObjectThe delete operatorstatic <T extends PropHolder<T>>
booleanScriptRuntime.deleteObjectElem(T target, Object elem, Context cx) static voidScriptRuntime.discardLastStoredScriptable(Context cx) Deprecated, for removal: This API element is subject to removal in a future version.static booleanInterpreterV2.doEquals(Context cx, CallFrameV2 frame, Operand left, Operand right) static ScriptableScriptRuntime.doObjectRest(Context cx, VarScope scope, Object source, Object[] excludeKeys) Helper for object rest properties in destructuring.static booleanInterpreterV2.doShallowEquals(Context cx, CallFrameV2 frame, Operand left, Operand right) protected ObjectContextFactory.doTopCall(Callable callable, Context cx, VarScope scope, Object thisObj, Object[] args) Execute top call to script or function.protected ObjectExecute top call to script.static ObjectScriptRuntime.doTopCall(Callable callable, Context cx, VarScope scope, Object thisObj, Object[] args) Deprecated.static ObjectScriptRuntime.doTopCall(Callable callable, Context cx, VarScope scope, Object thisObj, Object[] args, boolean isTopLevelStrict) static ObjectDeprecated.static ObjectScriptRuntime.doTopCall(Script script, Context cx, VarScope scope, Object thisObj, boolean isTopLevelStrict) static ObjectScriptRuntime.elemIncrDecr(Object obj, Object index, Context cx, int incrDecrMask) Deprecated.static ObjectScriptRuntime.elemIncrDecr(Object obj, Object index, Context cx, VarScope scope, int incrDecrMask) static ContextDeprecated.useContextFactory.enterContext(Context)instead as this method relies on usage of a static singleton "global" ContextFactory.static voidScriptRuntime.enterActivationFunction(Context cx, VarScope scope) final ContextContextFactory.enterContext(Context cx) Get a Context associated with the current thread, using the given Context if need be.protected static voidAInterpreter.enterFrame(Context cx, ACallFrame<?, ?> frame, Object[] args, boolean continuationRestart) static booleanScriptRuntime.enterFunctionStrictness(Context cx, boolean functionIsStrict) static VarScopestatic Objectstatic ObjectDeprecated.static ObjectDeprecated.static Objectstatic Booleanstatic Objectstatic StringScriptRuntime.escapeAttributeValue(Object value, Context cx) Escapes the reserved characters in a value of an attributestatic StringScriptRuntime.escapeTextValue(Object value, Context cx) Escapes the reserved characters in a value of a text nodestatic ObjectScriptRuntime.evalSpecial(Context cx, VarScope scope, Object thisArg, Object[] args, String filename, int lineNumber, boolean isStrict) The eval function property of the global object.default ObjectDeprecated.Execute the script.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) JSCodeExec.execute(Context cx, T executableObject, Object newTarget, VarScope scope, Object thisObj, Object[] args) Executes the code represented by this object.SecurityController.execWithDomain(Context cx, VarScope scope, Script script, Object securityDomain) Deprecated.The application should not override this method and instead overrideSecurityController.callWithDomain(Object securityDomain, Context cx, Callable callable, VarScope scope, Scriptable thisObj, Object[] args).static voidScriptRuntime.exitActivationFunction(Context cx) static voidScriptRuntime.exitFunctionStrictness(Context cx, boolean parentWasStrict) 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) static Stringabstract Objectstatic ScriptableScriptRuntime.getApplyOrCallThis(Context cx, VarScope scope, Object arg0, int l, Function target) Object[]CallFrameV2.getArguments(Context cx, Operand[] arguments) static Object[]ScriptRuntime.getArrayElements(Context cx, Scriptable object) static FunctionTopLevel.getBuiltinCtor(Context cx, VarScope scope, TopLevel.Builtins type) Static helper method to get a built-in object constructor with the giventypefrom the givenscope.static ScriptRuntime.LookupResultScriptRuntime.getElemAndThis(Object obj, Object elem, Context cx, VarScope scope) Prepare for calling obj[id](...): return function corresponding to obj[id] and make obj properly converted to Scriptable available in the result.static ScriptRuntime.LookupResultScriptRuntime.getElemAndThisOptional(Object obj, Object elem, Context cx, VarScope scope) static CallableScriptRuntime.getElemFunctionAndThis(Object obj, Object elem, Context cx) Deprecated.static CallableScriptRuntime.getElemFunctionAndThis(Object obj, Object elem, Context cx, VarScope scope) Deprecated, for removal: This API element is subject to removal in a future version.static CallableScriptRuntime.getElemFunctionAndThisOptional(Object obj, Object elem, Context cx, VarScope scope) Deprecated, for removal: This API element is subject to removal in a future version.static FunctionScriptRuntime.getExistingCtor(Context cx, VarScope scope, String constructorName) static FunctionScriptRuntime.getExistingCtor(Context cx, VarScope scope, SymbolKey constructorName) static TopLevellongArrayLikeAbstractOperations.LengthAccessor.getLength(Context cx, Scriptable o) static longNativeArray.getLengthProperty(Context cx, Scriptable obj) static ScriptRuntime.LookupResultScriptRuntime.getNameAndThis(String name, Context cx, VarScope scope) Prepare for calling name(...): return function corresponding to name and make current top scope available as part of the result.static ScriptRuntime.LookupResultScriptRuntime.getNameAndThisOptional(String name, Context cx, VarScope scope) static CallableScriptRuntime.getNameFunctionAndThis(String name, Context cx, VarScope scope) Deprecated, for removal: This API element is subject to removal in a future version.static CallableScriptRuntime.getNameFunctionAndThisOptional(String name, Context cx, VarScope scope) Deprecated, for removal: This API element is subject to removal in a future version.static ObjectScriptRuntime.getObjectElem(Object obj, Object elem, Context cx) Deprecated.static ObjectScriptRuntime.getObjectElem(Object obj, Object elem, Context cx, VarScope scope) Call obj.static ObjectScriptRuntime.getObjectElem(Scriptable obj, Object elem, Context cx) static ObjectScriptRuntime.getObjectIndex(Object obj, double dblIndex, Context cx) Deprecated.static ObjectScriptRuntime.getObjectIndex(Object obj, double dblIndex, Context cx, VarScope scope) A cheaper and less general version of the above for well-known argument types.static ObjectScriptRuntime.getObjectIndex(Scriptable obj, int index, Context cx) static ObjectScriptRuntime.getObjectProp(Object obj, String property, Context cx) Deprecated.static ObjectScriptRuntime.getObjectProp(Object obj, String property, Context cx, VarScope scope) Version of getObjectElem when elem is a valid JS identifier name.static ObjectScriptRuntime.getObjectProp(Scriptable obj, String property, Context cx) static ObjectScriptRuntime.getObjectPropNoWarn(Object obj, String property, Context cx) Deprecated.static ObjectScriptRuntime.getObjectPropNoWarn(Object obj, String property, Context cx, VarScope scope) protected ScriptableObject.DescriptorInfoIdScriptableObject.getOwnPropertyDescriptor(Context cx, Object id) protected ScriptableObject.DescriptorInfoNativeArray.getOwnPropertyDescriptor(Context cx, Object id) protected ScriptableObject.DescriptorInfoScriptableObject.getOwnPropertyDescriptor(Context cx, Object id) static ScriptRuntime.LookupResultScriptRuntime.getPropAndThis(Object obj, String property, Context cx, VarScope scope) Prepare for calling obj.property(...): return function corresponding to obj.property and make obj properly converted to Scriptable in the result.static ScriptRuntime.LookupResultScriptRuntime.getPropAndThisOptional(Object obj, String property, Context cx, VarScope scope) static CallableScriptRuntime.getPropFunctionAndThis(Object obj, String property, Context cx) Deprecated.static CallableScriptRuntime.getPropFunctionAndThis(Object obj, String property, Context cx, VarScope scope) Deprecated, for removal: This API element is subject to removal in a future version.static CallableScriptRuntime.getPropFunctionAndThisOptional(Object obj, String property, Context cx, VarScope scope) Deprecated, for removal: This API element is subject to removal in a future version.static RegExpProxyScriptRuntime.getRegExpProxy(Context cx) static Comparator<Object>ArrayLikeAbstractOperations.getSortComparator(Context cx, VarScope scope, Object[] args) ArrayLikeAbstractOperations.getSortComparatorFromArguments(Context cx, VarScope scope, Object[] args) final StringAInterpreter.getSourcePositionFromStack(Context cx, int[] linep) Evaluator.getSourcePositionFromStack(Context cx, int[] linep) Get the source position information by examining the stack.static <T> StringAbstractEcmaStringOperations.getSubstitution(Context cx, VarScope scope, String matched, String str, int position, List<T> capturesList, Object namedCaptures, List<AbstractEcmaStringOperations.ReplacementOperation> replacementTemplate) static ObjectScriptRuntime.getSuperElem(Object superObject, Object elem, Context cx, VarScope scope, Object thisObject) static ObjectScriptRuntime.getSuperIndex(Object superObject, double dblIndex, Context cx, VarScope scope, Object thisObject) static ObjectScriptRuntime.getSuperProp(Object superObject, String property, Context cx, VarScope scope, Object thisObject, boolean noWarn) static ScriptableScriptRuntime.getTemplateLiteralCallSite(Context cx, VarScope scope, Object[] strings, int index) static TopLevelScriptRuntime.getTopCallScope(Context cx) static ScriptRuntime.LookupResultScriptRuntime.getValueAndThis(Object value, Context cx) Prepare for calling <expression>(...): return function corresponding to <expression> and make parent scope of the function available in the result.static ScriptRuntime.LookupResultScriptRuntime.getValueAndThisOptional(Object value, Context cx) static CallableScriptRuntime.getValueFunctionAndThis(Object value, Context cx) Deprecated.UseScriptRuntime.getValueAndThis(Object, Context)insteadstatic CallableScriptRuntime.getValueFunctionAndThisOptional(Object value, Context cx) Deprecated, for removal: This API element is subject to removal in a future version.booleanprotected booleanContextFactory.hasFeature(Context cx, int featureIndex) Implementation ofhasFeature(int featureIndex).static booleanScriptRuntime.hasObjectElem(Scriptable target, Object elem, Context cx) static booleanScriptRuntime.hasTopCall(Context cx) voidImporterTopLevel.importPackage(Context cx, Scriptable thisObj, Object[] args, Function funObj) Deprecated.Kept only for compatibility.static booleanThe in operator.static voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic Objectstatic voidvoidCompilerEnvirons.initFromContext(Context cx) static voidInterpreterV2.initFunction(Context cx, VarScope scope, JSDescriptor<?> parent, int index) static voidInterpreterV2.initFunction(Context cx, VarScope scope, JSDescriptor<?> parent, int index, boolean hoist) static voidScriptRuntime.initFunction(Context cx, VarScope scope, JSFunction function, int type, boolean fromEvalCode) static voidES6Iterator.initialize(ClassDescriptor desc, Context cx, TopLevel scope, ScriptableObject obj, boolean sealed, String name) Initializable.initialize(Context cx, VarScope scope, boolean sealed) Initialize the class in question, returning the new constructor.static TopLevelScriptRuntime.initSafeStandardObjects(Context cx, TopLevel scope, boolean sealed) static voidScriptRuntime.initScript(ScriptOrFn execObj, Object thisObj, Context cx, VarScope scope, boolean evalScript) final voidNativeFunction.initScriptFunction(Context cx, VarScope scope, boolean es6GeneratorFunction, boolean isShorthand) voidImporterTopLevel.initStandardObjects(Context cx, boolean sealed) static TopLevelScriptRuntime.initStandardObjects(Context cx, TopLevel scope, boolean sealed) static booleanScriptRuntime.instanceOf(Object a, Object b, Context cx) The instanceof operator.static ObjectInterpreterV2.interpret(Context cx, CallFrameV2 frame, Object throwable) static <T extends ScriptOrFn<T>>
ObjectInterpreterV2.interpret(T fun, CompilerData<T> data, Context cx, VarScope scope, Object thisObj, Object newTarget, Object[] args) booleanbooleanReturns true if the named property is defined as a const on this object.booleanReturns true if the named property is defined as a const on this object.booleanReturns true if the named property is defined as a const on this object.booleanbooleanstatic booleanAbstractEcmaObjectOperations.isConstructor(Context cx, Object argument) IsConstructor ( argument )protected abstract booleanprotected booleanprotected booleanprotected booleanstatic booleanScriptRuntime.isIteratorDone(Context cx, Object result) Given an iterator result, return true if and only if there is a "done" property that's true.static ObjectArrayLikeAbstractOperations.iterativeMethod(Context cx, Object tag, String name, ArrayLikeAbstractOperations.IterativeOperation operation, VarScope scope, Object thisObj, Object[] args, ArrayLikeAbstractOperations.LengthAccessor lengthAccessor) static ObjectConvenient method to convert java value to its closest representation in JavaScript.static ScriptableScriptRuntime.lastStoredScriptable(Context cx) Deprecated, for removal: This API element is subject to removal in a future version.static longScriptRuntime.lastUint32Result(Context cx) static longAbstractEcmaObjectOperations.lengthOfArrayLike(Context cx, Scriptable o) LengthOfArrayLike ( obj )static booleanScriptRuntime.loadFromIterable(Context cx, VarScope scope, Object arg1, BiConsumer<Object, Object> setter) This is used to handle all the special cases that are required when invoking Object.fromEntries or constructing a NativeMap or NativeWeakMap from an iterable.static Refstatic Refstatic ObjectLooks up a name in the scope chain and returns its value.static ObjectScriptRuntime.nameIncrDecr(VarScope scopeChain, String id, Context cx, int incrDecrMask) static RefScriptRuntime.nameRef(Object namespace, Object name, Context cx, VarScope scope, int memberTypeFlags) static Refstatic ScriptableScriptRuntime.newArrayLiteral(Object[] objects, int[] skipIndices, Context cx, VarScope scope) static ScriptableScriptRuntime.newBuiltinObject(Context cx, VarScope scope, TopLevel.Builtins type, Object[] args) static VarScopeScriptRuntime.newCatchScope(Throwable t, VarScope lastCatchScope, String exceptionName, Context cx, VarScope scope) 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 ObjectScriptRuntime.newSpecial(Context cx, Object fun, Object[] args, VarScope scope, int callType) protected Objectprotected abstract Objectprotected Objectprotected Objectprotected Objectprotected voidContextFactory.observeInstructionCount(Context cx, int instructionCount) Implementation ofobserveInstructionCount(int instructionCount).protected voidContextFactory.onContextCreated(Context cx) protected voidContextFactory.onContextReleased(Context cx) static booleanAbstractEcmaObjectOperations.ordinarySet(Context cx, VarScope s, ScriptableObject o, Object p, Object v, Scriptable receiver) Implements the OrdinarySetWithOwnDescriptor abstract operation.static Object[]ScriptRuntime.padAndRestArguments(Context cx, VarScope scope, Object[] args, int argCount) Helper function for builtin objects that use the varargs form.static ObjectClassDescriptor.populateGlobal(Context cx, VarScope scope, ScriptableObject global, boolean sealed) voidNativeConsole.ConsolePrinter.print(Context cx, VarScope scope, NativeConsole.Level level, Object[] args, ScriptStackElement[] stack) static ObjectScriptRuntime.propIncrDecr(Object obj, String id, Context cx, int incrDecrMask) Deprecated.static ObjectScriptRuntime.propIncrDecr(Object obj, String id, Context cx, VarScope scope, int incrDecrMask) voidvoidSets a named const property in this object.voidSets the value of the named const property, creating it if need be.voidScriptableObject.putConst(Context cx, String name, Scriptable start, Object value) Sets the value of the named const property, creating it if need be.voidvoidstatic 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.static voidScriptableObject.putConstProperty(Context cx, VarScope obj, String name, Object value) protected final Slot<Scriptable>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.static voidScriptableObject.redefineProperty(Context cx, VarScope obj, String name, boolean isConst) static ObjectArrayLikeAbstractOperations.reduceMethod(Context cx, ArrayLikeAbstractOperations.ReduceOperation operation, VarScope scope, Object thisObj, Object[] args) Implements the methods "reduce" and "reduceRight".static ObjectArrayLikeAbstractOperations.reduceMethodWithLength(Context cx, ArrayLikeAbstractOperations.ReduceOperation operation, VarScope scope, Object thisObj, Object[] args, long length) Perform function call in reference context.static Objectstatic Objectstatic ObjectScriptRuntime.refIncrDecr(Ref ref, Context cx, int incrDecrMask) Deprecated.static ObjectScriptRuntime.refIncrDecr(Ref ref, Context cx, VarScope scope, int incrDecrMask) static ObjectDeprecated.static Objectvoidstatic ObjectScriptRuntimeES6.requireObjectCoercible(Context cx, Object val, Object tag, String functionName) static ObjectScriptRuntimeES6.requireObjectCoercible(Context cx, Object val, IdFunctionObject idFuncObj) static ObjectInterpreter.restartContinuation(NativeContinuation c, Context cx, VarScope scope, Object[] args) JSCodeResume.NullResume.resume(Context cx, T executableObject, Object state, VarScope scope, int operation, Object value) JSCodeResume.resume(Context cx, T executableObject, Object state, VarScope scope, int operation, Object value) Resuem execution of the code represented by this object.static ObjectInterpreter.resumeGenerator(Context cx, VarScope scope, int operation, Object savedState, Object value) static ObjectInterpreterV2.resumeGenerator(Context cx, VarScope scope, int operation, Object savedState, Object value) JSFunction.resumeGenerator(Context cx, VarScope scope, int operation, Object state, Object value) NativeFunction.resumeGenerator(Context cx, Scriptable scope, int operation, Object state, Object value) Resume execution of a suspended generator.Execute action using the supplied Context instance.static ObjectScriptRuntime.searchDefaultNamespace(Context cx) abstract ObjectDeprecated.UseRef.set(Context, VarScope, Object)insteadstatic Objectstatic ObjectScriptRuntime.setDefaultNamespace(Object namespace, Context cx) static voidScriptRuntime.setFunctionProtoAndParent(BaseFunction fn, Context cx, VarScope scope) static voidScriptRuntime.setFunctionProtoAndParent(BaseFunction fn, Context cx, VarScope scope, boolean es6GeneratorFunction) static Objectstatic ObjectScriptRuntime.setObjectElem(Object obj, Object elem, Object value, Context cx) Deprecated.static ObjectCall obj.static ObjectScriptRuntime.setObjectElem(Scriptable obj, Object elem, Object value, Context cx) static ObjectScriptRuntime.setObjectIndex(Object obj, double dblIndex, Object value, Context cx) Deprecated.static ObjectScriptRuntime.setObjectIndex(Object obj, double dblIndex, Object value, Context cx, VarScope scope) A cheaper and less general version of the above for well-known argument types.static ObjectScriptRuntime.setObjectIndex(Scriptable obj, int index, Object value, Context cx) static ObjectScriptRuntime.setObjectProp(Object obj, String property, Object value, Context cx) Deprecated.static ObjectVersion of setObjectElem when elem is a valid JS identifier name.static ObjectScriptRuntime.setObjectProp(Scriptable obj, String property, Object value, Context cx) static voidScriptRuntime.setRegExpProxy(Context cx, RegExpProxy proxy) static ObjectScriptRuntime.setSuperElem(Object superObject, Object elem, Object value, Context cx, VarScope scope, Object thisObject) Call super.static ObjectScriptRuntime.setSuperElem(Scriptable superScriptable, Scriptable thisScriptable, Object elem, Object value, Context cx) static ObjectScriptRuntime.setSuperIndex(Object superObject, double dblIndex, Object value, Context cx, VarScope scope, Object thisObject) A cheaper and less general version of the above for well-known argument types.static ObjectScriptRuntime.setSuperIndex(Scriptable superScriptable, Scriptable thisScriptable, int index, Object value, Context cx) static ObjectScriptRuntime.setSuperProp(Object superObject, String property, Object value, Context cx, VarScope scope, Object thisObject) Version of setSuperElem when elem is a valid JS identifier name.static ObjectScriptRuntime.setSuperProp(Scriptable superScriptable, Scriptable thisScriptable, String property, Object value, Context cx) static RefScriptRuntime.specialRef(Object obj, String specialProperty, Context cx) Deprecated.static RefScriptRuntime.specialRef(Object obj, String specialProperty, Context cx, VarScope scope) static ConstructableAbstractEcmaObjectOperations.speciesConstructor(Context cx, Object s, Constructable defaultConstructor) Implement the ECMAScript abstract operation "SpeciesConstructor" defined in section 7.2.33 of ECMA262.voidstatic voidScriptRuntime.storeUint32Result(Context cx, long value) static Objectstatic ObjectScriptRuntimeES6.symbolSpecies(Context cx, VarScope scope, ScriptableObject constructor) static JavaScriptExceptionScriptRuntime.throwCustomError(Context cx, VarScope scope, String constructorName, String message) Equivalent to executing "new $constructorName(message, sourceFileName, sourceLineNo)" from JavaScript.static JavaScriptExceptionScriptRuntime.throwError(Context cx, VarScope scope, String message) Equivalent to executing "new Error(message, sourceFileName, sourceLineNo)" from JavaScript.static ScriptableScriptRuntime.toIterator(Context cx, Scriptable obj, boolean keyOnly) static ScriptableConvert the value to an object.static ScriptableDeprecated.UseScriptRuntime.toObject(Context, VarScope, Object)instead.static ScriptableScriptRuntime.toObjectOrNull(Context cx, Object obj) Deprecated.static ScriptableScriptRuntime.toObjectOrNull(Context cx, Object obj, VarScope scope) static BaseFunctionScriptRuntime.typeErrorThrower(Context cx) Returns representation of the [[ThrowTypeError]] object.static StringScriptRuntime.typeofName(Context cx, VarScope scope, String id) The typeof operator that correctly handles the undefined casefinal ObjectWrap the object.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) Method parameters in org.htmlunit.corejs.javascript with type arguments of type ContextModifier and TypeMethodDescriptionClassDescriptor.buildConstructor(Context cx, VarScope scope, ScriptableObject proto, boolean sealed, BiConsumer<Context, JSFunction> customStep) Build a constructor from this descriptor.Constructors in org.htmlunit.corejs.javascript with parameters of type ContextModifierConstructorDescriptionBoundFunction(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) ImporterTopLevel(Context cx, boolean sealed) IteratorLikeIterable(Context cx, VarScope scope, Object target) JSFunction(Context cx, VarScope scope, JSDescriptor<JSFunction> descriptor, Object lexicalThis, Object lexicalNewTarget, Scriptable homeObject) -
Uses of Context in org.htmlunit.corejs.javascript.commonjs.module
Methods in org.htmlunit.corejs.javascript.commonjs.module with parameters of type ContextModifier and TypeMethodDescriptionRequireBuilder.createRequire(Context cx, TopLevel globalScope) Creates a new require() function.ModuleScriptProvider.getModuleScript(Context cx, String moduleId, URI moduleUri, URI baseUri, Scriptable paths) Returns a module script.Require.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.Constructors in org.htmlunit.corejs.javascript.commonjs.module with parameters of type Context -
Uses of Context in org.htmlunit.corejs.javascript.commonjs.module.provider
Methods in org.htmlunit.corejs.javascript.commonjs.module.provider with parameters of type ContextModifier 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) -
Uses of Context in org.htmlunit.corejs.javascript.debug
Methods in org.htmlunit.corejs.javascript.debug with parameters of type ContextModifier and TypeMethodDescriptionDebugger.getFrame(Context cx, DebuggableScript fnOrScript) Called when execution entered a particular function or script.default voidDebugger.handleCompilationDone(Context cx, DebuggableScript fnOrScript, String source) Called when compilation of a particular function or script into internal bytecode is done.default voidDebugFrame.onDebuggerStatement(Context cx) Called when the function or script executes a 'debugger' statement.default voidCalled when execution is ready to start bytecode interpretation for entered a particular function or script.default voidDebugFrame.onExceptionThrown(Context cx, Throwable ex) Called when thrown exception is handled by the function or script.default voidCalled when the function or script for this frame is about to return.default voidDebugFrame.onLineChange(Context cx, int lineNumber) Called when executed code reaches new line in the source. -
Uses of Context in org.htmlunit.corejs.javascript.interpreterv2
Methods in org.htmlunit.corejs.javascript.interpreterv2 with parameters of type Context -
Uses of Context in org.htmlunit.corejs.javascript.interpreterv2.instruction
Methods in org.htmlunit.corejs.javascript.interpreterv2.instruction with parameters of type ContextModifier and TypeMethodDescriptionvoidAdd.interpret(Context cx, CallFrameV2 frame) voidAnyStringAdd.interpret(Context cx, CallFrameV2 frame) voidBigInt.interpret(Context cx, CallFrameV2 frame) voidBindName.interpret(Context cx, CallFrameV2 frame) voidBitAnd.interpret(Context cx, CallFrameV2 frame) voidBitNot.interpret(Context cx, CallFrameV2 frame) voidBitOr.interpret(Context cx, CallFrameV2 frame) voidBitXor.interpret(Context cx, CallFrameV2 frame) voidComparison.interpret(Context cx, CallFrameV2 frame) voidDelName.interpret(Context cx, CallFrameV2 frame) voidDelProp.interpret(Context cx, CallFrameV2 frame) voidDelPropSuper.interpret(Context cx, CallFrameV2 frame) voidDivide.interpret(Context cx, CallFrameV2 frame) voidElemIncDec.interpret(Context cx, CallFrameV2 frame) voidEqual.interpret(Context cx, CallFrameV2 frame) voidExponentiate.interpret(Context cx, CallFrameV2 frame) voidGetElem.interpret(Context cx, CallFrameV2 frame) voidGetElemSuper.interpret(Context cx, CallFrameV2 frame) voidGetProp.interpret(Context cx, CallFrameV2 frame) voidGetPropSuper.interpret(Context cx, CallFrameV2 frame) voidGetVar.interpret(Context cx, CallFrameV2 frame) voidIn.interpret(Context cx, CallFrameV2 frame) voidInitConstVar.interpret(Context cx, CallFrameV2 frame) voidInstanceof.interpret(Context cx, CallFrameV2 frame) abstract voidInstruction.interpret(Context cx, CallFrameV2 frame) voidInt.interpret(Context cx, CallFrameV2 frame) voidLeftShift.interpret(Context cx, CallFrameV2 frame) voidLocalClear.interpret(Context cx, CallFrameV2 frame) voidLocalLoad.interpret(Context cx, CallFrameV2 frame) voidMod.interpret(Context cx, CallFrameV2 frame) voidMultiply.interpret(Context cx, CallFrameV2 frame) voidName.interpret(Context cx, CallFrameV2 frame) voidNameIncDec.interpret(Context cx, CallFrameV2 frame) voidNeg.interpret(Context cx, CallFrameV2 frame) voidNewTarget.interpret(Context cx, CallFrameV2 frame) voidNop.interpret(Context cx, CallFrameV2 frame) voidNot.interpret(Context cx, CallFrameV2 frame) voidNotEqual.interpret(Context cx, CallFrameV2 frame) voidNum.interpret(Context cx, CallFrameV2 frame) voidPos.interpret(Context cx, CallFrameV2 frame) voidPropIncDec.interpret(Context cx, CallFrameV2 frame) voidPushConstant.interpret(Context cx, CallFrameV2 frame) voidRegexp.interpret(Context cx, CallFrameV2 frame) voidResetVar.interpret(Context cx, CallFrameV2 frame) voidRightShift.interpret(Context cx, CallFrameV2 frame) voidSetConst.interpret(Context cx, CallFrameV2 frame) voidSetConstVar.interpret(Context cx, CallFrameV2 frame) voidSetElem.interpret(Context cx, CallFrameV2 frame) voidSetElemSuper.interpret(Context cx, CallFrameV2 frame) voidSetName.interpret(Context cx, CallFrameV2 frame) voidSetProp.interpret(Context cx, CallFrameV2 frame) voidSetPropSuper.interpret(Context cx, CallFrameV2 frame) voidSetVar.interpret(Context cx, CallFrameV2 frame) voidShallowEqual.interpret(Context cx, CallFrameV2 frame) voidShallowNotEqual.interpret(Context cx, CallFrameV2 frame) voidShortNumber.interpret(Context cx, CallFrameV2 frame) voidStrictSetName.interpret(Context cx, CallFrameV2 frame) voidStringAnyAdd.interpret(Context cx, CallFrameV2 frame) voidStringConcat.interpret(Context cx, CallFrameV2 frame) voidStringStringAdd.interpret(Context cx, CallFrameV2 frame) voidSubtract.interpret(Context cx, CallFrameV2 frame) voidSuper.interpret(Context cx, CallFrameV2 frame) voidTemplateLiteralCallsite.interpret(Context cx, CallFrameV2 frame) voidThis.interpret(Context cx, CallFrameV2 frame) voidThisFunction.interpret(Context cx, CallFrameV2 frame) voidTypeof.interpret(Context cx, CallFrameV2 frame) voidTypeofName.interpret(Context cx, CallFrameV2 frame) voidUnsignedRightShift.interpret(Context cx, CallFrameV2 frame) voidVarIncDec.interpret(Context cx, CallFrameV2 frame) voidVoidInstruction.interpret(Context cx, CallFrameV2 frame) -
Uses of Context in org.htmlunit.corejs.javascript.interpreterv2.operand
Methods in org.htmlunit.corejs.javascript.interpreterv2.operand with parameters of type ContextModifier and TypeMethodDescriptionbooleanBooleanOperand.coerceToBoolean(Context cx, CallFrameV2 frame) booleanDoubleOperand.coerceToBoolean(Context cx, CallFrameV2 frame) booleanIntOperand.coerceToBoolean(Context cx, CallFrameV2 frame) booleanNegativeZeroOperand.coerceToBoolean(Context cx, CallFrameV2 frame) booleanNullOperand.coerceToBoolean(Context cx, CallFrameV2 frame) booleanOneOperand.coerceToBoolean(Context cx, CallFrameV2 frame) booleanOperand.coerceToBoolean(Context cx, CallFrameV2 frame) booleanShortOperand.coerceToBoolean(Context cx, CallFrameV2 frame) booleanUndefinedOperand.coerceToBoolean(Context cx, CallFrameV2 frame) booleanZeroOperand.coerceToBoolean(Context cx, CallFrameV2 frame) doubleOperand.coerceToDouble(Context cx, CallFrameV2 frame) BooleanOperand.retrieve(Context cx, CallFrameV2 frame) DoubleOperand.retrieve(Context cx, CallFrameV2 frame) GetVarOperand.retrieve(Context cx, CallFrameV2 frame) IntOperand.retrieve(Context cx, CallFrameV2 frame) NegativeZeroOperand.retrieve(Context cx, CallFrameV2 frame) NewTargetOperand.retrieve(Context cx, CallFrameV2 frame) NullOperand.retrieve(Context cx, CallFrameV2 frame) OneOperand.retrieve(Context cx, CallFrameV2 frame) abstract ObjectOperand.retrieve(Context cx, CallFrameV2 frame) PeekOperand.retrieve(Context cx, CallFrameV2 frame) PopOperand.retrieve(Context cx, CallFrameV2 frame) ShortOperand.retrieve(Context cx, CallFrameV2 frame) StringOperand.retrieve(Context cx, CallFrameV2 frame) SuperOperand.retrieve(Context cx, CallFrameV2 frame) ThisOperand.retrieve(Context cx, CallFrameV2 frame) UndefinedOperand.retrieve(Context cx, CallFrameV2 frame) ZeroOperand.retrieve(Context cx, CallFrameV2 frame) GetVarOperand.retrieveAndWrap(Context cx, CallFrameV2 frame) Operand.retrieveAndWrap(Context cx, CallFrameV2 frame) Operand.retrieveNumber(Context cx, CallFrameV2 frame) voidOperand.setResult(Context cx, CallFrameV2 frame) GetVarOperand.viewValue(Context cx, CallFrameV2 frame, int offset) Operand.viewValue(Context cx, CallFrameV2 frame, int offset) PopOperand.viewValue(Context cx, CallFrameV2 frame, int offset) -
Uses of Context in org.htmlunit.corejs.javascript.json
Constructors in org.htmlunit.corejs.javascript.json with parameters of type Context -
Uses of Context in org.htmlunit.corejs.javascript.regexp
Methods in org.htmlunit.corejs.javascript.regexp with parameters of type ContextModifier and TypeMethodDescriptionRegExpImpl.compileRegExp(Context cx, String source, String flags) intRegExpImpl.find_split(Context cx, VarScope scope, String target, String separator, Scriptable reObj, int[] ip, int[] matchlen, boolean[] matched, String[][] parensp) static voidprotected booleanstatic booleanRegExpEngineAccess.matches(Context cx, String input, RegExpEngineAccess.CompiledRegExp compiledRegExp) protected Objectstatic ObjectNativeRegExp.regExpExec(Scriptable regexp, String string, Context cx, VarScope scope) voidRegExpImpl.wrapRegExp(Context cx, VarScope scope, Object compiled) -
Uses of Context in org.htmlunit.corejs.javascript.tools.debugger
Methods in org.htmlunit.corejs.javascript.tools.debugger with parameters of type ContextModifier and TypeMethodDescriptionvoidMain.contextCreated(Context cx) Deprecated.The method is only present for compatibility and should not be called.voidMain.contextEntered(Context cx) Deprecated.The method is only present for compatibility and should not be called.voidMain.contextExited(Context cx) Deprecated.The method is only present for compatibility and should not be called.voidMain.contextReleased(Context cx) Deprecated.The method is only present for compatibility and should not be called.static Dim.ContextDataReturns the ContextData for the given Context.voidDim.StackFrame.onDebuggerStatement(Context cx) Called when a 'debugger' statement is executed.voidCalled when the stack frame is entered.voidDim.StackFrame.onExceptionThrown(Context cx, Throwable exception) Called when an exception has been thrown.voidCalled when the stack frame has been left.voidDim.StackFrame.onLineChange(Context cx, int lineno) Called when the current position has changed. -
Uses of Context in org.htmlunit.corejs.javascript.tools.shell
Methods in org.htmlunit.corejs.javascript.tools.shell with parameters of type ContextModifier and TypeMethodDescriptionprotected voidJavaPolicySecurity.callProcessFileSecure(Context cx, VarScope scope, String filename) protected abstract voidSecurityProxy.callProcessFileSecure(Context cx, VarScope scope, String filename) JavaPolicySecurity.callWithDomain(Object securityDomain, Context cx, Callable callable, VarScope scope, Object thisObj, Object[] args) JavaPolicySecurity.callWithDomain(Object securityDomain, Context cx, Script script, VarScope scope, Object thisObj, Object[] args) static 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) String[]Global.getPrompts(Context cx) protected booleanShellContextFactory.hasFeature(Context cx, int featureIndex) static voidGlobal.help(Context cx, Scriptable thisObj, Object[] args, Function funObj) Print a help message.voidGlobal.installRequire(Context cx, List<String> modulePath, boolean sandboxed) 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.protected voidShellContextFactory.onContextCreated(Context cx) static ObjectGlobal.print(Context cx, Scriptable thisObj, Object[] args, Function funObj) Print the string values of its arguments.static voidMain.processFile(Context cx, VarScope scope, String filename) static voidMain.processFileNoThrow(Context cx, VarScope scope, String filename) static voidMain.processSource(Context cx, String filename) Evaluate JavaScript source.static voidGlobal.quit(Context cx, Scriptable thisObj, Object[] args, Function funObj) Call embedding-specific quit action passing its argument as int32 exit code.voidstatic 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.voidTimers.runAllTimers(Context cx, VarScope scope) Execute all pending timers and microtasks, blocking the thread if we need to wait for any timers to time out.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.intGlobal.runDoctest(Context cx, VarScope scope, String session, String sourceName, int lineNumber) 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.Constructors in org.htmlunit.corejs.javascript.tools.shell with parameters of type Context -
Uses of Context in org.htmlunit.corejs.javascript.typedarrays
Methods in org.htmlunit.corejs.javascript.typedarrays with parameters of type ContextModifier and TypeMethodDescriptionprotected booleanNativeTypedArrayView.defineOwnProperty(Context cx, Object id, ScriptableObject.DescriptorInfo desc, boolean checkValid) static Objectstatic JSFunctionstatic JSFunctionstatic Objectstatic JSFunctionstatic JSFunctionstatic JSFunctionstatic JSFunctionstatic JSFunctionstatic JSFunctionstatic JSFunctionstatic JSFunctionstatic JSFunctionstatic JSFunctionprotected static NativeTypedArrayView<?>NativeTypedArrayView.js_constructor(Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args, NativeTypedArrayView.TypedArrayConstructable constructable, int bytesPerElement, TopLevel.Builtins type) protected static NativeTypedArrayView<?>NativeTypedArrayView.js_constructor(Context cx, VarScope scope, Object[] args, NativeTypedArrayView.TypedArrayConstructable constructable, int bytesPerElement) -
Uses of Context in org.htmlunit.corejs.javascript.xml
Methods in org.htmlunit.corejs.javascript.xml with parameters of type ContextModifier and TypeMethodDescriptionCustom+operator.abstract booleanImplementation of ECMAScript [[Delete]].abstract ObjectImplementation of ECMAScript [[Get]].abstract ScriptableXMLObject.getExtraMethodSource(Context cx) Return an additional object to look for methods that runtime should consider during method search.abstract ObjectXMLObject.getFunctionProperty(Context cx, int id) abstract ObjectXMLObject.getFunctionProperty(Context cx, String name) abstract booleanImplementation of ECMAScript [[Has]].abstract booleanabstract RefGeneric reference to implement x.abstract RefGeneric reference to implement x::ns, x.abstract Refabstract Refabstract voidImplementation of ECMAScript [[Put]].abstract ObjectXMLLib.toDefaultXmlNamespace(Context cx, Object uriValue) Construct namespace for default xml statement.
ContextFactory.enterContext(Context)instead as this method relies on usage of a static singleton "global" ContextFactory.