A C D E F G H I J L M N O P R S T U V W

A

addActivationName(String) - Method in class org.mozilla.javascript.Context
Add a name to the list of names forcing the creation of real activation objects for functions.
addAsConstructor(Scriptable, Scriptable) - Method in class org.mozilla.javascript.FunctionObject
Define this function as a JavaScript constructor.
addContextListener(ContextListener) - Static method in class org.mozilla.javascript.Context
Deprecated.  
addExcludedName(String) - Method in class org.mozilla.javascript.serialize.ScriptableOutputStream
Adds a qualified name to the list of object to be excluded from serialization.
addListener(ContextFactory.Listener) - Method in class org.mozilla.javascript.ContextFactory
 
addOptionalExcludedName(String) - Method in class org.mozilla.javascript.serialize.ScriptableOutputStream
Adds a qualified name to the list of object to be excluded from serialization.
addPropertyChangeListener(PropertyChangeListener) - Method in class org.mozilla.javascript.Context
Register an object to receive notifications when a bound property has changed
associate(ScriptableObject) - Method in class org.mozilla.javascript.ClassCache
Associate ClassCache object with the given top-level scope.
associateValue(Object, Object) - Method in class org.mozilla.javascript.ScriptableObject
Associate arbitrary application-specific value with this object.
avoidObjectDetection() - Method in class org.mozilla.javascript.ScriptableObject
Emulate the SpiderMonkey (and Firefox) feature of allowing custom objects to avoid detection by normal "object detection" code patterns.

C

call(Context, Scriptable, Scriptable, Object[]) - Method in interface org.mozilla.javascript.Callable
Perform the call.
call(ContextAction) - Static method in class org.mozilla.javascript.Context
Deprecated. use ContextFactory.call(ContextAction) instead as this method relies on usage of a static singleton "global" ContextFactory.
call(ContextFactory, Callable, Scriptable, Scriptable, Object[]) - Static method in class org.mozilla.javascript.Context
Call Callable.call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) using the Context instance associated with the current thread.
call(ContextAction) - Method in class org.mozilla.javascript.ContextFactory
Call ContextAction.run(Context cx) using the Context instance associated with the current thread.
call(Context, Scriptable, Scriptable, Object[]) - Method in interface org.mozilla.javascript.Function
Call the function.
call(Context, Scriptable, Scriptable, Object[]) - Method in class org.mozilla.javascript.FunctionObject
Performs conversions on argument types if needed and invokes the underlying Java method or constructor.
call(Context, Scriptable, Scriptable, Object[]) - Method in class org.mozilla.javascript.Synchronizer
 
Callable - Interface in org.mozilla.javascript
Generic notion of callable object that can execute some script-related code upon request with specified values for script scope and this objects.
callMethod(Scriptable, String, Object[]) - Static method in class org.mozilla.javascript.ScriptableObject
Call a method of an object.
callMethod(Context, Scriptable, String, Object[]) - Static method in class org.mozilla.javascript.ScriptableObject
Call a method of an object.
callWithDomain(Object, Context, Callable, Scriptable, Scriptable, Object[]) - Method in class org.mozilla.javascript.SecurityController
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.
checkLanguageVersion(int) - Static method in class org.mozilla.javascript.Context
 
checkNotSealed() - Method in class org.mozilla.javascript.ContextFactory
 
checkOptimizationLevel(int) - Static method in class org.mozilla.javascript.Context
 
ClassCache - Class in org.mozilla.javascript
Cache of generated classes and data structures to access Java runtime from JavaScript.
ClassCache() - Constructor for class org.mozilla.javascript.ClassCache
 
ClassCompiler - Class in org.mozilla.javascript.optimizer
Generates class files from script sources.
ClassCompiler(CompilerEnvirons) - Constructor for class org.mozilla.javascript.optimizer.ClassCompiler
Construct ClassCompiler that uses the specified compiler environment when generating classes.
ClassShutter - Interface in org.mozilla.javascript
Embeddings that wish to filter Java classes that are visible to scripts through the LiveConnect, should implement this interface.
clearCaches() - Method in class org.mozilla.javascript.ClassCache
Empty caches of generated Java classes and Java reflection information.
columnNumber() - Method in exception org.mozilla.javascript.RhinoException
The column number of the location of the error, or zero if unknown.
compileFunction(Scriptable, String, String, int, Object) - Method in class org.mozilla.javascript.Context
Compile a JavaScript function.
compileReader(Scriptable, Reader, String, int, Object) - Method in class org.mozilla.javascript.Context
Deprecated.  
compileReader(Reader, String, int, Object) - Method in class org.mozilla.javascript.Context
Compiles the source in the given reader.
CompilerEnvirons - Class in org.mozilla.javascript
 
CompilerEnvirons() - Constructor for class org.mozilla.javascript.CompilerEnvirons
 
compileString(String, String, int, Object) - Method in class org.mozilla.javascript.Context
Compiles the source in the given string.
compileToClassFiles(String, String, int, String) - Method in class org.mozilla.javascript.optimizer.ClassCompiler
Compile JavaScript source into one or more Java class files.
CONST - Static variable in class org.mozilla.javascript.ScriptableObject
 
construct(Context, Scriptable, Object[]) - Method in interface org.mozilla.javascript.Function
Call the function as a constructor.
Context - Class in org.mozilla.javascript
This class represents the runtime context of an executing script.
Context() - Constructor for class org.mozilla.javascript.Context
Deprecated. use ContextFactory.enter() or ContextFactory.call(ContextAction) instead.
ContextAction - Interface in org.mozilla.javascript
Interface to represent arbitrary action that requires to have Context object associated with the current thread for its execution.
contextCreated(Context) - Method in interface org.mozilla.javascript.ContextFactory.Listener
Notify about newly created Context object.
ContextFactory - Class in org.mozilla.javascript
Factory class that Rhino runtime uses to create new Context instances.
ContextFactory() - Constructor for class org.mozilla.javascript.ContextFactory
 
ContextFactory.Listener - Interface in org.mozilla.javascript
Listener of Context creation and release events.
contextReleased(Context) - Method in interface org.mozilla.javascript.ContextFactory.Listener
Notify that the specified Context instance is no longer associated with the current thread.
convertArg(Context, Scriptable, Object, int) - Static method in class org.mozilla.javascript.FunctionObject
 
convertArg(Context, Scriptable, Object, Class) - Static method in class org.mozilla.javascript.FunctionObject
Deprecated. Use FunctionObject.getTypeTag(Class) and FunctionObject.convertArg(Context, Scriptable, Object, int) for type convertion.
createClassLoader(ClassLoader) - Method in class org.mozilla.javascript.Context
Create class loader for generated classes.
createClassLoader(ClassLoader) - Method in class org.mozilla.javascript.ContextFactory
Create class loader for generated classes.
createClassLoader(ClassLoader, Object) - Method in class org.mozilla.javascript.SecurityController
Get class loader-like object that can be used to define classes with the given security context.
createLoader(ClassLoader, Object) - Static method in class org.mozilla.javascript.SecurityController
Create GeneratedClassLoader with restrictions imposed by staticDomain and all current stack frames.
createObject(Context, Scriptable) - Method in class org.mozilla.javascript.FunctionObject
Return new Scriptable instance using the default constructor for the class of the underlying Java method.

D

DebuggableScript - Interface in org.mozilla.javascript.debug
This interface exposes debugging information from executable code (either functions or top-level scripts).
decompileFunction(Function, int) - Method in class org.mozilla.javascript.Context
Decompile a JavaScript Function.
decompileFunctionBody(Function, int) - Method in class org.mozilla.javascript.Context
Decompile the body of a JavaScript Function.
decompileScript(Script, int) - Method in class org.mozilla.javascript.Context
Decompile the script.
defineClass(String, byte[]) - Method in interface org.mozilla.javascript.GeneratedClassLoader
Define a new Java class.
defineClass(Scriptable, Class) - Static method in class org.mozilla.javascript.ScriptableObject
Defines JavaScript objects from a Java class that implements Scriptable.
defineClass(Scriptable, Class, boolean) - Static method in class org.mozilla.javascript.ScriptableObject
Defines JavaScript objects from a Java class, optionally allowing sealing.
defineClass(Scriptable, Class, boolean, boolean) - Static method in class org.mozilla.javascript.ScriptableObject
Defines JavaScript objects from a Java class, optionally allowing sealing and mapping of Java inheritance to JavaScript prototype-based inheritance.
defineConst(String, Scriptable) - Method in class org.mozilla.javascript.ScriptableObject
 
defineConstProperty(Scriptable, String) - Static method in class org.mozilla.javascript.ScriptableObject
Utility method to add properties to arbitrary Scriptable object.
defineFunctionProperties(String[], Class, int) - Method in class org.mozilla.javascript.ScriptableObject
Search for names in a class, adding the resulting methods as properties.
defineProperty(String, Object, int) - Method in class org.mozilla.javascript.ScriptableObject
Define a JavaScript property.
defineProperty(Scriptable, String, Object, int) - Static method in class org.mozilla.javascript.ScriptableObject
Utility method to add properties to arbitrary Scriptable object.
defineProperty(String, Class, int) - Method in class org.mozilla.javascript.ScriptableObject
Define a JavaScript property with getter and setter side effects.
defineProperty(String, Object, Method, Method, int) - Method in class org.mozilla.javascript.ScriptableObject
Define a JavaScript property.
delete(String) - Method in interface org.mozilla.javascript.Scriptable
Removes a property from this object.
delete(int) - Method in interface org.mozilla.javascript.Scriptable
Removes a property from this object.
delete(String) - Method in class org.mozilla.javascript.ScriptableObject
Removes a named property from the object.
delete(int) - Method in class org.mozilla.javascript.ScriptableObject
Removes the indexed property from the object.
deleteProperty(Scriptable, String) - Static method in class org.mozilla.javascript.ScriptableObject
Removes the property from an object or its prototype chain.
deleteProperty(Scriptable, int) - Static method in class org.mozilla.javascript.ScriptableObject
Removes the property from an object or its prototype chain.
details() - Method in exception org.mozilla.javascript.EcmaError
 
details() - Method in exception org.mozilla.javascript.JavaScriptException
 
details() - Method in exception org.mozilla.javascript.RhinoException
 
DONTENUM - Static variable in class org.mozilla.javascript.ScriptableObject
Property attribute indicating property is not enumerated.
doTopCall(Callable, Context, Scriptable, Scriptable, Object[]) - Method in class org.mozilla.javascript.ContextFactory
Execute top call to script or function.

E

EcmaError - Exception in org.mozilla.javascript
The class of exceptions raised by the engine as described in ECMA edition 3.
EcmaError(Scriptable, String, int, int, String) - Constructor for exception org.mozilla.javascript.EcmaError
Deprecated. EcmaError error instances should not be constructed explicitly since they are generated by the engine.
EMPTY - Static variable in class org.mozilla.javascript.ScriptableObject
The empty property attribute.
emptyArgs - Static variable in class org.mozilla.javascript.Context
Convenient value to use as zero-length array of objects.
enter() - Static method in class org.mozilla.javascript.Context
Deprecated. use ContextFactory.enter() or ContextFactory.call(ContextAction) instead as this method relies on usage of a static singleton "global" ContextFactory.
enter(Context) - Static method in class org.mozilla.javascript.Context
Deprecated. use ContextFactory.enterContext(Context) instead as this method relies on usage of a static singleton "global" ContextFactory.
enter() - Method in class org.mozilla.javascript.ContextFactory
Deprecated. use ContextFactory.enterContext() instead
enterContext() - Method in class org.mozilla.javascript.ContextFactory
Get a context associated with the current thread, creating one if need be.
enterContext(Context) - Method in class org.mozilla.javascript.ContextFactory
Get a Context associated with the current thread, using the given Context if need be.
equivalentValues(Object) - Method in class org.mozilla.javascript.ScriptableObject
Custom == operator.
error(String, String, int, String, int) - Method in interface org.mozilla.javascript.ErrorReporter
Report an error.
ErrorReporter - Interface in org.mozilla.javascript
This is interface defines a protocol for the reporting of errors during JavaScript translation or execution.
errorReporterProperty - Static variable in class org.mozilla.javascript.Context
 
evaluateReader(Scriptable, Reader, String, int, Object) - Method in class org.mozilla.javascript.Context
Evaluate a reader as JavaScript source.
evaluateString(Scriptable, String, String, int, Object) - Method in class org.mozilla.javascript.Context
Evaluate a JavaScript source string.
EvaluatorException - Exception in org.mozilla.javascript
The class of exceptions thrown by the JavaScript engine.
EvaluatorException(String) - Constructor for exception org.mozilla.javascript.EvaluatorException
 
EvaluatorException(String, String, int) - Constructor for exception org.mozilla.javascript.EvaluatorException
Create an exception with the specified detail message.
EvaluatorException(String, String, int, String, int) - Constructor for exception org.mozilla.javascript.EvaluatorException
Create an exception with the specified detail message.
excludeStandardObjectNames() - Method in class org.mozilla.javascript.serialize.ScriptableOutputStream
Adds the names of the standard objects and their prototypes to the list of excluded names.
exec(Context, Scriptable) - Method in interface org.mozilla.javascript.Script
Execute the script.
execIdCall(IdFunctionObject, Context, Scriptable, Scriptable, Object[]) - Method in class org.mozilla.javascript.ImporterTopLevel
 
execWithDomain(Context, Scriptable, Script, Object) - Method in class org.mozilla.javascript.SecurityController
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).
exit() - Static method in class org.mozilla.javascript.Context
Exit a block of code requiring a Context.
exit() - Method in class org.mozilla.javascript.ContextFactory
Deprecated. Use Context.exit() instead.

F

FEATURE_DYNAMIC_SCOPE - Static variable in class org.mozilla.javascript.Context
Control if dynamic scope should be used for name access.
FEATURE_E4X - Static variable in class org.mozilla.javascript.Context
Control if support for E4X(ECMAScript for XML) extension is available.
FEATURE_ENHANCED_JAVA_ACCESS - Static variable in class org.mozilla.javascript.Context
Enables enhanced access to Java.
FEATURE_LOCATION_INFORMATION_IN_ERROR - Static variable in class org.mozilla.javascript.Context
When the feature is on Rhino will add a "fileName" and "lineNumber" properties to Error objects automatically.
FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME - Static variable in class org.mozilla.javascript.Context
Control if member expression as function name extension is available.
FEATURE_NON_ECMA_GET_YEAR - Static variable in class org.mozilla.javascript.Context
Controls behaviour of Date.prototype.getYear().
FEATURE_PARENT_PROTO_PROPERTIES - Static variable in class org.mozilla.javascript.Context
Control if properties __proto__ and __parent__ are treated specially.
FEATURE_PARENT_PROTO_PROPRTIES - Static variable in class org.mozilla.javascript.Context
Deprecated. In previous releases, this name was given to FEATURE_PARENT_PROTO_PROPERTIES.
FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER - Static variable in class org.mozilla.javascript.Context
Control if reserved keywords are treated as identifiers.
FEATURE_STRICT_EVAL - Static variable in class org.mozilla.javascript.Context
Control if strict eval mode is enabled.
FEATURE_STRICT_MODE - Static variable in class org.mozilla.javascript.Context
Controls whether JS 1.5 'strict mode' is enabled.
FEATURE_STRICT_VARS - Static variable in class org.mozilla.javascript.Context
Control if strict variable mode is enabled.
FEATURE_TO_STRING_AS_SOURCE - Static variable in class org.mozilla.javascript.Context
Control if toString() should returns the same result as toSource() when applied to objects and arrays.
FEATURE_WARNING_AS_ERROR - Static variable in class org.mozilla.javascript.Context
Controls whether a warning should be treated as an error.
findPrototypeId(String) - Method in class org.mozilla.javascript.ImporterTopLevel
 
Function - Interface in org.mozilla.javascript
This is interface that all functions in JavaScript must implement.
FunctionObject - Class in org.mozilla.javascript
 
FunctionObject(String, Member, Scriptable) - Constructor for class org.mozilla.javascript.FunctionObject
Create a JavaScript function object from a Java method.

G

GeneratedClassLoader - Interface in org.mozilla.javascript
Interface to define classes from generated byte code.
generateObserverCount - Variable in class org.mozilla.javascript.Context
 
get(Scriptable) - Static method in class org.mozilla.javascript.ClassCache
Search for ClassCache object in the given scope.
get(String, Scriptable) - Method in class org.mozilla.javascript.ImporterTopLevel
 
get(String, Scriptable) - Method in interface org.mozilla.javascript.Scriptable
Get a named property from the object.
get(int, Scriptable) - Method in interface org.mozilla.javascript.Scriptable
Get a property from the object selected by an integral index.
get(String, Scriptable) - Method in class org.mozilla.javascript.ScriptableObject
Returns the value of the named property or NOT_FOUND.
get(int, Scriptable) - Method in class org.mozilla.javascript.ScriptableObject
Returns the value of the indexed property or NOT_FOUND.
getAllIds() - Method in class org.mozilla.javascript.ScriptableObject
Returns an array of ids for the properties of the object.
getApplicationClassLoader() - Method in class org.mozilla.javascript.Context
 
getApplicationClassLoader() - Method in class org.mozilla.javascript.ContextFactory
Get ClassLoader to use when searching for Java classes.
getArity() - Method in class org.mozilla.javascript.FunctionObject
Return the value defined by the method used to construct the object (number of parameters of the method, or 1 if the method is a "varargs" form).
getAssociatedValue(Object) - Method in class org.mozilla.javascript.ScriptableObject
Get arbitrary application-specific value associated with this object.
getAttributes(String, Scriptable) - Method in class org.mozilla.javascript.ScriptableObject
Deprecated. Use ScriptableObject.getAttributes(String name). The engine always ignored the start argument.
getAttributes(int, Scriptable) - Method in class org.mozilla.javascript.ScriptableObject
Deprecated. Use ScriptableObject.getAttributes(int index). The engine always ignored the start argument.
getAttributes(String) - Method in class org.mozilla.javascript.ScriptableObject
Get the attributes of a named property.
getAttributes(int) - Method in class org.mozilla.javascript.ScriptableObject
Get the attributes of an indexed property.
getClassName() - Method in class org.mozilla.javascript.ImporterTopLevel
 
getClassName() - Method in interface org.mozilla.javascript.Scriptable
Get the name of the set of objects implemented by this Java class.
getClassName() - Method in class org.mozilla.javascript.ScriptableObject
Return the name of the class.
getClassPrototype(Scriptable, String) - Static method in class org.mozilla.javascript.ScriptableObject
Get the prototype for the named class.
getColumnNumber() - Method in exception org.mozilla.javascript.EcmaError
Deprecated. Use RhinoException.columnNumber() from the super class.
getColumnNumber() - Method in exception org.mozilla.javascript.EvaluatorException
Deprecated. Use RhinoException.columnNumber() from the super class.
getCompilerEnv() - Method in class org.mozilla.javascript.optimizer.ClassCompiler
Get the compiler environment the compiler uses.
getCurrentContext() - Static method in class org.mozilla.javascript.Context
Get the current Context.
getDebuggableView(Script) - Static method in class org.mozilla.javascript.Context
Return DebuggableScript instance if any associated with the script.
getDebugger() - Method in class org.mozilla.javascript.Context
Return the current debugger.
getDebuggerContextData() - Method in class org.mozilla.javascript.Context
Return the debugger context data associated with current context.
getDefaultValue(Class) - Method in interface org.mozilla.javascript.Scriptable
Get the default value of the object with a given hint.
getDefaultValue(Class) - Method in class org.mozilla.javascript.ScriptableObject
Implements the [[DefaultValue]] internal method.
getDefaultValue(Scriptable, Class) - Static method in class org.mozilla.javascript.ScriptableObject
 
getDynamicSecurityDomain(Object) - Method in class org.mozilla.javascript.SecurityController
Get dynamic security domain that allows an action only if it is allowed by the current Java stack and securityDomain.
getE4xImplementationFactory() - Method in class org.mozilla.javascript.Context
Returns an object which specifies an E4X implementation to use within this Context.
getE4xImplementationFactory() - Method in class org.mozilla.javascript.ContextFactory
Provides a default XMLLib.Factory to be used by the Context instances produced by this factory.
getElements(Scriptable) - Method in class org.mozilla.javascript.Context
Get the elements of a JavaScript array.
getErrorMessage() - Method in exception org.mozilla.javascript.EcmaError
Gets the message corresponding to the error.
getErrorObject() - Method in exception org.mozilla.javascript.EcmaError
Deprecated. Always returns null.
getErrorReporter() - Method in class org.mozilla.javascript.CompilerEnvirons
 
getErrorReporter() - Method in class org.mozilla.javascript.Context
Get the current error reporter.
getFactory() - Method in class org.mozilla.javascript.Context
Return ContextFactory instance used to create this Context.
getFunction(int) - Method in interface org.mozilla.javascript.debug.DebuggableScript
 
getFunctionCount() - Method in interface org.mozilla.javascript.debug.DebuggableScript
 
getFunctionName() - Method in interface org.mozilla.javascript.debug.DebuggableScript
Get name of the function described by this script.
getFunctionName() - Method in class org.mozilla.javascript.FunctionObject
 
getFunctionPrototype(Scriptable) - Static method in class org.mozilla.javascript.ScriptableObject
Get the Function.prototype property.
getGetterOrSetter(String, int, boolean) - Method in class org.mozilla.javascript.ScriptableObject
Get the getter or setter for a given property.
getGlobal() - Static method in class org.mozilla.javascript.ContextFactory
Get global ContextFactory.
getIds() - Method in interface org.mozilla.javascript.Scriptable
Get an array of property ids.
getIds() - Method in class org.mozilla.javascript.ScriptableObject
Returns an array of ids for the properties of the object.
getImplementationVersion() - Method in class org.mozilla.javascript.Context
Get the implementation version.
getInstructionObserverThreshold() - Method in class org.mozilla.javascript.Context
Get threshold of executed instructions counter that triggers call to observeInstructionCount().
getLanguageVersion() - Method in class org.mozilla.javascript.CompilerEnvirons
 
getLanguageVersion() - Method in class org.mozilla.javascript.Context
Get the current language version.
getLength() - Method in class org.mozilla.javascript.FunctionObject
Return the same value as FunctionObject.getArity().
getLineNumber() - Method in exception org.mozilla.javascript.EcmaError
Deprecated. Use RhinoException.lineNumber() from the super class.
getLineNumber() - Method in exception org.mozilla.javascript.EvaluatorException
Deprecated. Use RhinoException.lineNumber() from the super class.
getLineNumber() - Method in exception org.mozilla.javascript.JavaScriptException
Deprecated. Use RhinoException.lineNumber() from the super class.
getLineNumbers() - Method in interface org.mozilla.javascript.debug.DebuggableScript
Get array containing the line numbers that that can be passed to DebugFrame.onLineChange().
getLineSource() - Method in exception org.mozilla.javascript.EcmaError
Deprecated. Use RhinoException.lineSource() from the super class.
getLineSource() - Method in exception 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.
getMaximumInterpreterStackDepth() - Method in class org.mozilla.javascript.Context
Returns the maximum stack depth (in terms of number of call frames) allowed in a single invocation of interpreter.
getMessage() - Method in exception org.mozilla.javascript.RhinoException
 
getMethodOrConstructor() - Method in class org.mozilla.javascript.FunctionObject
Get Java method or constructor this function represent.
getName() - Method in exception 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 the 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.
getScriptStackTrace() - Method in exception org.mozilla.javascript.RhinoException
Get a string representing the script stack of this exception.
getScriptStackTrace(FilenameFilter) - Method in exception org.mozilla.javascript.RhinoException
Get a string representing the script stack of this exception.
getSourceName() - Method in interface org.mozilla.javascript.debug.DebuggableScript
Get the name of the source (usually filename or URL) of the script.
getSourceName() - Method in exception org.mozilla.javascript.EcmaError
Deprecated. Use RhinoException.sourceName() from the super class.
getSourceName() - Method in exception org.mozilla.javascript.EvaluatorException
Deprecated. Use RhinoException.sourceName() from the super class.
getSourceName() - Method in exception org.mozilla.javascript.JavaScriptException
Deprecated. Use RhinoException.sourceName() from the super class.
getStaticSecurityDomainClass() - Static method in class org.mozilla.javascript.SecurityController
 
getStaticSecurityDomainClassInternal() - Method in class org.mozilla.javascript.SecurityController
 
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 exception org.mozilla.javascript.JavaScriptException
 
getWrapFactory() - Method in class org.mozilla.javascript.Context
Return the current WrapFactory, or null if none is defined.
getWrappedException() - Method in exception org.mozilla.javascript.WrappedException
Get the wrapped exception.

H

has(String, Scriptable) - Method in class org.mozilla.javascript.ImporterTopLevel
 
