Call Callable.call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
using the Context instance associated with the current thread.
Performs conversions on argument types if needed and
invokes the underlying Java method or constructor.
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 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.
Thrown if errors are detected while attempting to define a host object
from a Java class.
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.
Compile a JavaScript function.
compileReader(Reader in, String sourceName, int lineno, Object securityDomain)
ignoring scope argument.
Compiles the source in the given reader.
Compiles the source in the given string.
Call the function as a constructor.
This class represents the runtime context of an executing script.
Get class loader-like object that can be used
to define classes with the given security context.
Create GeneratedClassLoader
with restrictions imposed by
staticDomain and all current stack frames.
Return new
Scriptable
instance using the default
constructor for the class of the underlying Java method.
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.
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.
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 argument array object.
Get a context associated with the current thread, creating
one if need be.
Get a Context associated with the current thread, using
the given Context if need be.
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.
callWithDomain(Object securityDomain, Context cx, Callable callable, Scriptable scope, Scriptable thisObj, Object[] args)
.
Exit a block of code requiring a Context.
If hasFeature(FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME) returns true,
allow 'function memberExpression(args) { body }' to be syntax sugar
for
'memberExpression = function(args) { body }', when memberExpression
is not simply identifier.
If hasFeature(FEATURE_NON_ECMA_GET_YEAR) returns true,
Date.prototype.getYear subtructs 1900 only if 1900 <= date <322000.
If hasFeature(RESERVED_KEYWORD_AS_IDENTIFIER) returns true,
treat future reserved keyword (see Ecma-262, section 7.5.3) as ordinary
identifiers but warn about this usage
If hasFeature(FEATURE_TO_STRING_AS_SOURCE) returns true,
calling toString on JS objects gives JS source with code to create an
object with all enumeratable fields of the original object instead of
printing "[object ]".
This is interface that all functions in JavaScript must implement.
Create a JavaScript function object from a Java method.
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.
Returns the value of the named property or NOT_FOUND.
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.
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.
Return the name of the class.
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.
The column number of the location of the error, or zero if unknown.
The column number of the location of the error, or zero if unknown.
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.
Get the current error reporter.
Get the Function.prototype property.
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.
Returns the line number of the statement causing the error,
or zero if not available.
Returns the line number of the statement causing the error,
or zero if not available.
Returns the line number of the statement causing the error,
or zero if not available.
The source of the line causing the error, or zero if unknown.
The source of the line causing the error, or zero if unknown.
Gets the localized message.
Gets the message corresponding to the error.
Get the message for the exception.
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 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 containing the error, or null
if that information is not available.
Get the name of the source containing the error, or null
if that information is not available.
Get the name of the source containing the error, or null
if that information is not available.
Get a value corresponding to a key.
Get the singleton object that represents the JavaScript Undefined value.
Return the current WrapHandler, 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.
Returns true if the named property is defined.
Indicates whether or not a named property is defined in an object.
Returns true if the named property is defined.
Return whether functions are compiled by this context using
dynamic scope.
Returns true if the name is excluded from serialization.
Controls certain aspects of script semantics.
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.
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.
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.
Return true if this object is sealed.
Property attribute indicating property cannot be deleted.
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.
Sets an indexed property in this object.
Sets the value of the indexed property, creating it if need be.
Sets a named property in this object.
Sets the value of the named property, creating it if need be.
Puts an indexed property in an object or in an object in its prototype chain.
Puts a named property in an object or in an object in its prototype chain.
Put a value that can later be retrieved using a given key.
Property attribute indicating assignment to this property is ignored.
Remove a name from the list of names forcing the creation of real
activation objects for functions.
Remove a Context listener.
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.
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 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 whether functions compiled by this context should use
dynamic scope.
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.
To optimize invocation of reflected Java methods, the engine generates
special glue classes that will call the methods directly.
Set the language version.
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 a WrapFactory for this Context.
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.