Uses of Interface
org.htmlunit.corejs.javascript.VarScope
Packages that use VarScope
Package
Description
-
Uses of VarScope in org.htmlunit.corejs.javascript
Classes in org.htmlunit.corejs.javascript that implement VarScopeModifier and TypeClassDescriptionprotected static classThis class is intended as proxy to giveDebugFrameaccess to the contents of local variables.classclassclassclassClass ImporterTopLevelclassfinal classThis class implements the activation object.classclassA top-level scope object that provides special means to cache and preserve the initial values of the built-in constructor properties for better ECMAScript compliance.classFields in org.htmlunit.corejs.javascript declared as VarScopeModifier and TypeFieldDescriptionprotected VarScopeNativeJavaObject.parentThe parent scope of this object.ACallFrame.scopeFields in org.htmlunit.corejs.javascript with type parameters of type VarScopeMethods in org.htmlunit.corejs.javascript that return VarScopeModifier and TypeMethodDescriptionstatic VarScopeReturns the object in the scope chain that has a given property.default VarScopeVarScope.copyScope()static VarScopeScriptRuntime.createArrowFunctionActivation(JSFunction funObj, Context cx, VarScope scope, Object[] args, boolean argsHasRest, boolean requiresArgumentObject) static VarScopeScriptRuntime.createFunctionActivation(JSFunction funObj, Context cx, VarScope scope, Object[] args, boolean argsHasRest, boolean requiresArgumentObject) static VarScopeScriptRuntime.createFunctionActivation(JSFunction funObj, VarScope scope, Object[] args) Deprecated.static VarScopeScriptRuntime.enterDotQuery(Object value, VarScope scope) static VarScopeScriptRuntime.enterScope(VarScope scope) static VarScopedefault VarScopeVarScope.getAncestor()BaseFunction.getDeclarationScope()default VarScopeFunction.getDeclarationScope()Return the scope in which this function was declared or closed over.JSFunction.getDeclarationScope()default VarScopeScriptOrFn.getDeclarationScope()AInterpreter.DebugScope.getParentScope()Delegator.getParentScope()NativeJavaObject.getParentScope()Returns the parent (enclosing) scope of the object.ScopeObject.getParentScope()ScopeWrapper.getParentScope()Scriptable.getParentScope()Get the parent scope of the object.ScriptableObject.getParentScope()Returns the parent (enclosing) scope of the object.VarScope.getParentScope()Get the parent scope of this scope.WithScope.getParentScope()CompileSpec.getScope()FunctionCompileSpec.getScope()ScopeWrapper.getScope()static VarScopeScriptRuntime.leaveDotQuery(VarScope scope) static VarScopeScriptRuntime.leaveScope(VarScope scope) static VarScopeScriptRuntime.newCatchScope(Throwable t, VarScope lastCatchScope, String exceptionName, Context cx, VarScope scope) static VarScopeScriptRuntime.replaceScope(VarScope scope) Gives the next iteration of a loop its own copy of the loop's block scope, leaving the one the finished iteration may have handed to a closure untouched.Methods in org.htmlunit.corejs.javascript with parameters of type VarScopeModifier and TypeMethodDescriptionvoidFunctionObject.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.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.final ObjectShould be overridden.Perform the call.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.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".Context.callFunctionWithContinuations(Callable callable, VarScope scope, Object[] args) Context.callFunctionWithContinuations(Script script, VarScope scope) Call function that may pause execution by capturing a continuation.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 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 ObjectArrayLikeAbstractOperations.coercibleIterativeMethod(Context cx, ArrayLikeAbstractOperations.IterativeOperation operation, VarScope scope, Object o, Object[] args, long length) final FunctionContext.compileFunction(VarScope scope, String source, String sourceName, int lineno, Object securityDomain) Compile a JavaScript function.protected FunctionContext.compileFunction(VarScope scope, String source, Evaluator compiler, ErrorReporter compilationErrorReporter, String sourceName, int lineno, Object securityDomain) 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 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 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) static VarScopeScriptRuntime.createFunctionActivation(JSFunction funObj, VarScope scope, Object[] args) 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) 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) voidScriptableObject.defineBuiltinProperty(VarScope scope, String name, int length, SerializableCallable target) voidScriptableObject.defineBuiltinProperty(VarScope scope, String name, int length, SerializableCallable target, int attributes, int propertyAttributes) static <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.voidAInterpreter.DebugScope.defineConst(Context cx, String name, VarScope start) voidScopeObject.defineConst(Context cx, String name, VarScope 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) voidLambdaConstructor.defineConstructorMethod(VarScope scope, String name, int length, Object prototype, SerializableCallable target, int attributes, int propertyAttributes) Define a function property directly on the constructor that is implemented under the covers by a LambdaFunction, and override the properties of its "name", "length", "arity", and "protoyupe" properties.voidLambdaConstructor.defineConstructorMethod(VarScope scope, String name, int length, SerializableCallable target) Define a function property directly on the constructor that is implemented under the covers by a LambdaFunction.voidLambdaConstructor.defineConstructorMethod(VarScope scope, String name, int length, SerializableCallable target, int attributes, int propertyAttributes) Define a function property directly on the constructor that is implemented under the covers by a LambdaFunction, and override the properties of its "name", "length", and "arity" properties.voidLambdaConstructor.defineConstructorMethod(VarScope scope, Symbol key, String name, int length, SerializableCallable target) Define a function property directly on the constructor that is implemented under the covers by a LambdaFunction.voidScriptableObject.defineFunctionProperties(VarScope scope, String[] names, Class<?> clazz, int attributes) Search for names in a class, adding the resulting methods as properties.voidTopLevel.defineFunctionProperties(VarScope scope, String[] names, Class<?> clazz, int attributes) voidLambdaConstructor.defineKnownBuiltInPrototypeMethod(Object tag, VarScope scope, String name, int length, Object prototype, SerializableCallable target, int attributes, int propertyAttributes) Define a function property on the prototype of the constructor using a KnownBuiltInFunction under the covers.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) voidScriptableObject.defineProperty(VarScope scope, String name, int length, SerializableCallable target) voidScriptableObject.defineProperty(VarScope scope, String name, int length, SerializableCallable target, int attributes, int propertyAttributes) Utility method to add lambda properties to arbitrary Scriptable object.voidScriptableObject.defineProperty(VarScope scope, String propertyName, Class<?> clazz, int attributes) Define a JavaScript property with getter and setter side effects.voidScriptableObject.defineProperty(VarScope scope, String propertyName, Object delegateTo, Method getter, Method setter, int attributes) Define a JavaScript property.voidLambdaConstructor.definePrototypeMethod(VarScope scope, String name, int length, Object prototype, SerializableCallable target, int attributes, int propertyAttributes) Define a function property on the prototype of the constructor using a LambdaFunction under the covers.voidLambdaConstructor.definePrototypeMethod(VarScope scope, String name, int length, SerializableCallable target) Define a function property on the prototype of the constructor using a LambdaFunction under the covers.voidLambdaConstructor.definePrototypeMethod(VarScope scope, String name, int length, SerializableCallable target, int attributes, int propertyAttributes) Define a function property on the prototype of the constructor using a LambdaFunction under the covers.voidLambdaConstructor.definePrototypeMethod(VarScope scope, SymbolKey name, int length, Object prototype, SerializableCallable target, int attributes, int propertyAttributes) Define a function property on the prototype of the constructor using a LambdaFunction under the covers.voidLambdaConstructor.definePrototypeMethod(VarScope scope, SymbolKey name, int length, SerializableCallable target) Define a function property on the prototype of the constructor using a LambdaFunction under the covers.voidLambdaConstructor.definePrototypeMethod(VarScope scope, SymbolKey name, int length, SerializableCallable target, int attributes) voidLambdaConstructor.definePrototypeMethod(VarScope scope, SymbolKey name, int length, SerializableCallable target, int attributes, int propertyAttributes) Define a function property on the prototype of the constructor using a LambdaFunction under the covers.static ObjectThe delete operatorstatic ScriptableScriptRuntime.doObjectRest(Context cx, VarScope scope, Object source, Object[] excludeKeys) Helper for object rest properties in destructuring.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, VarScope scope, int incrDecrMask) static voidScriptRuntime.enterActivationFunction(Context cx, VarScope scope) static VarScopeScriptRuntime.enterDotQuery(Object value, VarScope scope) static VarScopeScriptRuntime.enterScope(VarScope scope) static VarScopestatic Objectstatic ObjectScriptRuntime.evalSpecial(Context cx, VarScope scope, Object thisArg, Object[] args, String filename, int lineNumber, boolean isStrict) The eval function property of the global object.final ObjectContext.evaluateReader(VarScope scope, Reader in, String sourceName, int lineno, Object securityDomain) Evaluate a reader as JavaScript source.final ObjectContext.evaluateScript(ScriptCompileSpec.Builder spec, VarScope scope) final ObjectContext.evaluateScript(ScriptCompileSpec spec, VarScope scope) Compile and execute a script described byspecin the given scope.final ObjectContext.evaluateString(VarScope scope, String source, String sourceName, int lineno, Object securityDomain) Evaluate a JavaScript source string.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.Context.executeScriptWithContinuations(Callable callable, VarScope scope) Context.executeScriptWithContinuations(Script script, VarScope scope) Execute script that may pause execution by capturing a continuation.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).final IdFunctionObjectIdScriptableObject.exportAsJSClass(int maxPrototypeId, VarScope scope, boolean sealed) 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 Stringstatic FunctionCompileSpec.BuilderFunctionCompileSpec.fromReader(Reader reader, VarScope scope) static FunctionCompileSpec.BuilderFunctionCompileSpec.fromSource(String source, VarScope scope) static ClassCacheSearch for ClassCache object in the given scope.Returns the value of the indexed property or NOT_FOUND.Returns the value of the named property or NOT_FOUND.Another version of Get that supports Symbol keyed properties.static ScriptableScriptRuntime.getApplyOrCallThis(Context cx, VarScope scope, Object arg0, int l, Function target) static ScriptableScriptableObject.getArrayPrototype(VarScope scope) 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 ScriptableScriptableObject.getClassPrototype(VarScope scope, String className) Get the prototype for the named class.static ScriptableScriptableObject.getClassPrototype(VarScope scope, Symbol className) 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, 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 ScriptableScriptableObject.getFunctionPrototype(VarScope scope) Get the Function.prototype property.static ScriptableScriptableObject.getGeneratorFunctionPrototype(VarScope scope) static ScopeObjectScriptRuntime.getLibraryScopeOrNull(VarScope scope) 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, VarScope scope) Call obj.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.getObjectProp(Object obj, String property, Context cx, VarScope scope) Version of getObjectElem when elem is a valid JS identifier name.static ObjectScriptRuntime.getObjectPropNoWarn(Object obj, String property, Context cx, VarScope scope) static ScriptableScriptableObject.getObjectPrototype(VarScope scope) Get the Object.prototype property.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 ObjectScriptableObject.getProperty(VarScope obj, String name) static ObjectScriptableObject.getProperty(VarScope obj, Symbol name) 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 Comparator<Object>ArrayLikeAbstractOperations.getSortComparator(Context cx, VarScope scope, Object[] args) ArrayLikeAbstractOperations.getSortComparatorFromArguments(Context cx, VarScope scope, Object[] args) static ObjectNativeIterator.getStopIterationObject(VarScope scope) Get the value of the "StopIteration" object.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 ScriptableScriptRuntime.getThisForScope(VarScope scope, Object callThisArg) static ObjectScriptRuntime.getTopLevelProp(VarScope scope, String id) static TopLevelScriptableObject.getTopLevelScope(VarScope obj) Get the global scope.static ObjectScriptableObject.getTopScopeValue(VarScope scope, Object key) Get arbitrary application-specific value associated with the top scope of the given scope.booleanbooleanbooleanbooleanReturns true if the property index is defined.booleanReturns true if the named property is defined.booleanA version of "has" that supports symbols.booleanbooleanbooleanbooleanstatic booleanScriptableObject.hasProperty(VarScope obj, String name) static voidstatic voidstatic voidstatic voidNativeConsole.init(VarScope scope, boolean sealed, NativeConsole.ConsolePrinter printer) static voidstatic voidstatic Objectstatic voidvoidIdFunctionObject.initFunction(String name, VarScope scope) 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) Initializable.initialize(Context cx, VarScope scope, boolean sealed) Initialize the class in question, returning the new constructor.static voidScriptRuntime.initScript(ScriptOrFn execObj, Object thisObj, Context cx, VarScope scope, boolean evalScript) final voidNativeFunction.initScriptFunction(Context cx, VarScope scope, boolean es6GeneratorFunction, boolean isShorthand) static <T extends ScriptOrFn<T>>
ObjectInterpreterV2.interpret(T fun, CompilerData<T> data, Context cx, VarScope scope, Object thisObj, Object newTarget, Object[] args) InterfaceAdapter.invoke(ContextFactory cf, Object target, VarScope topScope, Object thisObject, Method method, Object[] args) protected abstract booleanprotected booleanprotected booleanprotected booleanstatic 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 ObjectConvenient method to convert java value to its closest representation in JavaScript.static VarScopeScriptRuntime.leaveDotQuery(VarScope scope) static VarScopeScriptRuntime.leaveScope(VarScope scope) 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 ObjectLooks up a name in the scope chain and returns its value.static ObjectScriptRuntime.nameIncrDecr(VarScope scopeChain, String id, int incrDecrMask) Deprecated.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 RefCreate 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) static VarScopeScriptRuntime.newCatchScope(Throwable t, VarScope lastCatchScope, String exceptionName, Context cx, VarScope scope) 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 ObjectScriptRuntime.newSpecial(Context cx, Object fun, Object[] args, VarScope scope, int callType) protected Objectprotected abstract Objectprotected Objectprotected Objectprotected Objectstatic RuntimeExceptionScriptRuntime.notFoundError(VarScope object, String property) 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, VarScope scope, int incrDecrMask) voidvoidvoidvoidSets the value of the indexed property, creating it if need be.voidSets the value of the named property, creating it if need be.voidImplementation of put required by SymbolScriptable objects.voidvoidvoidvoidvoidvoidSets the value of the named const property, creating it if need be.voidvoidstatic voidScriptableObject.putConstProperty(Context cx, VarScope obj, String name, Object value) protected booleanScopeObject.putOwnProperty(int index, VarScope 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 booleanScopeObject.putOwnProperty(String name, VarScope 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 booleanScopeObject.putOwnProperty(Symbol key, VarScope 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(VarScope obj, String name, Object value) 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) static ObjectScriptRuntime.refIncrDecr(Ref ref, Context cx, VarScope scope, int incrDecrMask) static Objectstatic VarScopeScriptRuntime.replaceScope(VarScope scope) Gives the next iteration of a loop its own copy of the loop's block scope, leaving the one the finished iteration may have handed to a closure untouched.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.Context.resumeContinuation(Object continuation, VarScope scope, Object functionResult) Restarts execution of the JavaScript suspended at the call toContext.captureContinuation().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) voidCallFrameV2.saveExceptionScope(int exceptionIndex, VarScope scope) static voidScriptRuntime.setBuiltinProtoAndParent(ScriptableObject obj, JSFunction f, Object nt, VarScope s, TopLevel.Builtins type) static voidScriptRuntime.setBuiltinProtoAndParent(ScriptableObject obj, JSFunction f, Object nt, VarScope s, org.htmlunit.corejs.javascript.TopLevel.NativeErrors type) static voidScriptRuntime.setBuiltinProtoAndParent(ScriptableObject object, VarScope scope, TopLevel.Builtins type) static ObjectvoidScriptableObject.setExternalArrayData(VarScope scope, ExternalArrayData array) Attach the specified object to this object, and delegate all indexed property lookups to it.static voidScriptRuntime.setFunctionProtoAndParent(BaseFunction fn, Context cx, VarScope scope) static voidScriptRuntime.setFunctionProtoAndParent(BaseFunction fn, Context cx, VarScope scope, boolean es6GeneratorFunction) static voidScriptRuntime.setFunctionProtoAndParent(BaseFunction fn, VarScope scope) Deprecated.static voidScriptRuntime.setFunctionProtoAndParent(BaseFunction fn, VarScope scope, boolean es6GeneratorFunction) Deprecated.voidLambdaAccessorSlot.setGetter(VarScope scope, ScriptableObject.LambdaGetterFunction getter) static Objectstatic ObjectCall obj.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 ObjectVersion of setObjectElem when elem is a valid JS identifier name.static voidScriptRuntime.setObjectProtoAndParent(ScriptableObject object, VarScope scope) voidDelegator.setParentScope(VarScope parent) voidNativeJavaObject.setParentScope(VarScope m) Sets the parent (enclosing) scope of the object.voidScriptable.setParentScope(VarScope parent) Set the parent scope of the object.voidScriptableObject.setParentScope(VarScope m) Sets the parent (enclosing) scope of the object.voidLambdaAccessorSlot.setSetter(VarScope scope, ScriptableObject.LambdaSetterFunction setter) static ObjectScriptRuntime.setSuperElem(Object superObject, Object elem, Object value, Context cx, VarScope scope, Object thisObject) Call super.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.setSuperProp(Object superObject, String property, Object value, Context cx, VarScope scope, Object thisObject) Version of setSuperElem when elem is a valid JS identifier name.protected ObjectBaseFunction.setupDefaultPrototype(VarScope scope) static RefScriptRuntime.specialRef(Object obj, String specialProperty, Context cx, VarScope scope) voidstatic 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 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, VarScope scope) static BaseFunctionScriptRuntime.typeErrorThrower(VarScope scope) static StringScriptRuntime.typeofName(Context cx, VarScope scope, String id) The typeof operator that correctly handles the undefined casestatic ObjectScriptRuntime.updateDotQuery(boolean value, VarScope scope) static NativeJavaArrayDeprecated.static ObjectDeprecated.UseContext.getWrapFactory()together with callingWrapFactory.wrap(Context, VarScope, Object, Class)final 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) Constructors in org.htmlunit.corejs.javascript with parameters of type VarScopeModifierConstructorDescriptionBaseFunction(VarScope scope) BaseFunction(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) CatchScope(VarScope parentScope) DeclarationScope(VarScope parentScope) ES6Generator(VarScope scope, JSFunction function, Object savedState) protectedES6Iterator(VarScope scope, String tag) FunctionObject(String name, Member methodOrConstructor, VarScope scope) Create a JavaScript function object from a Java method.IdFunctionObject(IdFunctionCall idcall, Object tag, int id, String name, int arity, VarScope scope) IdScriptableObject(VarScope scope, Scriptable prototype) IteratorLikeIterable(Context cx, VarScope scope, Object target) JSFunction(Context cx, VarScope scope, JSDescriptor<JSFunction> descriptor, Object lexicalThis, Object lexicalNewTarget, Scriptable homeObject) KnownBuiltInFunction(Object tag, VarScope scope, String name, int length, Object prototype, SerializableCallable target) Create a new function.LambdaConstructor(VarScope scope, String name, int length, int flags, SerializableConstructable target) Create a new function that may be used as a constructor.LambdaConstructor(VarScope scope, String name, int length, Object prototype, SerializableCallable target, SerializableConstructable targetConstructor) LambdaConstructor(VarScope scope, String name, int length, SerializableCallable target, SerializableConstructable targetConstructor) Create a new function that may be used as a constructor.LambdaConstructor(VarScope scope, String name, int length, SerializableConstructable target) Create a new function that may be used as a constructor.LambdaFunction(VarScope scope, int length, SerializableCallable target) Create a new built-in function, with no name, and no default prototype.LambdaFunction(VarScope scope, String name, int length, Object prototype, SerializableCallable target) Create a new function.LambdaFunction(VarScope scope, String name, int length, SerializableCallable target) Create a new function.LambdaFunction(VarScope scope, String name, int length, SerializableCallable target, boolean defaultPrototype) Create a new function.LocalScope(VarScope parentScope) NativeArrayIterator(VarScope scope, Object arrayLike, NativeArrayIterator.ARRAY_ITERATOR_TYPE type) NativeCollectionIterator(VarScope scope, String className, org.htmlunit.corejs.javascript.NativeCollectionIterator.Type type, Iterator<Hashtable.Entry> iterator) protectedNativeFunction(VarScope scope) NativeGenerator(VarScope scope, JSFunction function, Object savedState) NativeJavaArray(VarScope scope, Object array) NativeJavaArray(VarScope scope, Object array, TypeInfo staticType) NativeJavaClass(VarScope scope, Class<?> cl) NativeJavaClass(VarScope scope, Class<?> cl, boolean isAdapter) NativeJavaConstructor(VarScope scope, ExecutableBox ctor) NativeJavaList(VarScope scope, Object list, TypeInfo staticType) NativeJavaMap(VarScope scope, Object map, TypeInfo staticType) NativeJavaMethod(VarScope scope, Method method, String name) Deprecated.NativeJavaObject(VarScope scope, Object javaObject, TypeInfo staticType) NativeJavaObject(VarScope scope, Object javaObject, TypeInfo staticType, boolean isAdapter) ScopeObject(VarScope parentScope) ScopeWrapper(VarScope scope) ScriptableObject(VarScope scope, Scriptable prototype) WithScope(VarScope parentScope, Scriptable obj) -
Uses of VarScope in org.htmlunit.corejs.javascript.commonjs.module
Classes in org.htmlunit.corejs.javascript.commonjs.module that implement VarScopeMethods in org.htmlunit.corejs.javascript.commonjs.module with parameters of type VarScopeModifier and TypeMethodDescriptionstatic ModuleScopeModuleScope.findModuleScope(VarScope scope) Search up the chain of scopes to find a module scope.voidBinds this instance of require() into the specified scope under the property name "require". -
Uses of VarScope in org.htmlunit.corejs.javascript.debug
Methods in org.htmlunit.corejs.javascript.debug with parameters of type VarScope -
Uses of VarScope in org.htmlunit.corejs.javascript.interpreterv2
Methods in org.htmlunit.corejs.javascript.interpreterv2 with parameters of type VarScope -
Uses of VarScope in org.htmlunit.corejs.javascript.json
Constructors in org.htmlunit.corejs.javascript.json with parameters of type VarScope -
Uses of VarScope in org.htmlunit.corejs.javascript.lc.type
Methods in org.htmlunit.corejs.javascript.lc.type with parameters of type VarScopeModifier and TypeMethodDescriptionstatic TypeInfoFactorySearch for TypeInfoFactory in the given scope.static TypeInfoFactoryTypeInfoFactory.getOrElse(VarScope scope, TypeInfoFactory fallback) Search for TypeInfoFactory in the given scope. -
Uses of VarScope in org.htmlunit.corejs.javascript.regexp
Methods in org.htmlunit.corejs.javascript.regexp with parameters of type VarScopeModifier and TypeMethodDescriptionintRegExpImpl.find_split(Context cx, VarScope scope, String target, String separator, Scriptable reObj, int[] ip, int[] matchlen, boolean[] matched, String[][] parensp) static voidprotected booleanprotected Objectstatic ObjectNativeRegExp.regExpExec(Scriptable regexp, String string, Context cx, VarScope scope) RegExpImpl.wrapRegExp(Context cx, VarScope scope, Object compiled) Constructors in org.htmlunit.corejs.javascript.regexp with parameters of type VarScopeModifierConstructorDescriptionNativeRegExpStringIterator(VarScope scope, Scriptable regexp, String string, boolean global, boolean fullUnicode) -
Uses of VarScope in org.htmlunit.corejs.javascript.serialize
Constructors in org.htmlunit.corejs.javascript.serialize with parameters of type VarScopeModifierConstructorDescriptionScriptableInputStream(InputStream in, VarScope scope) Create a ScriptableInputStream.ScriptableOutputStream(OutputStream out, VarScope scope) ScriptableOutputStream constructor. -
Uses of VarScope in org.htmlunit.corejs.javascript.tools.debugger
Methods in org.htmlunit.corejs.javascript.tools.debugger that return VarScopeModifier and TypeMethodDescriptionScopeProvider.getScope()Returns the scope object to be used for script evaluation.Methods in org.htmlunit.corejs.javascript.tools.debugger with parameters of type VarScopeModifier and TypeMethodDescriptionstatic MainMain.mainEmbedded(ContextFactory factory, VarScope scope, String title) Entry point for embedded applications.voidCalled when the stack frame is entered.voidSets the scope to be used for script evaluation. -
Uses of VarScope in org.htmlunit.corejs.javascript.tools.shell
Classes in org.htmlunit.corejs.javascript.tools.shell that implement VarScopeModifier and TypeClassDescriptionclassThis class provides for sharing functions across multiple threads.Methods in org.htmlunit.corejs.javascript.tools.shell with parameters of type VarScopeModifier 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 voidEnvironment.defineClass(VarScope scope) voidInitialize the "setTimeout" and "clearTimeout" functions on the specified scope.static voidMain.processFile(Context cx, VarScope scope, String filename) static voidMain.processFileNoThrow(Context cx, VarScope scope, String filename) 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.intGlobal.runDoctest(Context cx, VarScope scope, String session, String sourceName, int lineNumber) Constructors in org.htmlunit.corejs.javascript.tools.shell with parameters of type VarScope -
Uses of VarScope in org.htmlunit.corejs.javascript.typedarrays
Methods in org.htmlunit.corejs.javascript.typedarrays with parameters of type VarScopeModifier and TypeMethodDescriptionstatic 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 VarScope in org.htmlunit.corejs.javascript.xml
Methods in org.htmlunit.corejs.javascript.xml with parameters of type VarScopeModifier and TypeMethodDescriptionprotected final XMLLibXMLLib.bindToScope(VarScope scope) abstract WithScopeXMLObject.enterDotQuery(VarScope scope) Wrap this object intoWithScopeto implement the .() query.abstract WithScopeWrap this object intoWithScopeto implement the with statement.static XMLLibXMLLib.extractFromScope(VarScope scope) static XMLLibXMLLib.extractFromScopeOrNull(VarScope scope) abstract Refabstract RefConstructors in org.htmlunit.corejs.javascript.xml with parameters of type VarScope
ScriptRuntime.createFunctionActivation(JSFunction, Context, VarScope, Object[], boolean, boolean)instead