has(String, Scriptable) - Method in interface org.mozilla.javascript.Scriptable
Indicates whether or not a named property is defined in an object.
has(int, Scriptable) - Method in interface org.mozilla.javascript.Scriptable
Indicates whether or not an indexed property is defined in an object.
has(String, Scriptable) - Method in class org.mozilla.javascript.ScriptableObject
Returns true if the named property is defined.
has(int, Scriptable) - Method in class org.mozilla.javascript.ScriptableObject
Returns true if the property index is defined.
hasCompileFunctionsWithDynamicScope() - Method in class org.mozilla.javascript.Context
Deprecated.  
hasExcludedName(String) - Method in class org.mozilla.javascript.serialize.ScriptableOutputStream
Returns true if the name is excluded from serialization.
hasExplicitGlobal() - Static method in class org.mozilla.javascript.ContextFactory
Check if global factory was set.
hasFeature(int) - Method in class org.mozilla.javascript.Context
Controls certain aspects of script semantics.
hasFeature(Context, int) - Method in class org.mozilla.javascript.ContextFactory
Implementation of Context.hasFeature(int featureIndex).
hasGlobal() - Static method in class org.mozilla.javascript.SecurityController
Check if global SecurityController was already installed.
hasInstance(Scriptable) - Method in interface org.mozilla.javascript.Scriptable
The instanceof operator.
hasInstance(Scriptable) - Method in class org.mozilla.javascript.ScriptableObject
Implements the instanceof operator.
hasProperty(Scriptable, String) - Static method in class org.mozilla.javascript.ScriptableObject
Returns whether a named property is defined in an object or any object in its prototype chain.
hasProperty(Scriptable, int) - Static method in class org.mozilla.javascript.ScriptableObject
Returns whether an indexed property is defined in an object or any object in its prototype chain.

I

ImporterTopLevel - Class in org.mozilla.javascript
Class ImporterTopLevel This class defines a ScriptableObject that can be instantiated as a top-level ("global") object to provide functionality similar to Java's "import" statement.
ImporterTopLevel() - Constructor for class org.mozilla.javascript.ImporterTopLevel
 
ImporterTopLevel(Context) - Constructor for class org.mozilla.javascript.ImporterTopLevel
 
ImporterTopLevel(Context, boolean) - Constructor for class org.mozilla.javascript.ImporterTopLevel
 
importPackage(Context, Scriptable, Object[], Function) - Method in class org.mozilla.javascript.ImporterTopLevel
Deprecated. Kept only for compatibility.
init(Context, Scriptable, boolean) - Static method in class org.mozilla.javascript.ImporterTopLevel
 
initApplicationClassLoader(ClassLoader) - Method in class org.mozilla.javascript.ContextFactory
Set explicit class loader to use when searching for Java classes.
initColumnNumber(int) - Method in exception org.mozilla.javascript.RhinoException
Initialize the column number of the script statement causing the error.
initFromContext(Context) - Method in class org.mozilla.javascript.CompilerEnvirons
 
initGlobal(ContextFactory) - Static method in class org.mozilla.javascript.ContextFactory
Set global ContextFactory.
initGlobal(SecurityController) - Static method in class org.mozilla.javascript.SecurityController
Initialize global controller that will be used for all security-related operations.
initLineNumber(int) - Method in exception org.mozilla.javascript.RhinoException
Initialize the line number of the script statement causing the error.
initLineSource(String) - Method in exception org.mozilla.javascript.RhinoException
Initialize the text of the source line containing the error.
initPrototypeId(int) - Method in class org.mozilla.javascript.ImporterTopLevel
 
initSourceName(String) - Method in exception org.mozilla.javascript.RhinoException
Initialize the uri of the script source containing the error.
initStandardObjects() - Method in class org.mozilla.javascript.Context
Initialize the standard objects.
initStandardObjects(ScriptableObject) - Method in class org.mozilla.javascript.Context
Initialize the standard objects.
initStandardObjects(ScriptableObject, boolean) - Method in class org.mozilla.javascript.Context
Initialize the standard objects.
initStandardObjects(Context, boolean) - Method in class org.mozilla.javascript.ImporterTopLevel
 
isActivationNeeded(String) - Method in class org.mozilla.javascript.Context
Check whether the name is in the list of names of objects forcing the creation of activation objects.
isAllowMemberExprAsFunctionName() - Method in class org.mozilla.javascript.CompilerEnvirons
 
isCachingEnabled() - Method in class org.mozilla.javascript.ClassCache
Check if generated Java classes and Java reflection information is cached.
isConst(String) - Method in class org.mozilla.javascript.ScriptableObject
Returns true if the named property is defined as a const on this object.
isFunction() - Method in interface org.mozilla.javascript.debug.DebuggableScript
Returns true if this is a function, false if it is a script.
isGenerateDebugInfo() - Method in class org.mozilla.javascript.CompilerEnvirons
 
isGeneratedScript() - Method in interface org.mozilla.javascript.debug.DebuggableScript
Returns true if this script or function were runtime-generated from JavaScript using eval function or Function or Script constructors.
isGenerateObserverCount() - Method in class org.mozilla.javascript.CompilerEnvirons
 
isGeneratingDebug() - Method in class org.mozilla.javascript.Context
Tell whether debug information is being generated.
isGeneratingDebugChanged() - Method in class org.mozilla.javascript.Context
 
isGeneratingSource() - Method in class org.mozilla.javascript.CompilerEnvirons
 
isGeneratingSource() - Method in class org.mozilla.javascript.Context
Tell whether source information is being generated.
isGetterOrSetter(String, int, boolean) - Method in class org.mozilla.javascript.ScriptableObject
Returns whether a property is a getter or a setter
isInvokerOptimizationEnabled() - Method in class org.mozilla.javascript.ClassCache
Deprecated. The method always returns false.
isJavaPrimitiveWrap() - Method in class org.mozilla.javascript.WrapFactory
Return false if result of Java method, which is instance of String, Number, Boolean and Character, should be used directly as JavaScript primitive type.
isReservedKeywordAsIdentifier() - Method in class org.mozilla.javascript.CompilerEnvirons
 
isSealed() - Method in class org.mozilla.javascript.Context
Checks if this is a sealed Context.
isSealed() - Method in class org.mozilla.javascript.ContextFactory
Checks if this is a sealed ContextFactory.
isSealed() - Method in class org.mozilla.javascript.ScriptableObject
Return true if this object is sealed.
isStrictMode() - Method in class org.mozilla.javascript.CompilerEnvirons
 
isTopLevel() - Method in interface org.mozilla.javascript.debug.DebuggableScript
 
isUseDynamicScope() - Method in class org.mozilla.javascript.CompilerEnvirons
 
isValidLanguageVersion(int) - Static method in class org.mozilla.javascript.Context
 
isValidOptimizationLevel(int) - Static method in class org.mozilla.javascript.Context
 
isXmlAvailable() - Method in class org.mozilla.javascript.CompilerEnvirons
 

J

JAVA_BOOLEAN_TYPE - Static variable in class org.mozilla.javascript.FunctionObject
 
