|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
ContextFactory.addListener(ContextFactory.Listener)
.
A simple way to upgrate the current code to new API is to replace
Context.addContextListener(listener) with
ContextFactory.getGlobal().addListener(listener).
Context
instances or to notify about Context execution.Context
creation and release events.ContextAction.run(Context cx)
using the Context instance associated with the current thread.
Callable.call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
using the Context instance associated with the current thread.
ContextAction.run(Context cx)
using the Context
instance associated with the current thread.
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.
Context.compileReader(Reader in, String sourceName, int lineno,
Object securityDomain)
.
Context
object.
Context
instance is no longer
associated with the current thread.
FunctionObject.getTypeTag(Class)
and FunctionObject.convertArg(Context, Scriptable, Object, int)
for type convertion.
GeneratedClassLoader
with restrictions imposed by
staticDomain and all current stack frames.
Scriptable
instance using the default
constructor for the class of the underlying Java method.
Context.decompileScript(Script script, int indent)
instead.
The implementation simply calls decompileScript(script, indent) ignoring the scope argument.
ContextFactory.seal()
to seal
appropriate ContextFactory().
SecurityController.callWithDomain(Object securityDomain, Context cx, Callable callable, Scriptable scope, Scriptable thisObj, Object[] args)
.
ScriptableObject.getAttributes(String name)
. The engine always
ignored the start argument.
ScriptableObject.getAttributes(int index)
. The engine always
ignored the start argument.
RhinoException.columnNumber()
from the super class.
RhinoException.columnNumber()
from the super class.
Context.getUndefinedValue()
.
ContextFactory
instance used to create this Context
or the result of ContextFactory.getGlobal()
if no factory
was used for Context creation.
observeInstructionCount()
.
FunctionObject.getArity()
.
RhinoException.lineNumber()
from the super class.
RhinoException.lineNumber()
from the super class.
RhinoException.lineNumber()
from the super class.
DebugFrame.onLineChange().
- getLineSource() -
Method in class org.mozilla.javascript.EcmaError
- Deprecated. Use
RhinoException.lineSource()
from the super class.
- getLineSource() -
Method in class org.mozilla.javascript.EvaluatorException
- Deprecated. Use
RhinoException.lineSource()
from the super class.
- getLocale() -
Method in class org.mozilla.javascript.Context
- Get the current locale.
- getMainMethodClass() -
Method in class org.mozilla.javascript.optimizer.ClassCompiler
- Get the name of the class for main method implementation.
- getMessage() -
Method in class org.mozilla.javascript.RhinoException
-
- getMethodOrConstructor() -
Method in class org.mozilla.javascript.FunctionObject
- Get Java method or constructor this function represent.
- getName() -
Method in class org.mozilla.javascript.EcmaError
- Gets the name of the error.
- getObjectPrototype(Scriptable) -
Static method in class org.mozilla.javascript.ScriptableObject
- Get the Object.prototype property.
- getOptimizationLevel() -
Method in class org.mozilla.javascript.CompilerEnvirons
-
- getOptimizationLevel() -
Method in class org.mozilla.javascript.Context
- Get the current optimization level.
- getParamAndVarCount() -
Method in interface org.mozilla.javascript.debug.DebuggableScript
- Get number of declared parameters and local variables.
- getParamCount() -
Method in interface org.mozilla.javascript.debug.DebuggableScript
- Get number of declared parameters in function.
- getParamOrVarName(int) -
Method in interface org.mozilla.javascript.debug.DebuggableScript
- Get name of a declared parameter or local variable.
- getParent() -
Method in interface org.mozilla.javascript.debug.DebuggableScript
-
- getParentScope() -
Method in interface org.mozilla.javascript.Scriptable
- Get the parent scope of the object.
- getParentScope() -
Method in class org.mozilla.javascript.ScriptableObject
- Returns the parent (enclosing) scope of the object.
- getProperty(Scriptable, String) -
Static method in class org.mozilla.javascript.ScriptableObject
- Gets a named property from an object or any object in its prototype chain.
- getProperty(Scriptable, int) -
Static method in class org.mozilla.javascript.ScriptableObject
- Gets an indexed property from an object or any object in its prototype chain.
- getPropertyIds(Scriptable) -
Static method in class org.mozilla.javascript.ScriptableObject
- Returns an array of all ids from an object and its prototypes.
- getPrototype() -
Method in interface org.mozilla.javascript.Scriptable
- Get the prototype of the object.
- getPrototype() -
Method in class org.mozilla.javascript.ScriptableObject
- Returns the prototype of the object.
- getSourceName() -
Method in class org.mozilla.javascript.EcmaError
- Deprecated. Use
RhinoException.sourceName()
from the super class.
- getSourceName() -
Method in class org.mozilla.javascript.EvaluatorException
- Deprecated. Use
RhinoException.sourceName()
from the super class.
- getSourceName() -
Method in class org.mozilla.javascript.JavaScriptException
- Deprecated. Use
RhinoException.sourceName()
from the super class.
- getSourceName() -
Method in interface org.mozilla.javascript.debug.DebuggableScript
- Get the name of the source (usually filename or URL)
of the script.
- getTargetExtends() -
Method in class org.mozilla.javascript.optimizer.ClassCompiler
- Get the class that the generated target will extend.
- getTargetImplements() -
Method in class org.mozilla.javascript.optimizer.ClassCompiler
- Get the interfaces that the generated target will implement.
- getThreadLocal(Object) -
Method in class org.mozilla.javascript.Context
- Get a value corresponding to a key.
- getTopLevelScope(Scriptable) -
Static method in class org.mozilla.javascript.ScriptableObject
- Get the global scope.
- getTopScopeValue(Scriptable, Object) -
Static method in class org.mozilla.javascript.ScriptableObject
- Get arbitrary application-specific value associated with the top scope
of the given scope.
- getTypeTag(Class) -
Static method in class org.mozilla.javascript.FunctionObject
-
- getUndefinedValue() -
Static method in class org.mozilla.javascript.Context
- Get the singleton object that represents the JavaScript Undefined value.
- getValue() -
Method in class org.mozilla.javascript.JavaScriptException
-
- getWrapFactory() -
Method in class org.mozilla.javascript.Context
- Return the current WrapHandler, or null if none is defined.
- getWrapHandler() -
Method in class org.mozilla.javascript.Context
- Deprecated. Use
WrapFactory
and Context.getWrapFactory()
.
- getWrappedException() -
Method in class org.mozilla.javascript.WrappedException
- Get the wrapped exception.
Context.hasFeature(int)
and
Context.FEATURE_DYNAMIC_SCOPE
to control dynamic scoping that also works
with nested functions defined by functions in the shared scope.
Context.hasFeature(int featureIndex)
.
SecurityController
was already installed.
false
if result of Java method, which is instance of
String
, Number
, Boolean
and
Character
, should be used directly as JavaScript primitive
type.
WrappedException.WrappedException(Throwable)
to report
exceptions in Java code.
Context
instance to be associated with the current
thread.
get
if the property is not
found.
Context.observeInstructionCount(int instructionCount)
.
ContextFactory.removeListener(ContextFactory.Listener)
.
A simple way to upgrate the current code to new API is to replace
Context.removeContextListener(listener) with
ContextFactory.getGlobal().removeListener(listener).
Context.enter()
and Context.exit()
methods will
throw an exception.
ScriptableObject.setAttributes(String name, int attributes)
.
The engine always ignored the start argument.
ScriptableObject.setAttributes(int index, int attributes)
.
The engine always ignored the start argument.
ClassCache.get(Scriptable)
and
ClassCache.setCachingEnabled(boolean)
.
Context.hasFeature(int)
and
Context.FEATURE_DYNAMIC_SCOPE
to control dynamic scoping that also works
with nested functions defined by functions in the shared scope.
ScriptableObject
through reflection should be
replaced by direct calls to invoker code generated at runtime.
WrapFactory
and Context.setWrapFactory(WrapFactory)
.
Context.toObject(Object, Scriptable)
.
WrappedException.getWrappedException()
instead.
Context.setWrapFactory(WrapFactory)
Once an instance of this class or an extension of this class is enabled
for a given context (by calling setWrapFactory on that context), Rhino
will call the methods of this class whenever it needs to wrap a value
resulting from a call to a Java method or an access to a Java field.
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |