索引
All Classes and Interfaces|常量字段值|所有程序包|序列化表格
A
- AbstractScriptEngine - com.script中的类
-
Provides a standard implementation for several of the variants of the
evalmethod. - AbstractScriptEngine() - 类的构造器 com.script.AbstractScriptEngine
-
Creates a new instance of AbstractScriptEngine using a
SimpleScriptContextas its defaultScriptContext. - AbstractScriptEngine(Bindings) - 类的构造器 com.script.AbstractScriptEngine
-
Creates a new instance using the specified
Bindingsas theENGINE_SCOPEBindingsin the protectedcontextfield.
B
- Bindings - com.script中的接口
-
A mapping of key/value pairs, all of whose keys are
Strings.
C
- clear() - 类中的方法 com.script.SimpleBindings
- com.script - 程序包 com.script
- Compilable - com.script中的接口
-
The optional interface implemented by ScriptEngines whose methods compile scripts to a form that can be executed repeatedly without recompilation.
- compile(Reader) - 接口中的方法 com.script.Compilable
-
Compiles the script (source read from
Reader) for later execution. - compile(String) - 接口中的方法 com.script.Compilable
-
Compiles the script (source represented as a
String) for later execution. - CompiledScript - com.script中的类
-
Extended by classes that store results of compilations.
- CompiledScript() - 类的构造器 com.script.CompiledScript
-
Constructor for subclasses to call.
- containsKey(Object) - 接口中的方法 com.script.Bindings
-
Returns
trueif this map contains a mapping for the specified key. - containsKey(Object) - 类中的方法 com.script.SimpleBindings
-
Returns
trueif this map contains a mapping for the specified key. - containsValue(Object) - 类中的方法 com.script.SimpleBindings
- context - 类中的变量 com.script.AbstractScriptEngine
-
The default
ScriptContextof thisAbstractScriptEngine. - createBindings() - 接口中的方法 com.script.ScriptEngine
-
Returns an uninitialized
Bindings.
E
- ENGINE_SCOPE - 接口中的静态变量 com.script.ScriptContext
-
EngineScope attributes are visible during the lifetime of a single
ScriptEngineand a set of attributes is maintained for each engine. - engineScope - 类中的变量 com.script.SimpleScriptContext
-
This is the engine scope bindings.
- entrySet() - 类中的方法 com.script.SimpleBindings
- errorWriter - 类中的变量 com.script.SimpleScriptContext
-
This is the writer to be used to output errors from scripts.
- eval() - 类中的方法 com.script.CompiledScript
-
Executes the program stored in the
CompiledScriptobject. - eval(Bindings) - 类中的方法 com.script.CompiledScript
-
Executes the program stored in the
CompiledScriptobject using the suppliedBindingsof attributes as theENGINE_SCOPEof the associatedScriptEngineduring script execution. - eval(ScriptContext) - 类中的方法 com.script.CompiledScript
-
Executes the program stored in this
CompiledScriptobject. - eval(Reader) - 类中的方法 com.script.AbstractScriptEngine
-
eval(Reader)calls the abstracteval(Reader, ScriptContext)passing the value of thecontextfield. - eval(Reader) - 接口中的方法 com.script.ScriptEngine
-
Same as
eval(String)except that the source of the script is provided as aReader - eval(Reader, Bindings) - 类中的方法 com.script.AbstractScriptEngine
-
eval(Reader, Bindings)calls the abstracteval(Reader, ScriptContext)method, passing it aScriptContextwhose Reader, Writers and Bindings for scopes other thatENGINE_SCOPEare identical to those members of the protectedcontextfield. - eval(Reader, Bindings) - 接口中的方法 com.script.ScriptEngine
-
Same as
eval(String, Bindings)except that the source of the script is provided as aReader. - eval(Reader, ScriptContext) - 接口中的方法 com.script.ScriptEngine
-
Same as
eval(String, ScriptContext)where the source of the script is read from aReader. - eval(String) - 类中的方法 com.script.AbstractScriptEngine
-
Same as
eval(Reader)except that the abstracteval(String, ScriptContext)is used. - eval(String) - 接口中的方法 com.script.ScriptEngine
-
Executes the specified script.
- eval(String, Bindings) - 类中的方法 com.script.AbstractScriptEngine
-
Same as
eval(Reader, Bindings)except that the abstracteval(String, ScriptContext)is used. - eval(String, Bindings) - 接口中的方法 com.script.ScriptEngine
-
Executes the script using the
Bindingsargument as theENGINE_SCOPEBindingsof theScriptEngineduring the script execution. - eval(String, ScriptContext) - 接口中的方法 com.script.ScriptEngine
-
Causes the immediate execution of the script whose source is the String passed as the first argument.
F
- FILENAME - 接口中的静态变量 com.script.ScriptEngine
-
Reserved key for a named value that is the name of the file being executed.
G
- get(Object) - 接口中的方法 com.script.Bindings
-
Returns the value to which this map maps the specified key.
- get(Object) - 类中的方法 com.script.SimpleBindings
-
Returns the value to which this map maps the specified key.
- get(String) - 类中的方法 com.script.AbstractScriptEngine
-
Gets the value for the specified key in the
ENGINE_SCOPEof the protectedcontextfield. - get(String) - 接口中的方法 com.script.ScriptEngine
-
Retrieves a value set in the state of this engine.
- getAttribute(String) - 接口中的方法 com.script.ScriptContext
-
Retrieves the value of the attribute with the given name in the scope occurring earliest in the search order.
- getAttribute(String) - 类中的方法 com.script.SimpleScriptContext
-
Retrieves the value of the attribute with the given name in the scope occurring earliest in the search order.
- getAttribute(String, int) - 接口中的方法 com.script.ScriptContext
-
Gets the value of an attribute in a given scope.
- getAttribute(String, int) - 类中的方法 com.script.SimpleScriptContext
-
Gets the value of an attribute in a given scope.
- getAttributesScope(String) - 接口中的方法 com.script.ScriptContext
-
Get the lowest scope in which an attribute is defined.
- getAttributesScope(String) - 类中的方法 com.script.SimpleScriptContext
-
Get the lowest scope in which an attribute is defined.
- getBindings(int) - 类中的方法 com.script.AbstractScriptEngine
-
Returns the
Bindingswith the specified scope value in the protectedcontextfield. - getBindings(int) - 接口中的方法 com.script.ScriptContext
-
Gets the
Bindingsassociated with the given scope in thisScriptContext. - getBindings(int) - 接口中的方法 com.script.ScriptEngine
-
Returns a scope of named values.
- getBindings(int) - 类中的方法 com.script.SimpleScriptContext
-
Returns the value of the
engineScopefield if specified scope isENGINE_SCOPE. - getColumnNumber() - 异常错误中的方法 com.script.ScriptException
-
Get the column number on which an error occurred.
- getContext() - 类中的方法 com.script.AbstractScriptEngine
-
Returns the value of the protected
contextfield. - getContext() - 接口中的方法 com.script.ScriptEngine
-
Returns the default
ScriptContextof theScriptEnginewhose Bindings, Reader and Writers are used for script executions when noScriptContextis specified. - getEngine() - 类中的方法 com.script.CompiledScript
-
Returns the
ScriptEnginewhosecompilemethod created thisCompiledScript. - getErrorWriter() - 接口中的方法 com.script.ScriptContext
-
Returns the
Writerused to display error output. - getErrorWriter() - 类中的方法 com.script.SimpleScriptContext
-
Returns the
Writerused to display error output. - getFileName() - 异常错误中的方法 com.script.ScriptException
-
Get the source of the script causing the error.
- getInterface(Class<T>) - 接口中的方法 com.script.Invocable
-
Returns an implementation of an interface using functions compiled in the interpreter.
- getInterface(Object, Class<T>) - 接口中的方法 com.script.Invocable
-
Returns an implementation of an interface using member functions of a scripting object compiled in the interpreter.
- getLineNumber() - 异常错误中的方法 com.script.ScriptException
-
Get the line number on which an error occurred.
- getMessage() - 异常错误中的方法 com.script.ScriptException
-
Returns a message containing the String passed to a constructor as well as line and column numbers and filename if any of these are known.
- getReader() - 接口中的方法 com.script.ScriptContext
-
Returns a
Readerto be used by the script to read input. - getReader() - 类中的方法 com.script.SimpleScriptContext
-
Returns a
Readerto be used by the script to read input. - getScopes() - 接口中的方法 com.script.ScriptContext
-
Returns immutable
Listof all the valid values for scope in the ScriptContext. - getScopes() - 类中的方法 com.script.SimpleScriptContext
-
Returns immutable
Listof all the valid values for scope in the ScriptContext. - getScriptContext(Bindings) - 类中的方法 com.script.AbstractScriptEngine
-
Returns a
SimpleScriptContext. - getWriter() - 接口中的方法 com.script.ScriptContext
-
Returns the
Writerfor scripts to use when displaying output. - getWriter() - 类中的方法 com.script.SimpleScriptContext
-
Returns the
Writerfor scripts to use when displaying output. - GLOBAL_SCOPE - 接口中的静态变量 com.script.ScriptContext
-
GlobalScope attributes are visible to all engines created by same ScriptEngineFactory.
- globalScope - 类中的变量 com.script.SimpleScriptContext
-
This is the global scope bindings.
I
- Invocable - com.script中的接口
-
The optional interface implemented by ScriptEngines whose methods allow the invocation of procedures in scripts that have previously been executed.
- invokeFunction(String, Object...) - 接口中的方法 com.script.Invocable
-
Used to call top-level procedures and functions defined in scripts.
- invokeMethod(Object, String, Object...) - 接口中的方法 com.script.Invocable
-
Calls a method on a script object compiled during a previous script execution, which is retained in the state of the
ScriptEngine. - isEmpty() - 类中的方法 com.script.SimpleBindings
K
- keySet() - 类中的方法 com.script.SimpleBindings
P
- put(String, Object) - 类中的方法 com.script.AbstractScriptEngine
-
Sets the specified value with the specified key in the
ENGINE_SCOPEBindingsof the protectedcontextfield. - put(String, Object) - 接口中的方法 com.script.Bindings
-
Set a named value.
- put(String, Object) - 接口中的方法 com.script.ScriptEngine
-
Sets a key/value pair in the state of the ScriptEngine that may either create a Java Language Binding to be used in the execution of scripts or be used in some other way, depending on whether the key is reserved.
- put(String, Object) - 类中的方法 com.script.SimpleBindings
-
Sets the specified key/value in the underlying
mapfield. - putAll(Map<? extends String, ? extends Object>) - 接口中的方法 com.script.Bindings
-
Adds all the mappings in a given
Mapto thisBindings. - putAll(Map<? extends String, ? extends Object>) - 类中的方法 com.script.SimpleBindings
-
putAllis implemented usingMap.putAll.
R
- reader - 类中的变量 com.script.SimpleScriptContext
-
This is the reader to be used for input from scripts.
- remove(Object) - 接口中的方法 com.script.Bindings
-
Removes the mapping for this key from this map if it is present (optional operation).
- remove(Object) - 类中的方法 com.script.SimpleBindings
-
Removes the mapping for this key from this map if it is present (optional operation).
- removeAttribute(String, int) - 接口中的方法 com.script.ScriptContext
-
Remove an attribute in a given scope.
- removeAttribute(String, int) - 类中的方法 com.script.SimpleScriptContext
-
Remove an attribute in a given scope.
S
- ScriptContext - com.script中的接口
-
The interface whose implementing classes are used to connect Script Engines with objects, such as scoped Bindings, in hosting applications.
- ScriptEngine - com.script中的接口
-
ScriptEngineis the fundamental interface whose methods must be fully functional in every implementation of this specification. - ScriptException - com.script中的异常错误
-
The generic
Exceptionclass for the Scripting APIs. - ScriptException(Exception) - 异常错误的构造器 com.script.ScriptException
-
Creates a
ScriptExceptionwrapping anExceptionthrown by an underlying interpreter. - ScriptException(String) - 异常错误的构造器 com.script.ScriptException
-
Creates a
ScriptExceptionwith a String to be used in its message. - ScriptException(String, String, int) - 异常错误的构造器 com.script.ScriptException
-
Creates a
ScriptExceptionwith message, filename and linenumber to be used in error messages. - ScriptException(String, String, int, int) - 异常错误的构造器 com.script.ScriptException
-
ScriptExceptionconstructor specifying message, filename, line number and column number. - setAttribute(String, Object, int) - 接口中的方法 com.script.ScriptContext
-
Sets the value of an attribute in a given scope.
- setAttribute(String, Object, int) - 类中的方法 com.script.SimpleScriptContext
-
Sets the value of an attribute in a given scope.
- setBindings(Bindings, int) - 类中的方法 com.script.AbstractScriptEngine
-
Sets the
Bindingswith the corresponding scope value in thecontextfield. - setBindings(Bindings, int) - 接口中的方法 com.script.ScriptContext
-
Associates a
Bindingsinstance with a particular scope in thisScriptContext. - setBindings(Bindings, int) - 接口中的方法 com.script.ScriptEngine
-
Sets a scope of named values to be used by scripts.
- setBindings(Bindings, int) - 类中的方法 com.script.SimpleScriptContext
-
Sets a
Bindingsof attributes for the given scope. - setContext(ScriptContext) - 类中的方法 com.script.AbstractScriptEngine
-
Sets the value of the protected
contextfield to the specifiedScriptContext. - setContext(ScriptContext) - 接口中的方法 com.script.ScriptEngine
-
Sets the default
ScriptContextof theScriptEnginewhose Bindings, Reader and Writers are used for script executions when noScriptContextis specified. - setErrorWriter(Writer) - 接口中的方法 com.script.ScriptContext
-
Sets the
Writerused to display error output. - setErrorWriter(Writer) - 类中的方法 com.script.SimpleScriptContext
-
Sets the
Writerused to display error output. - setReader(Reader) - 接口中的方法 com.script.ScriptContext
-
Sets the
Readerfor scripts to read input . - setReader(Reader) - 类中的方法 com.script.SimpleScriptContext
-
Sets the
Readerfor scripts to read input . - setWriter(Writer) - 接口中的方法 com.script.ScriptContext
-
Sets the
Writerfor scripts to use when displaying output. - setWriter(Writer) - 类中的方法 com.script.SimpleScriptContext
-
Sets the
Writerfor scripts to use when displaying output. - SimpleBindings - com.script中的类
-
A simple implementation of Bindings backed by a
HashMapor some other specifiedMap. - SimpleBindings() - 类的构造器 com.script.SimpleBindings
-
Default constructor uses a
HashMap. - SimpleBindings(Map<String, Object>) - 类的构造器 com.script.SimpleBindings
-
Constructor uses an existing
Mapto store the values. - SimpleScriptContext - com.script中的类
-
Simple implementation of ScriptContext.
- SimpleScriptContext() - 类的构造器 com.script.SimpleScriptContext
-
Create a
SimpleScriptContext. - size() - 类中的方法 com.script.SimpleBindings
V
- values() - 类中的方法 com.script.SimpleBindings
W
- writer - 类中的变量 com.script.SimpleScriptContext
-
This is the writer to be used to output from scripts.
All Classes and Interfaces|常量字段值|所有程序包|序列化表格