JAVA_DOUBLE_TYPE - Static variable in class org.mozilla.javascript.FunctionObject
 
JAVA_INT_TYPE - Static variable in class org.mozilla.javascript.FunctionObject
 
JAVA_OBJECT_TYPE - Static variable in class org.mozilla.javascript.FunctionObject
 
JAVA_SCRIPTABLE_TYPE - Static variable in class org.mozilla.javascript.FunctionObject
 
JAVA_STRING_TYPE - Static variable in class org.mozilla.javascript.FunctionObject
 
JAVA_UNSUPPORTED_TYPE - Static variable in class org.mozilla.javascript.FunctionObject
 
JavaScriptException - Exception in org.mozilla.javascript
Java reflection of JavaScript exceptions.
JavaScriptException(Object) - Constructor for exception org.mozilla.javascript.JavaScriptException
Deprecated. Use WrappedException.WrappedException(Throwable) to report exceptions in Java code.
JavaScriptException(Object, String, int) - Constructor for exception org.mozilla.javascript.JavaScriptException
Create a JavaScript exception wrapping the given JavaScript value
javaToJS(Object, Scriptable) - Static method in class org.mozilla.javascript.Context
Convenient method to convert java value to its closest representation in JavaScript.
jsToJava(Object, Class) - Static method in class org.mozilla.javascript.Context
Convert a JavaScript value into the desired type.

L

languageVersionProperty - Static variable in class org.mozilla.javascript.Context
 
lineNumber() - Method in exception org.mozilla.javascript.RhinoException
Returns the line number of the statement causing the error, or zero if not available.
lineSource() - Method in exception org.mozilla.javascript.RhinoException
The source text of the line causing the error, or null if unknown.
linkClass(Class) - Method in interface org.mozilla.javascript.GeneratedClassLoader
Link the given class.

M

makeAuxiliaryClassName(String, String) - Method in class org.mozilla.javascript.optimizer.ClassCompiler
Build class name for a auxiliary class generated by compiler.
makeContext() - Method in class org.mozilla.javascript.ContextFactory
Create new Context instance to be associated with the current thread.

N

newArray(Scriptable, int) - Method in class org.mozilla.javascript.Context
Create an array with a specified initial length.
newArray(Scriptable, Object[]) - Method in class org.mozilla.javascript.Context
Create an array with a set of initial elements.
newClassSerialNumber() - Method in class org.mozilla.javascript.ClassCache
Internal engine method to return serial number for generated classes to ensure name uniqueness.
newObject(Scriptable) - Method in class org.mozilla.javascript.Context
Create a new JavaScript object.
newObject(Scriptable, String) - Method in class org.mozilla.javascript.Context
Create a new JavaScript object by executing the named constructor.
newObject(Scriptable, String, Object[]) - Method in class org.mozilla.javascript.Context
Creates a new JavaScript object by executing the named constructor.
NOT_FOUND - Static variable in interface org.mozilla.javascript.Scriptable
Value returned from get if the property is not found.

O

observeInstructionCount(int) - Method in class org.mozilla.javascript.Context
Allow application to monitor counter of executed script instructions in Context subclasses.
observeInstructionCount(Context, int) - Method in class org.mozilla.javascript.ContextFactory
Implementation of Context.observeInstructionCount(int instructionCount).
onContextCreated(Context) - Method in class org.mozilla.javascript.ContextFactory
 
onContextReleased(Context) - Method in class org.mozilla.javascript.ContextFactory
 
org.mozilla.javascript - package org.mozilla.javascript
 
org.mozilla.javascript.debug - package org.mozilla.javascript.debug
 
org.mozilla.javascript.optimizer - package org.mozilla.javascript.optimizer
 
org.mozilla.javascript.serialize - package org.mozilla.javascript.serialize
 

P

PERMANENT - Static variable in class org.mozilla.javascript.ScriptableObject
Property attribute indicating property cannot be deleted.
printStackTrace(PrintWriter) - Method in exception org.mozilla.javascript.RhinoException
 
printStackTrace(PrintStream) - Method in exception org.mozilla.javascript.RhinoException
 
put(String, Scriptable, Object) - Method in interface org.mozilla.javascript.Scriptable
Sets a named property in this object.
put(int, Scriptable, Object) - Method in interface org.mozilla.javascript.Scriptable
Sets an indexed property in this object.
put(String, Scriptable, Object) - Method in class org.mozilla.javascript.ScriptableObject
Sets the value of the named property, creating it if need be.
put(int, Scriptable, Object) - Method in class org.mozilla.javascript.ScriptableObject
Sets the value of the indexed property, creating it if need be.
putConst(String, Scriptable, Object) - Method in class org.mozilla.javascript.ScriptableObject
Sets the value of the named const property, creating it if need be.
putConstProperty(Scriptable, String, Object) - Static method in class org.mozilla.javascript.ScriptableObject
Puts a named property in an object or in an object in its prototype chain.
putProperty(Scriptable, String, Object) - Static method in class org.mozilla.javascript.ScriptableObject
Puts a named property in an object or in an object in its prototype chain.
putProperty(Scriptable, int, Object) - Static method in class org.mozilla.javascript.ScriptableObject
Puts an indexed property in an object or in an object in its prototype chain.
putThreadLocal(Object, Object) - Method in class org.mozilla.javascript.Context
Put a value that can later be retrieved using a given key.

R

READONLY - Static variable in class org.mozilla.javascript.ScriptableObject
Property attribute indicating assignment to this property is ignored.
redefineProperty(Scriptable, String, boolean) - Static method in class org.mozilla.javascript.ScriptableObject
If hasProperty(obj, name) would return true, then if the property that was found is compatible with the new property, this method just returns.
refCall(Context, Scriptable, Object[]) - Method in interface org.mozilla.javascript.RefCallable
Perform function call in reference context.
RefCallable - Interface in org.mozilla.javascript
Object that can allows assignments to the result of function calls.
removeActivationName(String) - Method in class org.mozilla.javascript.Context
Remove a name from the list of names forcing the creation of real activation objects for functions.
removeContextListener(ContextListener) - Static method in class org.mozilla.javascript.Context
Deprecated.  
removeExcludedName(String) - Method in class org.mozilla.javascript.serialize.ScriptableOutputStream
Removes a name from the list of names to exclude.
removeListener(ContextFactory.Listener) - Method in class org.mozilla.javascript.ContextFactory
 
