Deprecated Methods |
org.mozilla.javascript.Context.addContextListener(ContextListener)
Use
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). |
org.mozilla.javascript.Context.compileReader(Scriptable, Reader, String, int, Object)
Use
Context.compileReader(Reader in, String sourceName, int lineno,
Object securityDomain) . |
org.mozilla.javascript.FunctionObject.convertArg(Context, Scriptable, Object, Class)
Use FunctionObject.getTypeTag(Class)
and FunctionObject.convertArg(Context, Scriptable, Object, int)
for type convertion. |
org.mozilla.javascript.Context.decompileScript(Script, Scriptable, int)
Use Context.decompileScript(Script script, int indent)
instead.
The implementation simply calls decompileScript(script, indent)
ignoring the scope argument. |
org.mozilla.javascript.Context.disableStaticContextListening()
Use ContextFactory.seal() to seal
appropriate ContextFactory(). |
org.mozilla.javascript.SecurityController.execWithDomain(Context, Scriptable, Script, Object)
The application should not override this method and instead
override
SecurityController.callWithDomain(Object securityDomain, Context cx, Callable callable, Scriptable scope, Scriptable thisObj, Object[] args) . |
org.mozilla.javascript.ScriptableObject.getAttributes(int, Scriptable)
Use ScriptableObject.getAttributes(int index) . The engine always
ignored the start argument. |
org.mozilla.javascript.ScriptableObject.getAttributes(String, Scriptable)
Use ScriptableObject.getAttributes(String name) . The engine always
ignored the start argument. |
org.mozilla.javascript.EcmaError.getColumnNumber()
Use RhinoException.columnNumber() from the super class. |
org.mozilla.javascript.EvaluatorException.getColumnNumber()
Use RhinoException.columnNumber() from the super class. |
org.mozilla.javascript.EcmaError.getErrorObject()
Always returns result of Context.getUndefinedValue() . |
org.mozilla.javascript.EcmaError.getLineNumber()
Use RhinoException.lineNumber() from the super class. |
org.mozilla.javascript.EvaluatorException.getLineNumber()
Use RhinoException.lineNumber() from the super class. |
org.mozilla.javascript.JavaScriptException.getLineNumber()
Use RhinoException.lineNumber() from the super class. |
org.mozilla.javascript.EcmaError.getLineSource()
Use RhinoException.lineSource() from the super class. |
org.mozilla.javascript.EvaluatorException.getLineSource()
Use RhinoException.lineSource() from the super class. |
org.mozilla.javascript.EcmaError.getSourceName()
Use RhinoException.sourceName() from the super class. |
org.mozilla.javascript.EvaluatorException.getSourceName()
Use RhinoException.sourceName() from the super class. |
org.mozilla.javascript.JavaScriptException.getSourceName()
Use RhinoException.sourceName() from the super class. |
org.mozilla.javascript.Context.getWrapHandler()
Use WrapFactory and Context.getWrapFactory() . |
org.mozilla.javascript.Context.hasCompileFunctionsWithDynamicScope()
Use 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. |
org.mozilla.javascript.ImporterTopLevel.importPackage(Context, Scriptable, Object[], Function)
Kept only for compatibility. |
org.mozilla.javascript.Context.removeContextListener(ContextListener)
Use
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). |
org.mozilla.javascript.ScriptableObject.setAttributes(int, Scriptable, int)
Use ScriptableObject.setAttributes(int index, int attributes) .
The engine always ignored the start argument. |
org.mozilla.javascript.ScriptableObject.setAttributes(String, Scriptable, int)
Use ScriptableObject.setAttributes(String name, int attributes) .
The engine always ignored the start argument. |
org.mozilla.javascript.Context.setCachingEnabled(boolean)
Use ClassCache.get(Scriptable) and
ClassCache.setCachingEnabled(boolean) . |
org.mozilla.javascript.Context.setCompileFunctionsWithDynamicScope(boolean)
Use 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. |
org.mozilla.javascript.Context.setWrapHandler(WrapHandler)
Use WrapFactory and Context.setWrapFactory(WrapFactory) . |
org.mozilla.javascript.Context.toObject(Object, Scriptable, Class)
Use Context.toObject(Object, Scriptable) . |
org.mozilla.javascript.WrappedException.unwrap()
Use WrappedException.getWrappedException() instead. |