Uses of Class
org.mozilla.javascript.Context

Packages that use Context
org.mozilla.javascript   
org.mozilla.javascript.commonjs.module Provides the public API for the CommonJS Modules/1.1 implementation. 
org.mozilla.javascript.commonjs.module.provider Provides default implementations for module providers. 
org.mozilla.javascript.debug   
org.mozilla.javascript.jdk13   
org.mozilla.javascript.jdk15   
org.mozilla.javascript.json   
org.mozilla.javascript.optimizer   
org.mozilla.javascript.regexp   
org.mozilla.javascript.xml   
 

Uses of Context in org.mozilla.javascript
 

Methods in org.mozilla.javascript that return Context
static Context Context.enter()
          Same as calling ContextFactory.enterContext() on the global ContextFactory instance.
 Context ContextFactory.enter()
          Deprecated. use ContextFactory.enterContext() instead
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(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.
 

Methods in org.mozilla.javascript with parameters of type Context
 Object RegExpProxy.action(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, int actionType)
           
static Object ScriptRuntime.add(Object val1, Object val2, Context cx)
           
static void ScriptRuntime.addInstructionCount(Context cx, int instructionsToAdd)
           
static Object ScriptRuntime.applyOrCall(boolean isApply, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
          Function.prototype.apply and Function.prototype.call See Ecma 15.3.4.[34]
static Scriptable ScriptRuntime.bind(Context cx, Scriptable scope, String id)
          Returns the object in the scope chain that has a given property.
abstract  Object PolicySecurityController.SecureCaller.call(Callable callable, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
abstract  Object SecureCaller.call(Callable callable, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
static Object ScriptRuntime.call(Context cx, Object fun, Object thisArg, Object[] args, Scriptable scope)
          Deprecated. The method is only present for compatibility.
 Object BaseFunction.call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
          Should be overridden.
 Object BoundFunction.call(Context cx, Scriptable scope, Scriptable thisObj, Object[] extraArgs)
           
 Object Callable.call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
          Perform the call.
 Object Delegator.call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object Function.call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
          Call the function.
 Object FunctionObject.call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
          Performs conversions on argument types if needed and invokes the underlying Java method or constructor.
 Object IdFunctionObject.call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object NativeContinuation.call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object NativeJavaClass.call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object NativeJavaConstructor.call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object NativeJavaMethod.call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object NativeJavaTopPackage.call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object Synchronizer.call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
static Object ScriptableObject.callMethod(Context cx, Scriptable obj, String methodName, Object[] args)
          Call a method of an object.
static Ref ScriptRuntime.callRef(Callable function, Scriptable thisObj, Object[] args, Context cx)
          Perform function call in reference context.
static Object ScriptRuntime.callSpecial(Context cx, Callable fun, Scriptable thisObj, Object[] args, Scriptable scope, Scriptable callerThis, int callType, String filename, int lineNumber)
           
 Object PolicySecurityController.callWithDomain(Object securityDomain, Context cx, Callable callable, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object SecurityController.callWithDomain(Object securityDomain, Context cx, Callable callable, Scriptable scope, Scriptable thisObj, 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.
static NativeContinuation Interpreter.captureContinuation(Context cx)
           
static RegExpProxy ScriptRuntime.checkRegExpProxy(Context cx)
           
 Object RegExpProxy.compileRegExp(Context cx, String source, String flags)
           
 Scriptable BaseFunction.construct(Context cx, Scriptable scope, Object[] args)
           
 Scriptable BoundFunction.construct(Context cx, Scriptable scope, Object[] extraArgs)
           
 Scriptable Delegator.construct(Context cx, Scriptable scope, 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 Function.construct(Context cx, Scriptable scope, Object[] args)
          Call the function as a constructor.
 Scriptable NativeContinuation.construct(Context cx, Scriptable scope, Object[] args)
           
 Scriptable NativeJavaClass.construct(Context cx, Scriptable scope, Object[] args)
           
 Scriptable NativeJavaTopPackage.construct(Context cx, Scriptable scope, Object[] args)
           
static EcmaError NativeGlobal.constructError(Context cx, String error, String message, Scriptable scope)
          Deprecated. Use ScriptRuntime.constructError(String,String) instead.
static EcmaError NativeGlobal.constructError(Context cx, String error, String message, Scriptable scope, String sourceName, int lineNumber, int columnNumber, String lineSource)
          Deprecated. Use ScriptRuntime.constructError(String,String,String,int,String,int) instead.
 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 Object FunctionObject.convertArg(Context cx, Scriptable scope, Object arg, Class<?> desired)
          Deprecated. Use FunctionObject.getTypeTag(Class) and FunctionObject.convertArg(Context, Scriptable, Object, int) for type conversion.
static Object FunctionObject.convertArg(Context cx, Scriptable scope, Object arg, int typeTag)
           
 Function Evaluator.createFunctionObject(Context cx, Scriptable scope, Object bytecode, Object staticSecurityDomain)
          Create a function object.
 Function Interpreter.createFunctionObject(Context cx, Scriptable scope, Object bytecode, Object staticSecurityDomain)
           
 Scriptable BaseFunction.createObject(Context cx, Scriptable scope)
          Creates new script object.
 Scriptable FunctionObject.createObject(Context cx, Scriptable scope)
          Return new Scriptable instance using the default constructor for the class of the underlying Java method.
 Scriptable IdFunctionObject.createObject(Context cx, Scriptable scope)
           
 void ScriptableObject.defineOwnProperties(Context cx, ScriptableObject props)
          Defines one or more properties on this object.
 void IdScriptableObject.defineOwnProperty(Context cx, Object key, ScriptableObject desc)
           
 void ScriptableObject.defineOwnProperty(Context cx, Object id, ScriptableObject desc)
          Defines a property on an object.
protected  void NativeArray.defineOwnProperty(Context cx, Object id, ScriptableObject desc, boolean checkValid)
           
protected  void ScriptableObject.defineOwnProperty(Context cx, Object id, ScriptableObject desc, boolean checkValid)
          Defines a property on an object.
 boolean Ref.delete(Context cx)
           
static Object ScriptRuntime.delete(Object obj, Object id, Context cx)
          Deprecated.  
static Object ScriptRuntime.delete(Object obj, Object id, Context cx, boolean isName)
          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, Object elem, Context cx)
           
protected  Object ContextFactory.doTopCall(Callable callable, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
          Execute top call to script or function.
static Object ScriptRuntime.doTopCall(Callable callable, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
static Object ScriptRuntime.elemIncrDecr(Object obj, 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(Object obj, Context cx, Scriptable scope)
           
static Object ScriptRuntime.enumId(Object enumObj, Context cx)
           
static Object ScriptRuntime.enumInit(Object value, Context cx, boolean enumValues)
           
static Object ScriptRuntime.enumInit(Object value, Context cx, int enumType)
           
static Object ScriptRuntime.enumValue(Object enumObj, Context cx)
           
static String ScriptRuntime.escapeAttributeValue(Object value, Context cx)
          Escapes the reserved characters in a value of an attribute
static String ScriptRuntime.escapeTextValue(Object value, Context cx)
          Escapes the reserved characters in a value of a text node
static Object ScriptRuntime.evalSpecial(Context cx, Scriptable scope, Object thisArg, Object[] args, String filename, int lineNumber)
          The eval function property of the global object.
 Object Script.exec(Context cx, Scriptable scope)
          Execute the script.
 Object BaseFunction.execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object IdFunctionCall.execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
          'thisObj' will be null if invoked as constructor, in which case instance of Scriptable should be returned
 Object IdScriptableObject.execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
          'thisObj' will be null if invoked as constructor, in which case instance of Scriptable should be returned.
 Object ImporterTopLevel.execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object JavaAdapter.execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object NativeArray.execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object NativeCall.execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object NativeContinuation.execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object NativeGlobal.execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object NativeIterator.execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object NativeJavaTopPackage.execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object NativeJSON.execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object NativeObject.execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object NativeWith.execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object NativeGenerator.execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object SecurityController.execWithDomain(Context cx, Scriptable scope, Script script, 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, String target, String separator, Scriptable re, int[] ip, int[] matchlen, boolean[] matched, String[][] parensp)
           
abstract  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(Object obj, 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)
           
 Iterator<?> VMBridge.getJavaIterator(Context cx, Scriptable scope, 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(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 Object ScriptRuntime.getObjectElem(Object obj, Object elem, Context cx)
          Call obj.[[Get]](id)
static Object ScriptRuntime.getObjectElem(Object obj, Object elem, Context cx, Scriptable scope)
          Call obj.[[Get]](id)
static Object ScriptRuntime.getObjectElem(Scriptable obj, Object elem, Context cx)
           
static Object ScriptRuntime.getObjectIndex(Object obj, double dblIndex, Context cx)
           
static Object ScriptRuntime.getObjectIndex(Scriptable obj, int index, Context cx)
           
static Object ScriptRuntime.getObjectProp(Object obj, String property, Context cx)
          Version of getObjectElem when elem is a valid JS identifier name.
static Object ScriptRuntime.getObjectProp(Object obj, String property, Context cx, Scriptable scope)
           
static Object ScriptRuntime.getObjectProp(Scriptable obj, String property, Context cx)
           
static Object ScriptRuntime.getObjectPropNoWarn(Object obj, String property, Context cx)
           
protected  ScriptableObject IdScriptableObject.getOwnPropertyDescriptor(Context cx, Object id)
           
protected  ScriptableObject NativeArray.getOwnPropertyDescriptor(Context cx, Object id)
           
protected  ScriptableObject ScriptableObject.getOwnPropertyDescriptor(Context cx, Object id)
           
static Callable ScriptRuntime.getPropFunctionAndThis(Object obj, 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(Object obj, 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  org.mozilla.javascript.ScriptableObject.Slot ScriptableObject.getSlot(Context cx, Object id, int accessType)
           
 String Evaluator.getSourcePositionFromStack(Context cx, int[] linep)
          Get the source position information by examining the stack.
 String Interpreter.getSourcePositionFromStack(Context cx, int[] linep)
           
static Scriptable ScriptRuntime.getTopCallScope(Context cx)
           
static Callable ScriptRuntime.getValueFunctionAndThis(Object value, Context cx)
          Prepare for calling (...): return function corresponding to and make parent scope of the function available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
 boolean Ref.has(Context cx)
           
protected  boolean ContextFactory.hasFeature(Context cx, int featureIndex)
          Implementation of hasFeature(int featureIndex).
static boolean ScriptRuntime.hasObjectElem(Scriptable target, Object elem, Context cx)
           
static boolean ScriptRuntime.hasTopCall(Context cx)
           
 void ImporterTopLevel.importPackage(Context cx, Scriptable thisObj, Object[] args, Function funObj)
          Deprecated. Kept only for compatibility.
static boolean ScriptRuntime.in(Object a, Object b, Context cx)
          The in operator.
static void ImporterTopLevel.init(Context cx, Scriptable scope, boolean sealed)
           
static void JavaAdapter.init(Context cx, Scriptable scope, boolean sealed)
           
static void NativeContinuation.init(Context cx, Scriptable scope, boolean sealed)
           
static void NativeGlobal.init(Context cx, Scriptable scope, boolean sealed)
           
static void NativeJavaTopPackage.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(Object a, Object b, Context cx)
          The instanceof operator.
 Object RegExpProxy.js_split(Context _cx, Scriptable _scope, String thisString, Object[] _args)
           
static Scriptable ScriptRuntime.lastStoredScriptable(Context cx)
           
static long ScriptRuntime.lastUint32Result(Context cx)
           
static Ref ScriptRuntime.memberRef(Object obj, Object elem, Context cx, int memberTypeFlags)
           
static Ref ScriptRuntime.memberRef(Object obj, Object namespace, Object elem, Context cx, int memberTypeFlags)
           
static Object ScriptRuntime.name(Context cx, Scriptable scope, String name)
          Looks up a name in the scope chain and returns its value.
static Object ScriptRuntime.nameIncrDecr(Scriptable scopeChain, String id, Context cx, int incrDecrMask)
           
static Ref ScriptRuntime.nameRef(Object name, Context cx, Scriptable scope, int memberTypeFlags)
           
static Ref ScriptRuntime.nameRef(Object namespace, Object name, Context cx, Scriptable scope, int memberTypeFlags)
           
static Scriptable ScriptRuntime.newArrayLiteral(Object[] objects, int[] skipIndices, Context cx, Scriptable scope)
           
static Scriptable ScriptRuntime.newBuiltinObject(Context cx, Scriptable scope, TopLevel.Builtins type, Object[] args)
           
static Scriptable ScriptRuntime.newCatchScope(Throwable t, Scriptable lastCatchScope, String exceptionName, Context cx, Scriptable scope)
           
static Scriptable ScriptRuntime.newObject(Context cx, Scriptable scope, String constructorName, Object[] args)
           
static Scriptable ScriptRuntime.newObject(Object fun, Context cx, Scriptable scope, Object[] args)
          Operator new.
static Scriptable ScriptRuntime.newObjectLiteral(Object[] propertyIds, Object[] propertyValues, Context cx, Scriptable scope)
          Deprecated. This method only present for compatibility.
static Scriptable ScriptRuntime.newObjectLiteral(Object[] propertyIds, Object[] propertyValues, int[] getterSetters, Context cx, Scriptable scope)
           
static Object ScriptRuntime.newSpecial(Context cx, Object fun, 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 Object NativeJSON.parse(Context cx, Scriptable scope, String jtext, Callable reviver)
           
static Object ScriptRuntime.propIncrDecr(Object obj, String id, Context cx, int incrDecrMask)
           
 Ref RefCallable.refCall(Context cx, Scriptable thisObj, Object[] args)
          Perform function call in reference context.
static Object ScriptRuntime.refDel(Ref ref, Context cx)
           
static Object ScriptRuntime.refGet(Ref ref, Context cx)
           
static Object ScriptRuntime.refIncrDecr(Ref ref, Context cx, int incrDecrMask)
           
static Object ScriptRuntime.refSet(Ref ref, Object value, Context cx)
           
static Object Interpreter.restartContinuation(NativeContinuation c, Context cx, Scriptable scope, Object[] args)
           
static Object Interpreter.resumeGenerator(Context cx, Scriptable scope, int operation, Object savedState, Object value)
           
 Object NativeFunction.resumeGenerator(Context cx, Scriptable scope, int operation, Object state, Object value)
          Resume execution of a suspended generator.
 Object ContextAction.run(Context cx)
          Execute action using the supplied Context instance.
static Object ScriptRuntime.searchDefaultNamespace(Context cx)
           
abstract  Object Ref.set(Context cx, Object value)
           
static Object ScriptRuntime.setConst(Scriptable bound, Object value, Context cx, String id)
           
protected abstract  void VMBridge.setContext(Object contextHelper, Context cx)
          Associate Context instance with the current thread or remove the current association if cx is null.
static Object ScriptRuntime.setDefaultNamespace(Object namespace, Context cx)
           
static Object ScriptRuntime.setName(Scriptable bound, Object value, Context cx, Scriptable scope, String id)
           
static Object ScriptRuntime.setObjectElem(Object obj, Object elem, Object value, Context cx)
           
static Object ScriptRuntime.setObjectElem(Scriptable obj, Object elem, Object value, Context cx)
           
static Object ScriptRuntime.setObjectIndex(Object obj, double dblIndex, Object value, Context cx)
           
static Object ScriptRuntime.setObjectIndex(Scriptable obj, int index, Object value, Context cx)
           
static Object ScriptRuntime.setObjectProp(Object obj, String property, Object value, Context cx)
          Version of setObjectElem when elem is a valid JS identifier name.
static Object ScriptRuntime.setObjectProp(Scriptable obj, String property, Object value, Context cx)
           
static void ScriptRuntime.setRegExpProxy(Context cx, RegExpProxy proxy)
           
static Ref ScriptRuntime.specialRef(Object obj, String specialProperty, Context cx)
           
static void ScriptRuntime.storeUint32Result(Context cx, long value)
           
static Object ScriptRuntime.strictSetName(Scriptable bound, Object value, Context cx, Scriptable scope, String id)
           
static Object NativeJSON.stringify(Context cx, Scriptable scope, Object value, Object replacer, Object space)
           
static JavaScriptException ScriptRuntime.throwError(Context cx, Scriptable scope, 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, Object val)
          Convert the value to an object.
static Scriptable ScriptRuntime.toObject(Context cx, Scriptable scope, Object val, Class<?> staticClass)
          Deprecated. Use ScriptRuntime.toObject(Context, Scriptable, Object) instead.
static Scriptable ScriptRuntime.toObjectOrNull(Context cx, Object obj)
          Warning: this doesn't allow to resolve primitive prototype properly when many top scopes are involved
static Scriptable ScriptRuntime.toObjectOrNull(Context cx, Object obj, Scriptable scope)
           
 Object WrapFactory.wrap(Context cx, Scriptable scope, Object obj, Class<?> staticType)
          Wrap the object.
 Scriptable WrapFactory.wrapAsJavaObject(Context cx, Scriptable scope, Object javaObject, Class<?> staticType)
          Wrap Java object as Scriptable instance to allow full access to its methods and fields from JavaScript.
static Scriptable ScriptRuntime.wrapException(Throwable t, Scriptable scope, Context cx)
           
 Scriptable WrapFactory.wrapJavaClass(Context cx, Scriptable 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.
 Scriptable WrapFactory.wrapNewObject(Context cx, Scriptable scope, Object obj)
          Wrap an object newly created by a constructor call.
 Scriptable RegExpProxy.wrapRegExp(Context cx, Scriptable scope, Object compiled)
           
static Scriptable ScriptRuntime.wrapRegExp(Context cx, Scriptable scope, Object compiled)
           
 

Constructors in org.mozilla.javascript with parameters of type Context
BoundFunction(Context cx, Scriptable scope, Callable targetFunction, Scriptable boundThis, Object[] boundArgs)
           
ImporterTopLevel(Context cx)
           
ImporterTopLevel(Context cx, boolean sealed)
           
 

Uses of Context in org.mozilla.javascript.commonjs.module
 

Methods in org.mozilla.javascript.commonjs.module with parameters of type Context
 Object Require.call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Scriptable Require.construct(Context cx, Scriptable scope, Object[] args)
           
 Require RequireBuilder.createRequire(Context cx, Scriptable globalScope)
          Creates a new require() function.
 ModuleScript ModuleScriptProvider.getModuleScript(Context cx, String moduleId, URI moduleUri, URI baseUri, Scriptable paths)
          Returns a module script.
 Scriptable 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.mozilla.javascript.commonjs.module with parameters of type Context
Require(Context cx, Scriptable nativeScope, ModuleScriptProvider moduleScriptProvider, Script preExec, Script postExec, boolean sandboxed)
          Creates a new instance of the require() function.
 

Uses of Context in org.mozilla.javascript.commonjs.module.provider
 

Methods in org.mozilla.javascript.commonjs.module.provider with parameters of type Context
 ModuleScript CachingModuleScriptProviderBase.getModuleScript(Context cx, String moduleId, URI moduleUri, URI baseUri, Scriptable paths)
           
 ModuleScript MultiModuleScriptProvider.getModuleScript(Context cx, String moduleId, URI uri, URI base, Scriptable paths)
           
 ModuleScript SoftCachingModuleScriptProvider.getModuleScript(Context cx, String moduleId, URI uri, URI base, Scriptable paths)
           
 

Uses of Context in org.mozilla.javascript.debug
 

Methods in org.mozilla.javascript.debug with parameters of type Context
 DebugFrame Debugger.getFrame(Context cx, DebuggableScript fnOrScript)
          Called when execution entered a particular function or script.
 void Debugger.handleCompilationDone(Context cx, DebuggableScript fnOrScript, 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, Object[] args)
          Called when execution is ready to start bytecode interpretation for entered a particular function or script.
 void DebugFrame.onExceptionThrown(Context cx, Throwable ex)
          Called when thrown exception is handled by the function or script.
 void DebugFrame.onExit(Context cx, boolean byThrow, 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.
 

Uses of Context in org.mozilla.javascript.jdk13
 

Methods in org.mozilla.javascript.jdk13 that return Context
protected  Context VMBridge_jdk13.getContext(Object contextHelper)
           
 

Methods in org.mozilla.javascript.jdk13 with parameters of type Context
protected  void VMBridge_jdk13.setContext(Object contextHelper, Context cx)
           
 

Uses of Context in org.mozilla.javascript.jdk15
 

Methods in org.mozilla.javascript.jdk15 with parameters of type Context
 Iterator<?> VMBridge_jdk15.getJavaIterator(Context cx, Scriptable scope, Object obj)
          If "obj" is a java.util.Iterator or a java.lang.Iterable, return a wrapping as a JavaScript Iterator.
 

Uses of Context in org.mozilla.javascript.json
 

Constructors in org.mozilla.javascript.json with parameters of type Context
JsonParser(Context cx, Scriptable scope)
           
 

Uses of Context in org.mozilla.javascript.optimizer
 

Methods in org.mozilla.javascript.optimizer with parameters of type Context
static Object OptRuntime.call0(Callable fun, Scriptable thisObj, Context cx, Scriptable scope)
          Implement ....() call shrinking optimizer code.
static Object OptRuntime.call1(Callable fun, Scriptable thisObj, Object arg0, Context cx, Scriptable scope)
          Implement ....(arg) call shrinking optimizer code.
static Object OptRuntime.call2(Callable fun, Scriptable thisObj, Object arg0, Object arg1, Context cx, Scriptable scope)
          Implement ....(arg0, arg1) call shrinking optimizer code.
static Object OptRuntime.callN(Callable fun, Scriptable thisObj, Object[] args, Context cx, Scriptable scope)
          Implement ....(arg0, arg1, ...) call shrinking optimizer code.
static Object OptRuntime.callName(Object[] args, String name, Context cx, Scriptable scope)
          Implement name(args) call shrinking optimizer code.
static Object OptRuntime.callName0(String name, Context cx, Scriptable scope)
          Implement name() call shrinking optimizer code.
static Object OptRuntime.callProp0(Object value, String property, Context cx, Scriptable scope)
          Implement x.property() call shrinking optimizer code.
static Object OptRuntime.callSpecial(Context cx, Callable fun, Scriptable thisObj, Object[] args, Scriptable scope, Scriptable callerThis, int callType, String fileName, int lineNumber)
           
 Function Codegen.createFunctionObject(Context cx, Scriptable scope, Object bytecode, Object staticSecurityDomain)
           
static Object OptRuntime.elemIncrDecr(Object obj, double index, Context cx, int incrDecrMask)
           
 String Codegen.getSourcePositionFromStack(Context cx, int[] linep)
           
static void OptRuntime.initFunction(NativeFunction fn, int functionType, Scriptable scope, Context cx)
           
static Scriptable OptRuntime.newArrayLiteral(Object[] objects, String encodedInts, int skipCount, Context cx, Scriptable scope)
           
static Object OptRuntime.newObjectSpecial(Context cx, Object fun, Object[] args, Scriptable scope, Scriptable callerThis, int callType)
           
 

Uses of Context in org.mozilla.javascript.regexp
 

Methods in org.mozilla.javascript.regexp with parameters of type Context
 Object RegExpImpl.action(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, int actionType)
           
 Object NativeRegExp.call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 Object RegExpImpl.compileRegExp(Context cx, String source, String flags)
           
 Scriptable NativeRegExp.construct(Context cx, Scriptable scope, Object[] args)
           
 Object NativeRegExp.execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
           
 int RegExpImpl.find_split(Context cx, Scriptable scope, String target, String separator, Scriptable reObj, int[] ip, int[] matchlen, boolean[] matched, String[][] parensp)
           
static void NativeRegExp.init(Context cx, Scriptable scope, boolean sealed)
           
 Object RegExpImpl.js_split(Context cx, Scriptable scope, String target, Object[] args)
           
 Scriptable RegExpImpl.wrapRegExp(Context cx, Scriptable scope, Object compiled)
           
 

Uses of Context in org.mozilla.javascript.xml
 

Methods in org.mozilla.javascript.xml with parameters of type Context
 Object XMLObject.addValues(Context cx, boolean thisIsLeft, Object value)
          Custom + operator.
abstract  boolean XMLObject.delete(Context cx, Object id)
          Implementation of ECMAScript [[Delete]].
abstract  Object XMLObject.get(Context cx, Object id)
          Implementation of ECMAScript [[Get]].
abstract  Scriptable XMLObject.getExtraMethodSource(Context cx)
          Return an additional object to look for methods that runtime should consider during method search.
abstract  Object XMLObject.getFunctionProperty(Context cx, int id)
           
abstract  Object XMLObject.getFunctionProperty(Context cx, String name)
           
abstract  boolean XMLObject.has(Context cx, Object id)
          Implementation of ECMAScript [[Has]].
abstract  boolean XMLLib.isXMLName(Context cx, Object name)
           
abstract  Ref XMLObject.memberRef(Context cx, Object elem, int memberTypeFlags)
          Generic reference to implement x.@y, x..y etc.
abstract  Ref XMLObject.memberRef(Context cx, Object namespace, Object elem, int memberTypeFlags)
          Generic reference to implement x::ns, x.@ns::y, x..@ns::y etc.
abstract  Ref XMLLib.nameRef(Context cx, Object namespace, Object name, Scriptable scope, int memberTypeFlags)
           
abstract  Ref XMLLib.nameRef(Context cx, Object name, Scriptable scope, int memberTypeFlags)
           
abstract  void XMLObject.put(Context cx, Object id, Object value)
          Implementation of ECMAScript [[Put]].
abstract  Object XMLLib.toDefaultXmlNamespace(Context cx, Object uriValue)
          Construct namespace for default xml statement.
 



Copyright © 2013. All Rights Reserved.