removePropertyChangeListener(PropertyChangeListener) - Method in class org.mozilla.javascript.Context
Remove an object from the list of objects registered to receive notification of changes to a bounded property
removeThreadLocal(Object) - Method in class org.mozilla.javascript.Context
Remove values from thread-local storage.
replaceObject(Object) - Method in class org.mozilla.javascript.serialize.ScriptableOutputStream
 
reportError(String, String, int, String, int) - Static method in class org.mozilla.javascript.Context
Report an error using the error reporter for the current thread.
reportError(String) - Static method in class org.mozilla.javascript.Context
Report an error using the error reporter for the current thread.
reportRuntimeError(String, String, int, String, int) - Static method in class org.mozilla.javascript.Context
Report a runtime error using the error reporter for the current thread.
reportRuntimeError(String) - Static method in class org.mozilla.javascript.Context
Report a runtime error using the error reporter for the current thread.
reportWarning(String, String, int, String, int) - Static method in class org.mozilla.javascript.Context
Report a warning using the error reporter for the current thread.
reportWarning(String) - Static method in class org.mozilla.javascript.Context
Report a warning using the error reporter for the current thread.
reportWarning(String, Throwable) - Static method in class org.mozilla.javascript.Context
 
reportWarningAsError() - Method in class org.mozilla.javascript.CompilerEnvirons
 
resolveClass(ObjectStreamClass) - Method in class org.mozilla.javascript.serialize.ScriptableInputStream
 
resolveObject(Object) - Method in class org.mozilla.javascript.serialize.ScriptableInputStream
 
RhinoException - Exception in org.mozilla.javascript
The class of exceptions thrown by the JavaScript engine.
run(Context) - Method in interface org.mozilla.javascript.ContextAction
Execute action using the supplied Context instance.
runtimeError(String, String, int, String, int) - Method in interface org.mozilla.javascript.ErrorReporter
Creates an EvaluatorException that may be thrown.

S

Script - Interface in org.mozilla.javascript
All compiled scripts implement this interface.
Scriptable - Interface in org.mozilla.javascript
This is interface that all objects in JavaScript must implement.
ScriptableInputStream - Class in org.mozilla.javascript.serialize
Class ScriptableInputStream is used to read in a JavaScript object or function previously serialized with a ScriptableOutputStream.
ScriptableInputStream(InputStream, Scriptable) - Constructor for class org.mozilla.javascript.serialize.ScriptableInputStream
Create a ScriptableInputStream.
ScriptableObject - Class in org.mozilla.javascript
This is the default implementation of the Scriptable interface.
ScriptableObject() - Constructor for class org.mozilla.javascript.ScriptableObject
 
ScriptableObject(Scriptable, Scriptable) - Constructor for class org.mozilla.javascript.ScriptableObject
 
ScriptableOutputStream - Class in org.mozilla.javascript.serialize
Class ScriptableOutputStream is an ObjectOutputStream used to serialize JavaScript objects and functions.
ScriptableOutputStream(OutputStream, Scriptable) - Constructor for class org.mozilla.javascript.serialize.ScriptableOutputStream
ScriptableOutputStream constructor.
seal(Object) - Method in class org.mozilla.javascript.Context
Seal this Context object so any attempt to modify any of its properties including calling Context.enter() and Context.exit() methods will throw an exception.
seal() - Method in class org.mozilla.javascript.ContextFactory
Seal this ContextFactory so any attempt to modify it like to add or remove its listeners will throw an exception.
sealObject() - Method in class org.mozilla.javascript.ScriptableObject
Seal this object.
SecurityController - Class in org.mozilla.javascript
This class describes the support needed to implement security.
SecurityController() - Constructor for class org.mozilla.javascript.SecurityController
 
setAllowMemberExprAsFunctionName(boolean) - Method in class org.mozilla.javascript.CompilerEnvirons
 
setApplicationClassLoader(ClassLoader) - Method in class org.mozilla.javascript.Context
 
setAttributes(String, Scriptable, int) - Method in class org.mozilla.javascript.ScriptableObject
Deprecated. Use ScriptableObject.setAttributes(String name, int attributes). The engine always ignored the start argument.
setAttributes(int, Scriptable, int) - Method in class org.mozilla.javascript.ScriptableObject
Deprecated. Use ScriptableObject.setAttributes(int index, int attributes). The engine always ignored the start argument.
setAttributes(String, int) - Method in class org.mozilla.javascript.ScriptableObject
Set the attributes of a named property.
setAttributes(int, int) - Method in class org.mozilla.javascript.ScriptableObject
Set the attributes of an indexed property.
setCachingEnabled(boolean) - Method in class org.mozilla.javascript.ClassCache
Set whether to cache some values.
setCachingEnabled(boolean) - Static method in class org.mozilla.javascript.Context
Deprecated.  
setClassShutter(ClassShutter) - Method in class org.mozilla.javascript.Context
Set the LiveConnect access filter for this context.
setCompileFunctionsWithDynamicScope(boolean) - Method in class org.mozilla.javascript.Context
Deprecated.  
setDebugger(Debugger, Object) - Method in class org.mozilla.javascript.Context
Set the associated debugger.
setErrorReporter(ErrorReporter) - Method in class org.mozilla.javascript.CompilerEnvirons
 
setErrorReporter(ErrorReporter) - Method in class org.mozilla.javascript.Context
Change the current error reporter.
setGenerateDebugInfo(boolean) - Method in class org.mozilla.javascript.CompilerEnvirons
 
setGenerateObserverCount(boolean) - Method in class org.mozilla.javascript.CompilerEnvirons
Turn on or off generation of code with callbacks to track the count of executed instructions.
setGenerateObserverCount(boolean) - Method in class org.mozilla.javascript.Context
Turn on or off generation of code with callbacks to track the count of executed instructions.
setGeneratingDebug(boolean) - Method in class org.mozilla.javascript.Context
Specify whether or not debug information should be generated.
setGeneratingSource(boolean) - Method in class org.mozilla.javascript.CompilerEnvirons
Specify whether or not source information should be generated.
setGeneratingSource(boolean) - Method in class org.mozilla.javascript.Context
Specify whether or not source information should be generated.
setGetterOrSetter(String, int, Callable, boolean) - Method in class org.mozilla.javascript.ScriptableObject
XXX: write docs.
setInstructionObserverThreshold(int) - Method in class org.mozilla.javascript.Context
Set threshold of executed instructions counter that triggers call to observeInstructionCount().
setInvokerOptimizationEnabled(boolean) - Method in class org.mozilla.javascript.ClassCache
Deprecated. The method does nothing. Invoker optimization is no longer used by Rhino. On modern JDK like 1.4 or 1.5 the disadvantages of the optimization like increased memory usage or longer initialization time overweight small speed increase that can be gained using generated proxy class to replace reflection.
setJavaPrimitiveWrap(boolean) - Method in class org.mozilla.javascript.WrapFactory
 
