Deprecated API

Contents

Deprecated Methods

org.mozilla.javascript.ClassCache.isInvokerOptimizationEnabled()
The method always returns false.
org.mozilla.javascript.ClassCache.setInvokerOptimizationEnabled(boolean)
The method does nothing.
org.mozilla.javascript.Context.addContextListener(ContextListener)
org.mozilla.javascript.Context.removeContextListener(ContextListener)
org.mozilla.javascript.Context.compileReader(Scriptable,Reader,String,int,Object)
org.mozilla.javascript.Context.toObject(Object,Scriptable,Class)
org.mozilla.javascript.Context.toType(Object,Class)
org.mozilla.javascript.Context.hasCompileFunctionsWithDynamicScope()
org.mozilla.javascript.Context.setCompileFunctionsWithDynamicScope(boolean)
org.mozilla.javascript.Context.setCachingEnabled(boolean)
org.mozilla.javascript.EcmaError.getSourceName()
Use RhinoException.sourceName() from the super class.
org.mozilla.javascript.EcmaError.getLineNumber()
Use RhinoException.lineNumber() from the super class.
org.mozilla.javascript.EcmaError.getColumnNumber()
Use RhinoException.columnNumber() from the super class.
org.mozilla.javascript.EcmaError.getLineSource()
Use RhinoException.lineSource() from the super class.
org.mozilla.javascript.EcmaError.getErrorObject()
Always returns null.
org.mozilla.javascript.EvaluatorException.getSourceName()
Use RhinoException.sourceName() from the super class.
org.mozilla.javascript.EvaluatorException.getLineNumber()
Use RhinoException.lineNumber() from the super class.
org.mozilla.javascript.EvaluatorException.getColumnNumber()
Use RhinoException.columnNumber() from the super class.
org.mozilla.javascript.EvaluatorException.getLineSource()
Use RhinoException.lineSource() from the super class.
org.mozilla.javascript.FunctionObject.convertArg(Context,Scriptable,Object,Class)
org.mozilla.javascript.ImporterTopLevel.importPackage(Context,Scriptable,Object[],Function)
Kept only for compatibility.
org.mozilla.javascript.JavaScriptException.getSourceName()
Use RhinoException.sourceName() from the super class.
org.mozilla.javascript.JavaScriptException.getLineNumber()
Use RhinoException.lineNumber() from the super class.
org.mozilla.javascript.ScriptableObject.getAttributes(String,Scriptable)
Use getAttributes(String name).
org.mozilla.javascript.ScriptableObject.getAttributes(int,Scriptable)
Use getAttributes(int index).
org.mozilla.javascript.ScriptableObject.setAttributes(String,Scriptable,int)
Use setAttributes(String name, int attributes).
org.mozilla.javascript.ScriptableObject.setAttributes(int,Scriptable,int)
Use setAttributes(int index, int attributes).
org.mozilla.javascript.SecurityController.execWithDomain(Context,Scriptable,Script,Object)
The application should not override this method and instead override callWithDomain(Object securityDomain, Context cx, Callable callable, Scriptable scope, Scriptable thisObj, Object[] args).
org.mozilla.javascript.WrappedException.unwrap()

Deprecated Constructors

org.mozilla.javascript.EcmaError.EcmaError(Scriptable,String,int,int,String)
EcmaError error instances should not be constructed explicitly since they are generated by the engine.
org.mozilla.javascript.JavaScriptException.JavaScriptException(Object)
Use WrappedException.WrappedException(Throwable) to report exceptions in Java code.