|
||||||||
PREV NEXT | FRAMES NO FRAMES |
Callable.call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
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)
ignoring scope argument.
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.addContextListener(ContextListener)
about Context events.
SecurityController.callWithDomain(Object securityDomain, Context cx, Callable callable, Scriptable scope, Scriptable thisObj, Object[] args)
.
ScriptableObject.getAttributes(int index)
. The engine always
ignored the start argument.
ScriptableObject.getAttributes(String name)
. The engine always
ignored the start argument.
Context.getUndefinedValue()
.
observeInstructionCount()
.
FunctionObject.getArity()
.
WrapFactory
and Context.getWrapFactory()
false
if result of Java method, which is instance of
String, Number, Boolean and
Character, should be used directly as JavaScript primitive
type.
isSealed() -
Method in class org.mozilla.javascript.Context
Checks if this is a sealed Context.
isSealed() -
Method in class org.mozilla.javascript.ScriptableObject
Return true if this object is sealed.
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 org.mozilla.javascript.JavaScriptException.
- Java reflection of JavaScript exceptions.
- JavaScriptException(Object) -
Constructor for class org.mozilla.javascript.JavaScriptException
- Deprecated. Use
EvaluatorException.EvaluatorException(String)
to report
exceptions in Java code.
- JavaScriptException(Object, String, int) -
Constructor for class 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.
L
- languageVersionProperty -
Static variable in class org.mozilla.javascript.Context
-
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.
P
- PERMANENT -
Static variable in class org.mozilla.javascript.ScriptableObject
- Property attribute indicating property cannot be deleted.
- PropertyException - exception org.mozilla.javascript.PropertyException.
- Thrown if errors are detected while attempting to define a property of
a host object from a Java class or method, or if a property is not found.
- PropertyException(String) -
Constructor for class org.mozilla.javascript.PropertyException
-
- put(int, Scriptable, Object) -
Method in interface org.mozilla.javascript.Scriptable
- Sets an indexed property in this object.
- put(int, Scriptable, Object) -
Method in class org.mozilla.javascript.ScriptableObject
- Sets the value of the indexed property, creating it if need be.
- put(String, Scriptable, Object) -
Method in interface org.mozilla.javascript.Scriptable
- Sets a named 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.
- 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.
- 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.
- 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.
- 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
- Remove a Context listener.
- removeExcludedName(String) -
Method in class org.mozilla.javascript.serialize.ScriptableOutputStream
- Removes a name from the list of names to exclude.
- 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.
- reportError(String) -
Static method in class org.mozilla.javascript.Context
- Report an error using the error reporter for the current thread.
- 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.
- reportRuntimeError(String) -
Static method in class org.mozilla.javascript.Context
- Report a runtime 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.
- reportWarning(String) -
Static method in class org.mozilla.javascript.Context
- Report a warning 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.
- runtimeError(String, String, int, String, int) -
Method in interface org.mozilla.javascript.ErrorReporter
- Creates an EvaluatorException that may be thrown.
S
- Script - interface org.mozilla.javascript.Script.
- All compiled scripts implement this interface.
- Scriptable - interface org.mozilla.javascript.Scriptable.
- This is interface that all objects in JavaScript must implement.
- ScriptableInputStream - class org.mozilla.javascript.serialize.ScriptableInputStream.
- 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 org.mozilla.javascript.ScriptableObject.
- This is the default implementation of the Scriptable interface.
- ScriptableObject() -
Constructor for class org.mozilla.javascript.ScriptableObject
-
- ScriptableOutputStream - class org.mozilla.javascript.serialize.ScriptableOutputStream.
- 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.
- sealObject() -
Method in class org.mozilla.javascript.ScriptableObject
- Seal this object.
- SecurityController - class org.mozilla.javascript.SecurityController.
- This class describes the support needed to implement security.
- SecurityController() -
Constructor for class org.mozilla.javascript.SecurityController
-
- setApplicationClassLoader(ClassLoader) -
Method in class org.mozilla.javascript.Context
-
- setAttributes(int, int) -
Method in class org.mozilla.javascript.ScriptableObject
- Set the attributes of an indexed property.
- 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(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.
- 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. To enable/disable caching for a particular top scope,
use
ClassCache.get(Scriptable)
and
ClassCache.setCachingEnabled(boolean)
.
The function is kept only for compatibility and does nothing.
- 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
- Set whether functions compiled by this context should use
dynamic scope.
- setDebugger(Debugger, Object) -
Method in class org.mozilla.javascript.Context
- Set the associated debugger.
- setErrorReporter(ErrorReporter) -
Method in class org.mozilla.javascript.Context
- Change the current error reporter.
- 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.Context
- Specify whether or not source information should be generated.
- setInstructionObserverThreshold(int) -
Method in class org.mozilla.javascript.Context
-
- setInvokerOptimizationEnabled(boolean) -
Method in class org.mozilla.javascript.ClassCache
- To optimize invocation of reflected Java methods, the engine generates
special glue classes that will call the methods directly.
- setJavaPrimitiveWrap(boolean) -
Method in class org.mozilla.javascript.WrapFactory
-
- 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.
- 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.
- setSecurityController(SecurityController) -
Method in class org.mozilla.javascript.Context
- Set the security controller for this context.
- setWrapFactory(WrapFactory) -
Method in class org.mozilla.javascript.Context
- Set a WrapFactory for this Context.
- setWrapHandler(WrapHandler) -
Method in class org.mozilla.javascript.Context
- Deprecated. As of Rhino 1.5 Release 4, use
WrapFactory
and Context.setWrapFactory(WrapFactory)
- stringIsCompilableUnit(String) -
Method in class org.mozilla.javascript.Context
- Check whether a string is ready to be compiled.
- Synchronizer - class org.mozilla.javascript.Synchronizer.
- 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. Use
Context.toObject(Object, Scriptable)
instead.
- toString() -
Method in class org.mozilla.javascript.EcmaError
- Return a string representation of the error, which currently consists
of the name of the error together with the message.
- 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
- Convert a JavaScript value into the desired type.
U
- unseal(Object) -
Method in class org.mozilla.javascript.Context
- Unseal previously sealed Context object.
- unwrap() -
Method in class 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_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 org.mozilla.javascript.WrapFactory.
- 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 org.mozilla.javascript.WrappedException.
- A wrapper for runtime exceptions.
- WrappedException(Throwable) -
Constructor for class org.mozilla.javascript.WrappedException
- Create a new exception wrapped around an existing exception.
- Wrapper - interface org.mozilla.javascript.Wrapper.
- 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 N P R S T U V W
Overview
Class
Tree
Deprecated
Index
Help
PREV
NEXT
FRAMES
NO FRAMES