setLanguageVersion(int) - Method in class org.mozilla.javascript.CompilerEnvirons
 
setLanguageVersion(int) - Method in class org.mozilla.javascript.Context
Set the language version.
setLocale(Locale) - Method in class org.mozilla.javascript.Context
Set the current locale.
setMainMethodClass(String) - Method in class org.mozilla.javascript.optimizer.ClassCompiler
Set the class name to use for main method implementation.
setMaximumInterpreterStackDepth(int) - Method in class org.mozilla.javascript.Context
Sets the maximum stack depth (in terms of number of call frames) allowed in a single invocation of interpreter.
setOptimizationLevel(int) - Method in class org.mozilla.javascript.CompilerEnvirons
 
setOptimizationLevel(int) - Method in class org.mozilla.javascript.Context
Set the current optimization level.
setParentScope(Scriptable) - Method in interface org.mozilla.javascript.Scriptable
Set the parent scope of the object.
setParentScope(Scriptable) - Method in class org.mozilla.javascript.ScriptableObject
Sets the parent (enclosing) scope of the object.
setPrototype(Scriptable) - Method in interface org.mozilla.javascript.Scriptable
Set the prototype of the object.
setPrototype(Scriptable) - Method in class org.mozilla.javascript.ScriptableObject
Sets the prototype of the object.
setReservedKeywordAsIdentifier(boolean) - Method in class org.mozilla.javascript.CompilerEnvirons
 
setSecurityController(SecurityController) - Method in class org.mozilla.javascript.Context
Set the security controller for this context.
setTargetExtends(Class) - Method in class org.mozilla.javascript.optimizer.ClassCompiler
Set the class that the generated target will extend.
setTargetImplements(Class[]) - Method in class org.mozilla.javascript.optimizer.ClassCompiler
Set the interfaces that the generated target will implement.
setWrapFactory(WrapFactory) - Method in class org.mozilla.javascript.Context
Set a WrapFactory for this Context.
setXmlAvailable(boolean) - Method in class org.mozilla.javascript.CompilerEnvirons
 
sourceName() - Method in exception org.mozilla.javascript.RhinoException
Get the uri of the script source containing the error, or null if that information is not available.
stringIsCompilableUnit(String) - Method in class org.mozilla.javascript.Context
Check whether a string is ready to be compiled.
Synchronizer - Class in org.mozilla.javascript
This class provides support for implementing Java-style synchronized methods in Javascript.
Synchronizer(Scriptable) - Constructor for class org.mozilla.javascript.Synchronizer
Create a new synchronized function from an existing one.

T

throwAsScriptRuntimeEx(Throwable) - Static method in class org.mozilla.javascript.Context
Rethrow the exception wrapping it as the script runtime exception.
toBoolean(Object) - Static method in class org.mozilla.javascript.Context
Convert the value to a JavaScript boolean value.
toNumber(Object) - Static method in class org.mozilla.javascript.Context
Convert the value to a JavaScript Number value.
toObject(Object, Scriptable) - Static method in class org.mozilla.javascript.Context
Convert the value to an JavaScript object value.
toObject(Object, Scriptable, Class) - Static method in class org.mozilla.javascript.Context
Deprecated.  
toString(Object) - Static method in class org.mozilla.javascript.Context
Convert the value to a JavaScript String value.
toType(Object, Class) - Static method in class org.mozilla.javascript.Context
Deprecated.  

U

UNINITIALIZED_CONST - Static variable in class org.mozilla.javascript.ScriptableObject
Property attribute indicating that this is a const property that has not been assigned yet.
unseal(Object) - Method in class org.mozilla.javascript.Context
Unseal previously sealed Context object.
unwrap() - Method in exception org.mozilla.javascript.WrappedException
Deprecated. Use WrappedException.getWrappedException() instead.
unwrap() - Method in interface org.mozilla.javascript.Wrapper
Unwrap the object by returning the wrapped value.

V

VERSION_1_0 - Static variable in class org.mozilla.javascript.Context
JavaScript 1.0
VERSION_1_1 - Static variable in class org.mozilla.javascript.Context
JavaScript 1.1
VERSION_1_2 - Static variable in class org.mozilla.javascript.Context
JavaScript 1.2
VERSION_1_3 - Static variable in class org.mozilla.javascript.Context
JavaScript 1.3
VERSION_1_4 - Static variable in class org.mozilla.javascript.Context
JavaScript 1.4
VERSION_1_5 - Static variable in class org.mozilla.javascript.Context
JavaScript 1.5
VERSION_1_6 - Static variable in class org.mozilla.javascript.Context
JavaScript 1.6
VERSION_1_7 - Static variable in class org.mozilla.javascript.Context
JavaScript 1.7
VERSION_DEFAULT - Static variable in class org.mozilla.javascript.Context
The default version.
VERSION_UNKNOWN - Static variable in class org.mozilla.javascript.Context
The unknown version.
visibleToScripts(String) - Method in interface org.mozilla.javascript.ClassShutter
Return true iff the Java class with the given name should be exposed to scripts.

W

warning(String, String, int, String, int) - Method in interface org.mozilla.javascript.ErrorReporter
Report a warning.
wrap(Context, Scriptable, Object, Class) - Method in class org.mozilla.javascript.WrapFactory
Wrap the object.
wrapAsJavaObject(Context, Scriptable, Object, Class) - Method in class org.mozilla.javascript.WrapFactory
Wrap Java object as Scriptable instance to allow full access to its methods and fields from JavaScript.
WrapFactory - Class in org.mozilla.javascript
Embeddings that wish to provide their own custom wrappings for Java objects may extend this class and call 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.
WrapFactory() - Constructor for class org.mozilla.javascript.WrapFactory
 
wrapNewObject(Context, Scriptable, Object) - Method in class org.mozilla.javascript.WrapFactory
Wrap an object newly created by a constructor call.
WrappedException - Exception in org.mozilla.javascript
A wrapper for runtime exceptions.
WrappedException(Throwable) - Constructor for exception org.mozilla.javascript.WrappedException
 
Wrapper - Interface in org.mozilla.javascript
Objects that can wrap other values for reflection in the JS environment will implement Wrapper.

A C D E F G H I J L M N O P R S T U V W