Package | Description |
---|---|
net.sourceforge.htmlunit.corejs.javascript | |
net.sourceforge.htmlunit.corejs.javascript.commonjs.module |
Provides the public API for the CommonJS Modules/1.1 implementation.
|
net.sourceforge.htmlunit.corejs.javascript.commonjs.module.provider |
Provides default implementations for module providers.
|
net.sourceforge.htmlunit.corejs.javascript.debug | |
net.sourceforge.htmlunit.corejs.javascript.jdk13 | |
net.sourceforge.htmlunit.corejs.javascript.jdk15 | |
net.sourceforge.htmlunit.corejs.javascript.json | |
net.sourceforge.htmlunit.corejs.javascript.optimizer | |
net.sourceforge.htmlunit.corejs.javascript.regexp | |
net.sourceforge.htmlunit.corejs.javascript.tools.debugger | |
net.sourceforge.htmlunit.corejs.javascript.tools.shell | |
net.sourceforge.htmlunit.corejs.javascript.xml |
Modifier and Type | Method and Description |
---|---|
Context |
ContextFactory.enter()
Deprecated.
use
ContextFactory.enterContext() instead |
static Context |
Context.enter()
Same as calling
ContextFactory.enterContext() on the global
ContextFactory instance. |
static Context |
Context.enter(Context cx)
Deprecated.
use
ContextFactory.enterContext(Context) instead as
this method relies on usage of a static singleton "global" ContextFactory. |
Context |
ContextFactory.enterContext()
Get a context associated with the current thread, creating one if need
be.
|
Context |
ContextFactory.enterContext(Context cx)
Get a Context associated with the current thread, using the given
Context if need be.
|
protected abstract Context |
VMBridge.getContext(java.lang.Object contextHelper)
Get
Context instance associated with the current thread
or null if none. |
static Context |
Context.getCurrentContext()
Get the current Context.
|
protected Context |
ContextFactory.makeContext()
Create new
Context instance to be associated with the current
thread. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
RegExpProxy.action(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args,
int actionType) |
static java.lang.Object |
ScriptRuntime.add(java.lang.Object val1,
java.lang.Object val2,
Context cx) |
static void |
ScriptRuntime.addInstructionCount(Context cx,
int instructionsToAdd) |
static java.lang.Object |
ScriptRuntime.applyOrCall(boolean isApply,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
Function.prototype.apply and Function.prototype.call
See Ecma 15.3.4.[34]
|
static Scriptable |
ScriptRuntime.bind(Context cx,
Scriptable scope,
java.lang.String id)
Returns the object in the scope chain that has a given property.
|
abstract java.lang.Object |
SecureCaller.call(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
abstract java.lang.Object |
PolicySecurityController.SecureCaller.call(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
static java.lang.Object |
ScriptRuntime.call(Context cx,
java.lang.Object fun,
java.lang.Object thisArg,
java.lang.Object[] args,
Scriptable scope)
Deprecated.
The method is only present for compatibility.
|
java.lang.Object |
IdFunctionObject.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
FunctionObject.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
Performs conversions on argument types if needed and
invokes the underlying Java method or constructor.
|
java.lang.Object |
NativeJavaConstructor.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
Function.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
Call the function.
|
java.lang.Object |
Callable.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
Perform the call.
|
java.lang.Object |
NativeContinuation.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
BaseFunction.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
Should be overridden.
|
java.lang.Object |
Delegator.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
NativeJavaTopPackage.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
NativeJavaMethod.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
BoundFunction.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] extraArgs) |
java.lang.Object |
Synchronizer.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
NativeJavaClass.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
static java.lang.Object |
ScriptableObject.callMethod(Context cx,
Scriptable obj,
java.lang.String methodName,
java.lang.Object[] args)
Call a method of an object.
|
static Ref |
ScriptRuntime.callRef(Callable function,
Scriptable thisObj,
java.lang.Object[] args,
Context cx)
Perform function call in reference context.
|
static java.lang.Object |
ScriptRuntime.callSpecial(Context cx,
Callable fun,
Scriptable thisObj,
java.lang.Object[] args,
Scriptable scope,
Scriptable callerThis,
int callType,
java.lang.String filename,
int lineNumber) |
java.lang.Object |
SecurityController.callWithDomain(java.lang.Object securityDomain,
Context cx,
Callable callable,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
Call
Callable.call(Context cx, Scriptable 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. |
java.lang.Object |
PolicySecurityController.callWithDomain(java.lang.Object securityDomain,
Context cx,
Callable callable,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
static NativeContinuation |
Interpreter.captureContinuation(Context cx) |
static RegExpProxy |
ScriptRuntime.checkRegExpProxy(Context cx) |
java.lang.Object |
RegExpProxy.compileRegExp(Context cx,
java.lang.String source,
java.lang.String flags) |
Scriptable |
Function.construct(Context cx,
Scriptable scope,
java.lang.Object[] args)
Call the function as a constructor.
|
Scriptable |
NativeContinuation.construct(Context cx,
Scriptable scope,
java.lang.Object[] args) |
Scriptable |
BaseFunction.construct(Context cx,
Scriptable scope,
java.lang.Object[] args) |
Scriptable |
Delegator.construct(Context cx,
Scriptable scope,
java.lang.Object[] args)
Note that if the
delegee is null ,
this method creates a new instance of the Delegator itself
rathert than forwarding the call to the
delegee . |
Scriptable |
NativeJavaTopPackage.construct(Context cx,
Scriptable scope,
java.lang.Object[] args) |
Scriptable |
BoundFunction.construct(Context cx,
Scriptable scope,
java.lang.Object[] extraArgs) |
Scriptable |
NativeJavaClass.construct(Context cx,
Scriptable scope,
java.lang.Object[] args) |
static EcmaError |
NativeGlobal.constructError(Context cx,
java.lang.String error,
java.lang.String message,
Scriptable scope)
Deprecated.
Use
ScriptRuntime.constructError(String,String)
instead. |
static EcmaError |
NativeGlobal.constructError(Context cx,
java.lang.String error,
java.lang.String message,
Scriptable scope,
java.lang.String sourceName,
int lineNumber,
int columnNumber,
java.lang.String lineSource)
Deprecated.
|
void |
ContextFactory.Listener.contextCreated(Context cx)
Notify about newly created
Context object. |
void |
ContextListener.contextEntered(Context cx)
Deprecated.
Rhino runtime never calls the method.
|
void |
ContextListener.contextExited(Context cx)
Deprecated.
Rhino runtime never calls the method.
|
void |
ContextFactory.Listener.contextReleased(Context cx)
Notify that the specified
Context instance is no longer
associated with the current thread. |
static java.lang.Object |
FunctionObject.convertArg(Context cx,
Scriptable scope,
java.lang.Object arg,
java.lang.Class<?> desired)
Deprecated.
Use
FunctionObject.getTypeTag(Class)
and FunctionObject.convertArg(Context, Scriptable, Object, int)
for type conversion. |
static java.lang.Object |
FunctionObject.convertArg(Context cx,
Scriptable scope,
java.lang.Object arg,
int typeTag) |
Function |
Evaluator.createFunctionObject(Context cx,
Scriptable scope,
java.lang.Object bytecode,
java.lang.Object staticSecurityDomain)
Create a function object.
|
Function |
Interpreter.createFunctionObject(Context cx,
Scriptable scope,
java.lang.Object bytecode,
java.lang.Object staticSecurityDomain) |
Scriptable |
IdFunctionObject.createObject(Context cx,
Scriptable scope) |
Scriptable |
FunctionObject.createObject(Context cx,
Scriptable scope)
Return new
Scriptable instance using the default
constructor for the class of the underlying Java method. |
Scriptable |
BaseFunction.createObject(Context cx,
Scriptable scope)
Creates new script object.
|
void |
ScriptableObject.defineOwnProperties(Context cx,
ScriptableObject props) |
void |
IdScriptableObject.defineOwnProperty(Context cx,
java.lang.Object key,
ScriptableObject desc) |
void |
ScriptableObject.defineOwnProperty(Context cx,
java.lang.Object id,
ScriptableObject desc)
Defines a property on an object
Based on [[DefineOwnProperty]] from 8.12.10 of the spec
|
void |
NativeArray.defineOwnProperty(Context cx,
java.lang.Object id,
ScriptableObject desc) |
boolean |
Ref.delete(Context cx) |
static java.lang.Object |
ScriptRuntime.delete(java.lang.Object obj,
java.lang.Object id,
Context cx)
The delete operator
See ECMA 11.4.1
In ECMA 0.19, the description of the delete operator (11.4.1)
assumes that the [[Delete]] method returns a value.
|
static boolean |
ScriptRuntime.deleteObjectElem(Scriptable target,
java.lang.Object elem,
Context cx) |
protected java.lang.Object |
ContextFactory.doTopCall(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
Execute top call to script or function.
|
static java.lang.Object |
ScriptRuntime.doTopCall(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
static java.lang.Object |
ScriptRuntime.elemIncrDecr(java.lang.Object obj,
java.lang.Object index,
Context cx,
int incrDecrMask) |
static Context |
Context.enter(Context cx)
Deprecated.
use
ContextFactory.enterContext(Context) instead as
this method relies on usage of a static singleton "global" ContextFactory. |
static void |
ScriptRuntime.enterActivationFunction(Context cx,
Scriptable scope) |
Context |
ContextFactory.enterContext(Context cx)
Get a Context associated with the current thread, using the given
Context if need be.
|
static Scriptable |
ScriptRuntime.enterWith(java.lang.Object obj,
Context cx,
Scriptable scope) |
static java.lang.Object |
ScriptRuntime.enumId(java.lang.Object enumObj,
Context cx) |
static java.lang.Object |
ScriptRuntime.enumInit(java.lang.Object value,
Context cx,
boolean enumValues) |
static java.lang.Object |
ScriptRuntime.enumInit(java.lang.Object value,
Context cx,
int enumType) |
static java.lang.Object |
ScriptRuntime.enumValue(java.lang.Object enumObj,
Context cx) |
static java.lang.String |
ScriptRuntime.escapeAttributeValue(java.lang.Object value,
Context cx)
Escapes the reserved characters in a value of an attribute
|
static java.lang.String |
ScriptRuntime.escapeTextValue(java.lang.Object value,
Context cx)
Escapes the reserved characters in a value of a text node
|
static java.lang.Object |
ScriptRuntime.evalSpecial(Context cx,
Scriptable scope,
java.lang.Object thisArg,
java.lang.Object[] args,
java.lang.String filename,
int lineNumber)
The eval function property of the global object.
|
java.lang.Object |
Script.exec(Context cx,
Scriptable scope)
Execute the script.
|
java.lang.Object |
ImporterTopLevel.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
NativeObject.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
NativeGlobal.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
IdScriptableObject.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
'thisObj' will be null if invoked as constructor, in which case
instance of Scriptable should be returned.
|
java.lang.Object |
NativeContinuation.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
BaseFunction.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
IdFunctionCall.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
'thisObj' will be null if invoked as constructor, in which case
instance of Scriptable should be returned
|
java.lang.Object |
NativeWith.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
NativeCall.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
NativeJavaTopPackage.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
JavaAdapter.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
NativeGenerator.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
NativeArray.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
NativeIterator.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
SecurityController.execWithDomain(Context cx,
Scriptable scope,
Script script,
java.lang.Object securityDomain)
Deprecated.
The application should not override this method and instead
override
SecurityController.callWithDomain(Object securityDomain, Context cx, Callable callable, Scriptable scope, Scriptable thisObj, Object[] args) . |
static void |
ScriptRuntime.exitActivationFunction(Context cx) |
int |
RegExpProxy.find_split(Context cx,
Scriptable scope,
java.lang.String target,
java.lang.String separator,
Scriptable re,
int[] ip,
int[] matchlen,
boolean[] matched,
java.lang.String[][] parensp) |
abstract java.lang.Object |
Ref.get(Context cx) |
static Function |
TopLevel.getBuiltinCtor(Context cx,
Scriptable scope,
TopLevel.Builtins type)
Static helper method to get a built-in object constructor with the given
type from the given scope . |
static Callable |
ScriptRuntime.getElemFunctionAndThis(java.lang.Object obj,
java.lang.Object elem,
Context cx)
Prepare for calling obj[id](...): return function corresponding to
obj[id] and make obj properly converted to Scriptable available
as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
|
static ScriptableObject |
ScriptRuntime.getGlobal(Context cx) |
java.util.Iterator<?> |
VMBridge.getJavaIterator(Context cx,
Scriptable scope,
java.lang.Object obj)
If "obj" is a java.util.Iterator or a java.lang.Iterable, return a
wrapping as a JavaScript Iterator.
|
static Callable |
ScriptRuntime.getNameFunctionAndThis(java.lang.String name,
Context cx,
Scriptable scope)
Prepare for calling name(...): return function corresponding to
name and make current top scope available
as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
|
static java.lang.Object |
ScriptRuntime.getObjectElem(java.lang.Object obj,
java.lang.Object elem,
Context cx)
Call obj.[[Get]](id)
|
static java.lang.Object |
ScriptRuntime.getObjectElem(java.lang.Object obj,
java.lang.Object elem,
Context cx,
Scriptable scope)
Call obj.[[Get]](id)
|
static java.lang.Object |
ScriptRuntime.getObjectElem(Scriptable obj,
java.lang.Object elem,
Context cx) |
static java.lang.Object |
ScriptRuntime.getObjectIndex(java.lang.Object obj,
double dblIndex,
Context cx) |
static java.lang.Object |
ScriptRuntime.getObjectIndex(Scriptable obj,
int index,
Context cx) |
static java.lang.Object |
ScriptRuntime.getObjectProp(java.lang.Object obj,
java.lang.String property,
Context cx)
Version of getObjectElem when elem is a valid JS identifier name.
|
static java.lang.Object |
ScriptRuntime.getObjectProp(java.lang.Object obj,
java.lang.String property,
Context cx,
Scriptable scope) |
static java.lang.Object |
ScriptRuntime.getObjectProp(Scriptable obj,
java.lang.String property,
Context cx) |
static java.lang.Object |
ScriptRuntime.getObjectPropNoWarn(java.lang.Object obj,
java.lang.String property,
Context cx) |
protected ScriptableObject |
IdScriptableObject.getOwnPropertyDescriptor(Context cx,
java.lang.Object id) |
protected ScriptableObject |
ScriptableObject.getOwnPropertyDescriptor(Context cx,
java.lang.Object id) |
protected ScriptableObject |
NativeArray.getOwnPropertyDescriptor(Context cx,
java.lang.Object id) |
static Callable |
ScriptRuntime.getPropFunctionAndThis(java.lang.Object obj,
java.lang.String property,
Context cx)
Prepare for calling obj.property(...): return function corresponding to
obj.property and make obj properly converted to Scriptable available
as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
|
static Callable |
ScriptRuntime.getPropFunctionAndThis(java.lang.Object obj,
java.lang.String property,
Context cx,
Scriptable scope)
Prepare for calling obj.property(...): return function corresponding to
obj.property and make obj properly converted to Scriptable available
as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
|
static RegExpProxy |
ScriptRuntime.getRegExpProxy(Context cx) |
protected net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.Slot |
ScriptableObject.getSlot(Context cx,
java.lang.Object id,
int accessType) |
java.lang.String |
Evaluator.getSourcePositionFromStack(Context cx,
int[] linep)
Get the source position information by examining the stack.
|
java.lang.String |
Interpreter.getSourcePositionFromStack(Context cx,
int[] linep) |
static Scriptable |
ScriptRuntime.getTopCallScope(Context cx) |
static Callable |
ScriptRuntime.getValueFunctionAndThis(java.lang.Object value,
Context cx)
Prepare for calling
|
boolean |
Ref.has(Context cx) |
protected boolean |
ContextFactory.hasFeature(Context cx,
int featureIndex)
Implementation of
hasFeature(int featureIndex) . |
static boolean |
ScriptRuntime.hasObjectElem(Scriptable target,
java.lang.Object elem,
Context cx) |
static boolean |
ScriptRuntime.hasTopCall(Context cx) |
void |
ImporterTopLevel.importPackage(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Deprecated.
Kept only for compatibility.
|
static boolean |
ScriptRuntime.in(java.lang.Object a,
java.lang.Object b,
Context cx)
The in operator.
|
static void |
ImporterTopLevel.init(Context cx,
Scriptable scope,
boolean sealed) |
static void |
NativeGlobal.init(Context cx,
Scriptable scope,
boolean sealed) |
static void |
NativeContinuation.init(Context cx,
Scriptable scope,
boolean sealed) |
static void |
NativeJavaTopPackage.init(Context cx,
Scriptable scope,
boolean sealed) |
static void |
JavaAdapter.init(Context cx,
Scriptable scope,
boolean sealed) |
void |
CompilerEnvirons.initFromContext(Context cx) |
static void |
ScriptRuntime.initFunction(Context cx,
Scriptable scope,
NativeFunction function,
int type,
boolean fromEvalCode) |
static void |
ScriptRuntime.initScript(NativeFunction funObj,
Scriptable thisObj,
Context cx,
Scriptable scope,
boolean evalScript) |
void |
NativeFunction.initScriptFunction(Context cx,
Scriptable scope) |
void |
ImporterTopLevel.initStandardObjects(Context cx,
boolean sealed) |
static ScriptableObject |
ScriptRuntime.initStandardObjects(Context cx,
ScriptableObject scope,
boolean sealed) |
static boolean |
ScriptRuntime.instanceOf(java.lang.Object a,
java.lang.Object b,
Context cx)
The instanceof operator.
|
java.lang.Object |
RegExpProxy.js_split(Context _cx,
Scriptable _scope,
java.lang.String thisString,
java.lang.Object[] _args) |
static Scriptable |
ScriptRuntime.lastStoredScriptable(Context cx) |
static long |
ScriptRuntime.lastUint32Result(Context cx) |
static Ref |
ScriptRuntime.memberRef(java.lang.Object obj,
java.lang.Object elem,
Context cx,
int memberTypeFlags) |
static Ref |
ScriptRuntime.memberRef(java.lang.Object obj,
java.lang.Object namespace,
java.lang.Object elem,
Context cx,
int memberTypeFlags) |
static java.lang.Object |
ScriptRuntime.name(Context cx,
Scriptable scope,
java.lang.String name)
Looks up a name in the scope chain and returns its value.
|
static java.lang.Object |
ScriptRuntime.nameIncrDecr(Scriptable scopeChain,
java.lang.String id,
Context cx,
int incrDecrMask) |
static Ref |
ScriptRuntime.nameRef(java.lang.Object name,
Context cx,
Scriptable scope,
int memberTypeFlags) |
static Ref |
ScriptRuntime.nameRef(java.lang.Object namespace,
java.lang.Object name,
Context cx,
Scriptable scope,
int memberTypeFlags) |
static Scriptable |
ScriptRuntime.newArrayLiteral(java.lang.Object[] objects,
int[] skipIndices,
Context cx,
Scriptable scope) |
static Scriptable |
ScriptRuntime.newBuiltinObject(Context cx,
Scriptable scope,
TopLevel.Builtins type,
java.lang.Object[] args) |
static Scriptable |
ScriptRuntime.newCatchScope(java.lang.Throwable t,
Scriptable lastCatchScope,
java.lang.String exceptionName,
Context cx,
Scriptable scope) |
static Scriptable |
ScriptRuntime.newObject(Context cx,
Scriptable scope,
java.lang.String constructorName,
java.lang.Object[] args) |
static Scriptable |
ScriptRuntime.newObject(java.lang.Object fun,
Context cx,
Scriptable scope,
java.lang.Object[] args)
Operator new.
|
static Scriptable |
ScriptRuntime.newObjectLiteral(java.lang.Object[] propertyIds,
java.lang.Object[] propertyValues,
Context cx,
Scriptable scope)
Deprecated.
This method only present for compatibility.
|
static Scriptable |
ScriptRuntime.newObjectLiteral(java.lang.Object[] propertyIds,
java.lang.Object[] propertyValues,
int[] getterSetters,
Context cx,
Scriptable scope) |
static java.lang.Object |
ScriptRuntime.newSpecial(Context cx,
java.lang.Object fun,
java.lang.Object[] args,
Scriptable scope,
int callType) |
protected void |
ContextFactory.observeInstructionCount(Context cx,
int instructionCount)
Implementation of
observeInstructionCount(int instructionCount) . |
protected void |
ContextFactory.onContextCreated(Context cx) |
protected void |
ContextFactory.onContextReleased(Context cx) |
static java.lang.Object |
ScriptRuntime.propIncrDecr(java.lang.Object obj,
java.lang.String id,
Context cx,
int incrDecrMask) |
Ref |
RefCallable.refCall(Context cx,
Scriptable thisObj,
java.lang.Object[] args)
Perform function call in reference context.
|
static java.lang.Object |
ScriptRuntime.refDel(Ref ref,
Context cx) |
static java.lang.Object |
ScriptRuntime.refGet(Ref ref,
Context cx) |
static java.lang.Object |
ScriptRuntime.refIncrDecr(Ref ref,
Context cx,
int incrDecrMask) |
static java.lang.Object |
ScriptRuntime.refSet(Ref ref,
java.lang.Object value,
Context cx) |
static java.lang.Object |
Interpreter.restartContinuation(NativeContinuation c,
Context cx,
Scriptable scope,
java.lang.Object[] args) |
java.lang.Object |
NativeFunction.resumeGenerator(Context cx,
Scriptable scope,
int operation,
java.lang.Object state,
java.lang.Object value)
Resume execution of a suspended generator.
|
static java.lang.Object |
Interpreter.resumeGenerator(Context cx,
Scriptable scope,
int operation,
java.lang.Object savedState,
java.lang.Object value) |
java.lang.Object |
ContextAction.run(Context cx)
Execute action using the supplied Context instance.
|
static java.lang.Object |
ScriptRuntime.searchDefaultNamespace(Context cx) |
abstract java.lang.Object |
Ref.set(Context cx,
java.lang.Object value) |
static java.lang.Object |
ScriptRuntime.setConst(Scriptable bound,
java.lang.Object value,
Context cx,
java.lang.String id) |
protected abstract void |
VMBridge.setContext(java.lang.Object contextHelper,
Context cx)
Associate
Context instance with the current thread or remove
the current association if cx is null. |
static java.lang.Object |
ScriptRuntime.setDefaultNamespace(java.lang.Object namespace,
Context cx) |
static java.lang.Object |
ScriptRuntime.setName(Scriptable bound,
java.lang.Object value,
Context cx,
Scriptable scope,
java.lang.String id) |
static java.lang.Object |
ScriptRuntime.setObjectElem(java.lang.Object obj,
java.lang.Object elem,
java.lang.Object value,
Context cx) |
static java.lang.Object |
ScriptRuntime.setObjectElem(Scriptable obj,
java.lang.Object elem,
java.lang.Object value,
Context cx) |
static java.lang.Object |
ScriptRuntime.setObjectIndex(java.lang.Object obj,
double dblIndex,
java.lang.Object value,
Context cx) |
static java.lang.Object |
ScriptRuntime.setObjectIndex(Scriptable obj,
int index,
java.lang.Object value,
Context cx) |
static java.lang.Object |
ScriptRuntime.setObjectProp(java.lang.Object obj,
java.lang.String property,
java.lang.Object value,
Context cx)
Version of setObjectElem when elem is a valid JS identifier name.
|
static java.lang.Object |
ScriptRuntime.setObjectProp(Scriptable obj,
java.lang.String property,
java.lang.Object value,
Context cx) |
static void |
ScriptRuntime.setRegExpProxy(Context cx,
RegExpProxy proxy) |
static Ref |
ScriptRuntime.specialRef(java.lang.Object obj,
java.lang.String specialProperty,
Context cx) |
static void |
ScriptRuntime.storeUint32Result(Context cx,
long value) |
static java.lang.Object |
ScriptRuntime.strictSetName(Scriptable bound,
java.lang.Object value,
Context cx,
Scriptable scope,
java.lang.String id) |
static JavaScriptException |
ScriptRuntime.throwError(Context cx,
Scriptable scope,
java.lang.String message)
Equivalent to executing "new Error(message)" from JavaScript.
|
static Scriptable |
ScriptRuntime.toIterator(Context cx,
Scriptable scope,
Scriptable obj,
boolean keyOnly) |
static Scriptable |
ScriptRuntime.toObject(Context cx,
Scriptable scope,
java.lang.Object val)
Convert the value to an object.
|
static Scriptable |
ScriptRuntime.toObject(Context cx,
Scriptable scope,
java.lang.Object val,
java.lang.Class<?> staticClass)
Deprecated.
Use
ScriptRuntime.toObject(Context, Scriptable, Object) instead. |
static Scriptable |
ScriptRuntime.toObjectOrNull(Context cx,
java.lang.Object obj)
Warning: this doesn't allow to resolve primitive prototype properly when many top scopes are involved
|
static Scriptable |
ScriptRuntime.toObjectOrNull(Context cx,
java.lang.Object obj,
Scriptable scope) |
java.lang.Object |
WrapFactory.wrap(Context cx,
Scriptable scope,
java.lang.Object obj,
java.lang.Class<?> staticType)
Wrap the object.
|
Scriptable |
WrapFactory.wrapAsJavaObject(Context cx,
Scriptable scope,
java.lang.Object javaObject,
java.lang.Class<?> staticType)
Wrap Java object as Scriptable instance to allow full access to its
methods and fields from JavaScript.
|
Scriptable |
WrapFactory.wrapJavaClass(Context cx,
Scriptable scope,
java.lang.Class javaClass)
Wrap a Java class as Scriptable instance to allow access to its static
members and fields and use as constructor from JavaScript.
|
Scriptable |
WrapFactory.wrapNewObject(Context cx,
Scriptable scope,
java.lang.Object obj)
Wrap an object newly created by a constructor call.
|
Scriptable |
RegExpProxy.wrapRegExp(Context cx,
Scriptable scope,
java.lang.Object compiled) |
Constructor and Description |
---|
BoundFunction(Context cx,
Scriptable scope,
Callable targetFunction,
Scriptable boundThis,
java.lang.Object[] boundArgs) |
ImporterTopLevel(Context cx) |
ImporterTopLevel(Context cx,
boolean sealed) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
Require.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
Scriptable |
Require.construct(Context cx,
Scriptable scope,
java.lang.Object[] args) |
Require |
RequireBuilder.createRequire(Context cx,
Scriptable globalScope)
Creates a new require() function.
|
ModuleScript |
ModuleScriptProvider.getModuleScript(Context cx,
java.lang.String moduleId,
java.net.URI moduleUri,
Scriptable paths)
Returns a module script.
|
Scriptable |
Require.requireMain(Context cx,
java.lang.String mainModuleId)
Calling this method establishes a module as being the main module of the
program to which this require() instance belongs.
|
Constructor and Description |
---|
Require(Context cx,
Scriptable nativeScope,
ModuleScriptProvider moduleScriptProvider,
Script preExec,
Script postExec,
boolean sandboxed)
Creates a new instance of the require() function.
|
Modifier and Type | Method and Description |
---|---|
ModuleScript |
MultiModuleScriptProvider.getModuleScript(Context cx,
java.lang.String moduleId,
java.net.URI uri,
Scriptable paths) |
ModuleScript |
CachingModuleScriptProviderBase.getModuleScript(Context cx,
java.lang.String moduleId,
java.net.URI moduleUri,
Scriptable paths) |
ModuleScript |
SoftCachingModuleScriptProvider.getModuleScript(Context cx,
java.lang.String moduleId,
java.net.URI uri,
Scriptable paths) |
Modifier and Type | Method and Description |
---|---|
DebugFrame |
Debugger.getFrame(Context cx,
DebuggableScript fnOrScript)
Called when execution entered a particular function or script.
|
void |
Debugger.handleCompilationDone(Context cx,
DebuggableScript fnOrScript,
java.lang.String source)
Called when compilation of a particular function or script into internal
bytecode is done.
|
void |
DebugFrame.onDebuggerStatement(Context cx)
Called when the function or script executes a 'debugger' statement.
|
void |
DebugFrame.onEnter(Context cx,
Scriptable activation,
Scriptable thisObj,
java.lang.Object[] args)
Called when execution is ready to start bytecode interpretation for entered a particular function or script.
|
void |
DebugFrame.onExceptionThrown(Context cx,
java.lang.Throwable ex)
Called when thrown exception is handled by the function or script.
|
void |
DebugFrame.onExit(Context cx,
boolean byThrow,
java.lang.Object resultOrException)
Called when the function or script for this frame is about to return.
|
void |
DebugFrame.onLineChange(Context cx,
int lineNumber)
Called when executed code reaches new line in the source.
|
Modifier and Type | Method and Description |
---|---|
protected Context |
VMBridge_jdk13.getContext(java.lang.Object contextHelper) |
Modifier and Type | Method and Description |
---|---|
protected void |
VMBridge_jdk13.setContext(java.lang.Object contextHelper,
Context cx) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<?> |
VMBridge_jdk15.getJavaIterator(Context cx,
Scriptable scope,
java.lang.Object obj)
If "obj" is a java.util.Iterator or a java.lang.Iterable, return a
wrapping as a JavaScript Iterator.
|
Constructor and Description |
---|
JsonParser(Context cx,
Scriptable scope) |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
OptRuntime.call0(Callable fun,
Scriptable thisObj,
Context cx,
Scriptable scope)
Implement ....() call shrinking optimizer code.
|
static java.lang.Object |
OptRuntime.call1(Callable fun,
Scriptable thisObj,
java.lang.Object arg0,
Context cx,
Scriptable scope)
Implement ....(arg) call shrinking optimizer code.
|
static java.lang.Object |
OptRuntime.call2(Callable fun,
Scriptable thisObj,
java.lang.Object arg0,
java.lang.Object arg1,
Context cx,
Scriptable scope)
Implement ....(arg0, arg1) call shrinking optimizer code.
|
static java.lang.Object |
OptRuntime.callN(Callable fun,
Scriptable thisObj,
java.lang.Object[] args,
Context cx,
Scriptable scope)
Implement ....(arg0, arg1, ...) call shrinking optimizer code.
|
static java.lang.Object |
OptRuntime.callName(java.lang.Object[] args,
java.lang.String name,
Context cx,
Scriptable scope)
Implement name(args) call shrinking optimizer code.
|
static java.lang.Object |
OptRuntime.callName0(java.lang.String name,
Context cx,
Scriptable scope)
Implement name() call shrinking optimizer code.
|
static java.lang.Object |
OptRuntime.callProp0(java.lang.Object value,
java.lang.String property,
Context cx,
Scriptable scope)
Implement x.property() call shrinking optimizer code.
|
static java.lang.Object |
OptRuntime.callSpecial(Context cx,
Callable fun,
Scriptable thisObj,
java.lang.Object[] args,
Scriptable scope,
Scriptable callerThis,
int callType,
java.lang.String fileName,
int lineNumber) |
Function |
Codegen.createFunctionObject(Context cx,
Scriptable scope,
java.lang.Object bytecode,
java.lang.Object staticSecurityDomain) |
static java.lang.Object |
OptRuntime.elemIncrDecr(java.lang.Object obj,
double index,
Context cx,
int incrDecrMask) |
java.lang.String |
Codegen.getSourcePositionFromStack(Context cx,
int[] linep) |
static void |
OptRuntime.initFunction(NativeFunction fn,
int functionType,
Scriptable scope,
Context cx) |
static Scriptable |
OptRuntime.newArrayLiteral(java.lang.Object[] objects,
java.lang.String encodedInts,
int skipCount,
Context cx,
Scriptable scope) |
static java.lang.Object |
OptRuntime.newObjectSpecial(Context cx,
java.lang.Object fun,
java.lang.Object[] args,
Scriptable scope,
Scriptable callerThis,
int callType) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
RegExpImpl.action(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args,
int actionType) |
java.lang.Object |
NativeRegExp.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
java.lang.Object |
RegExpImpl.compileRegExp(Context cx,
java.lang.String source,
java.lang.String flags) |
Scriptable |
NativeRegExp.construct(Context cx,
Scriptable scope,
java.lang.Object[] args) |
java.lang.Object |
NativeRegExp.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
int |
RegExpImpl.find_split(Context cx,
Scriptable scope,
java.lang.String target,
java.lang.String separator,
Scriptable reObj,
int[] ip,
int[] matchlen,
boolean[] matched,
java.lang.String[][] parensp) |
static void |
NativeRegExp.init(Context cx,
Scriptable scope,
boolean sealed) |
java.lang.Object |
RegExpImpl.js_split(Context cx,
Scriptable scope,
java.lang.String target,
java.lang.Object[] args) |
Scriptable |
RegExpImpl.wrapRegExp(Context cx,
Scriptable scope,
java.lang.Object compiled) |
Modifier and Type | Method and Description |
---|---|
void |
Main.contextCreated(Context cx)
Deprecated.
The method is only present for compatibility and should not be called.
|
void |
Main.contextEntered(Context cx)
Deprecated.
The method is only present for compatibility and should not be called.
|
void |
Main.contextExited(Context cx)
Deprecated.
The method is only present for compatibility and should not be called.
|
void |
Main.contextReleased(Context cx)
Deprecated.
The method is only present for compatibility and should not be called.
|
static Dim.ContextData |
Dim.ContextData.get(Context cx)
Returns the ContextData for the given Context.
|
void |
Dim.StackFrame.onDebuggerStatement(Context cx)
Called when a 'debugger' statement is executed.
|
void |
Dim.StackFrame.onEnter(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
Called when the stack frame is entered.
|
void |
Dim.StackFrame.onExceptionThrown(Context cx,
java.lang.Throwable exception)
Called when an exception has been thrown.
|
void |
Dim.StackFrame.onExit(Context cx,
boolean byThrow,
java.lang.Object resultOrException)
Called when the stack frame has been left.
|
void |
Dim.StackFrame.onLineChange(Context cx,
int lineno)
Called when the current position has changed.
|
Modifier and Type | Method and Description |
---|---|
protected void |
JavaPolicySecurity.callProcessFileSecure(Context cx,
Scriptable scope,
java.lang.String filename) |
protected abstract void |
SecurityProxy.callProcessFileSecure(Context cx,
Scriptable scope,
java.lang.String filename) |
java.lang.Object |
JavaPolicySecurity.callWithDomain(java.lang.Object securityDomain,
Context cx,
Callable callable,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
static void |
Global.defineClass(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Load a Java class that defines a JavaScript object using the
conventions outlined in ScriptableObject.defineClass.
|
static java.lang.Object |
Global.deserialize(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj) |
static java.lang.Object |
Global.doctest(Context cx,
Scriptable thisObj,
java.lang.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 java.lang.Object |
Main.evaluateScript(Script script,
Context cx,
Scriptable scope) |
static void |
Global.gc(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj) |
java.lang.String[] |
Global.getPrompts(Context cx) |
protected boolean |
ShellContextFactory.hasFeature(Context cx,
int featureIndex) |
static void |
Global.help(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Print a help message.
|
void |
Global.init(Context cx) |
Require |
Global.installRequire(Context cx,
java.util.List<java.lang.String> modulePath,
boolean sandboxed) |
static void |
Global.load(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Load and execute a set of JavaScript source files.
|
static void |
Global.loadClass(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Load and execute a script compiled to a class file.
|
static Script |
Main.loadScriptFromSource(Context cx,
java.lang.String scriptSource,
java.lang.String path,
int lineno,
java.lang.Object securityDomain) |
protected void |
ShellContextFactory.onContextCreated(Context cx) |
static java.lang.Object |
Global.print(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Print the string values of its arguments.
|
static void |
Main.processFile(Context cx,
Scriptable scope,
java.lang.String filename) |
static void |
Main.processSource(Context cx,
java.lang.String filename)
Evaluate JavaScript source.
|
void |
QuitAction.quit(Context cx,
int exitCode) |
static void |
Global.quit(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Call embedding-specific quit action passing its argument as
int32 exit code.
|
static java.lang.Object |
Global.readFile(Context cx,
Scriptable thisObj,
java.lang.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 java.lang.Object |
Global.readUrl(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
The readUrl opens connection to the given URL, read all its data
and converts them to a string
using the specified character coding or default character coding if
explicit coding argument is not given.
|
static java.lang.Object |
Global.runCommand(Context cx,
Scriptable thisObj,
java.lang.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.
|
int |
Global.runDoctest(Context cx,
Scriptable scope,
java.lang.String session,
java.lang.String sourceName,
int lineNumber) |
static void |
Global.seal(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
The seal function seals all supplied arguments.
|
static void |
Global.serialize(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj) |
static java.lang.Object |
Global.spawn(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
The spawn function runs a given function or script in a different
thread.
|
static java.lang.Object |
Global.sync(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
The sync function creates a synchronized function (in the sense
of a Java synchronized method) from an existing function.
|
static java.lang.Object |
Global.toint32(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Convert the argument to int32 number.
|
static double |
Global.version(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Get and set the language version.
|
Constructor and Description |
---|
Global(Context cx) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
XMLObject.addValues(Context cx,
boolean thisIsLeft,
java.lang.Object value)
Custom + operator.
|
abstract boolean |
XMLObject.ecmaDelete(Context cx,
java.lang.Object id)
Implementation of ECMAScript [[Delete]].
|
abstract java.lang.Object |
XMLObject.ecmaGet(Context cx,
java.lang.Object id)
Implementation of ECMAScript [[Get]].
|
abstract boolean |
XMLObject.ecmaHas(Context cx,
java.lang.Object id)
Implementation of ECMAScript [[Has]].
|
abstract void |
XMLObject.ecmaPut(Context cx,
java.lang.Object id,
java.lang.Object value)
Implementation of ECMAScript [[Put]].
|
abstract Scriptable |
XMLObject.getExtraMethodSource(Context cx)
Return an additional object to look for methods that runtime should
consider during method search.
|
abstract boolean |
XMLLib.isXMLName(Context cx,
java.lang.Object name) |
abstract Ref |
XMLObject.memberRef(Context cx,
java.lang.Object elem,
int memberTypeFlags)
Generic reference to implement x.@y, x..y etc.
|
abstract Ref |
XMLObject.memberRef(Context cx,
java.lang.Object namespace,
java.lang.Object elem,
int memberTypeFlags)
Generic reference to implement x::ns, x.@ns::y, x..@ns::y etc.
|
abstract Ref |
XMLLib.nameRef(Context cx,
java.lang.Object namespace,
java.lang.Object name,
Scriptable scope,
int memberTypeFlags) |
abstract Ref |
XMLLib.nameRef(Context cx,
java.lang.Object name,
Scriptable scope,
int memberTypeFlags) |
abstract java.lang.Object |
XMLLib.toDefaultXmlNamespace(Context cx,
java.lang.Object uriValue)
Construct namespace for default xml statement.
|