Performs conversions on argument types if needed and
invokes the underlying Java method or constructor.
Call ContextAction.run(Context cx)
using the Context instance associated with the current thread.
Call
ContextAction.run(Context cx)
using the
Context
instance associated with the current thread.
Call Callable.call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
using the Context instance associated with the current thread.
Generic notion of callable object that can execute some script-related code
upon request with specified values for script scope and this objects.
Call a method of an object.
Call a method of an object.
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.
Cache of generated classes and data structures to access Java runtime
from JavaScript.
Generates class files from script sources.
Construct ClassCompiler that uses the specified compiler environment
when generating classes.
Embeddings that wish to filter Java classes that are visible to scripts
through the LiveConnect, should implement this interface.
Empty caches of generated Java classes and Java reflection information.
The column number of the location of the error, or zero if unknown.
Compile a JavaScript function.
Compiles the source in the given reader.
Compiles the source in the given string.
Compile JavaScript source into one or more Java class files.
Call the function as a constructor.
This class represents the runtime context of an executing script.
Interface to represent arbitrary action that requires to have Context
object associated with the current thread for its execution.
Factory class that Rhino runtime use to create new
Context
instances or to notify about Context execution.
Create class loader for generated classes.
Create class loader for generated classes.
Get class loader-like object that can be used
to define classes with the given security context.
Return new
Scriptable
instance using the default
constructor for the class of the underlying Java method.
This interface exposes debugging information from executable
code (either functions or top-level scripts).
Decompile a JavaScript Function.
Decompile the body of a JavaScript Function.
Defines JavaScript objects from a Java class that implements Scriptable.
Defines JavaScript objects from a Java class, optionally
allowing sealing.
Defines JavaScript objects from a Java class, optionally
allowing sealing and mapping of Java inheritance to JavaScript
prototype-based inheritance.
Search for names in a class, adding the resulting methods
as properties.
Utility method to add properties to arbitrary Scriptable object.
Define a JavaScript property with getter and setter side effects.
Define a JavaScript property.
Define a JavaScript property.
Removes a property from this object.
Removes the indexed property from the object.
Removes a property from this object.
Removes a named property from the object.
Removes the property from an object or its prototype chain.
Removes the property from an object or its prototype chain.
Property attribute indicating property is not enumerated.
Execute top call to script or function.
The class of exceptions raised by the engine as described in
ECMA edition 3.
The empty property attribute.
Convinient value to use as zero-length array of objects.
Get a context associated with the current thread, creating
one if need be.
Same as
Context.enter()
with the difference that if a new context
needs to be created, then this context factory is used to create it
instead of the global context factory.
Get a Context associated with the current thread, using
the given Context if need be.
Same as
Context.enter(Context)
with the difference that if a new
context needs to be created, then this context factory is used to create
it instead of the global context factory.
This is interface defines a protocol for the reporting of
errors during JavaScript translation or execution.
Evaluate a reader as JavaScript source.
Evaluate a JavaScript source string.
The class of exceptions thrown by the JavaScript engine.
Create an exception with the specified detail message.
Create an exception with the specified detail message.
Adds the names of the standard objects and their
prototypes to the list of excluded names.
Exit a block of code requiring a Context.
Control if dynamic scope should be used for name access.
Control if support for E4X(ECMAScript for XML) extension is available.
Control if member expression as function name extension is available.
Controls behaviour of Date.prototype.getYear().
Control if properties __proto__ and __parent__
are treated specially.
Control if reserved keywords are treated as identifiers.
Control if strict eval mode is enabled.
Control if strict variable mode is enabled.
Control if toString() should returns the same result
as toSource() when applied to objects and arrays.
This is interface that all functions in JavaScript must implement.
Create a JavaScript function object from a Java method.
Interface to define classes from generated byte code.
Get a property from the object selected by an integral index.
Returns the value of the indexed property or NOT_FOUND.
Search for ClassCache object in the given scope.
Get a named property from the object.
Returns the value of the named property or NOT_FOUND.
Returns an array of ids for the properties of the object.
Get ClassLoader to use when searching for Java classes.
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).
Get arbitrary application-specific value associated with this object.
Get the attributes of an indexed property.
Get the attributes of a named property.
Get the name of the set of objects implemented by this Java class.
Return the name of the class.
Get the prototype for the named class.
Get the compiler environment the compiler uses.
Return DebuggableScript instance if any associated with the script.
Return the current debugger.
Return the debugger context data associated with current context.
Get the default value of the object with a given hint.
Implements the [[DefaultValue]] internal method.
Get dynamic security domain that allows an action only if it is allowed
by the current Java stack and securityDomain.
Get the elements of a JavaScript array.
Gets the message corresponding to the error.
Get the current error reporter.
Get name of the function described by this script.
Get the Function.prototype property.
Get global ContextFactory.
Get an array of property ids.
Returns an array of ids for the properties of the object.
Get the implementation version.
Get/Set threshold of executed instructions counter that triggers call to
observeInstructionCount()
.
Get the current language version.
Get array containing the line numbers that
that can be passed to DebugFrame.onLineChange()
.
Get the name of the class for main method implementation.
Returns the maximum stack depth (in terms of number of call frames)
allowed in a single invocation of interpreter.
Get Java method or constructor this function represent.
Gets the name of the error.
Get the Object.prototype property.
Get the current optimization level.
Get number of declared parameters and local variables.
Get number of declared parameters in function.
Get name of a declared parameter or local variable.
Get the parent scope of the object.
Returns the parent (enclosing) scope of the object.
Gets an indexed property from an object or any object in its prototype chain.
Gets a named property from an object or any object in its prototype chain.
Returns an array of all ids from an object and its prototypes.
Get the prototype of the object.
Returns the prototype of the object.
Get the name of the source (usually filename or URL)
of the script.
Get the class that the generated target will extend.
Get the interfaces that the generated target will implement.
Get a value corresponding to a key.
Get arbitrary application-specific value associated with the top scope
of the given scope.
Get the singleton object that represents the JavaScript Undefined value.
Return the current WrapFactory, or null if none is defined.
Get the wrapped exception.
Indicates whether or not an indexed property is defined in an object.
Returns true if the property index is defined.
Indicates whether or not a named property is defined in an object.
Returns true if the named property is defined.
Returns true if the name is excluded from serialization.
Check if global factory was set.
Controls certain aspects of script semantics.
Implementation of Context.hasFeature(int featureIndex)
.
Implements the instanceof operator.
Returns whether an indexed property is defined in an object or any object
in its prototype chain.
Returns whether a named property is defined in an object or any object
in its prototype chain.
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.
Set explicit class loader to use when searching for Java classes.
Initialize the column number of the script statement causing the error.
Set global ContextFactory.
Initialize global controller that will be used for all
security-related operations.
Initialize the line number of the script statement causing the error.
Initialize the text of the source line containing the error.
Initialize the uri of the script source containing the error.
Initialize the standard objects.
Initialize the standard objects.
Initialize the standard objects.
Check whether the name is in the list of names of objects
forcing the creation of activation objects.
Check if generated Java classes and Java reflection information
is cached.
Returns true if this is a function, false if it is a script.
Returns true if this script or function were runtime-generated
from JavaScript using eval function or Function
or Script constructors.
Tell whether debug information is being generated.
Tell whether source information is being generated.
Return false
if result of Java method, which is instance of
String
, Number
, Boolean
and
Character
, should be used directly as JavaScript primitive
type.
Checks if this is a sealed Context.
Checks if this is a sealed ContextFactory.
Return true if this object is sealed.
Property attribute indicating assignment to this property is ignored.
Perform function call in reference context.
Object that can allows assignments to the result of function calls.
Remove a name from the list of names forcing the creation of real
activation objects for functions.
Removes a name from the list of names to exclude.
Remove an object from the list of objects registered to receive
notification of changes to a bounded property
Remove values from thread-local storage.
Report an error using the error reporter for the current thread.
Report an error using the error reporter for the current thread.
Report a runtime error using the error reporter for the current thread.
Report a runtime error using the error reporter for the current thread.
Report a warning using the error reporter for the current thread.
Report a warning using the error reporter for the current thread.
The class of exceptions thrown by the JavaScript engine.
Execute action using the supplied Context instance.
Creates an EvaluatorException that may be thrown.
All compiled scripts implement this interface.
This is interface that all objects in JavaScript must implement.
Class ScriptableInputStream is used to read in a JavaScript
object or function previously serialized with a ScriptableOutputStream.
Create a ScriptableInputStream.
This is the default implementation of the Scriptable interface.
Class ScriptableOutputStream is an ObjectOutputStream used
to serialize JavaScript objects and functions.
ScriptableOutputStream constructor.
Seal this ContextFactory so any attempt to modify it like to add or
remove its listeners will throw an exception.
Seal this Context object so any attempt to modify any of its properties
including calling
enter()
and
exit()
methods will
throw an exception.
This class describes the support needed to implement security.
Set the attributes of an indexed property.
Set the attributes of a named property.
Set whether to cache some values.
Set the LiveConnect access filter for this context.
Set the associated debugger.
Change the current error reporter.
Specify whether or not debug information should be generated.
Specify whether or not source information should be generated.
Specify whether or not source information should be generated.
Set the language version.
Set the class name to use for main method implementation.
Sets the maximum stack depth (in terms of number of call frames)
allowed in a single invocation of interpreter.
Set the current optimization level.
Set the parent scope of the object.
Sets the parent (enclosing) scope of the object.
Set the prototype of the object.
Sets the prototype of the object.
Set the security controller for this context.
Set the class that the generated target will extend.
Set the interfaces that the generated target will implement.
Set a WrapFactory for this Context.
Get the uri of the script source containing the error, or null
if that information is not available.
Check whether a string is ready to be compiled.
This class provides support for implementing Java-style synchronized
methods in Javascript.
Create a new synchronized function from an existing one.