public interface Compilable
Modifier and Type | Method and Description |
---|---|
CompiledScript |
compile(Reader script)
编写脚本(源读取
Reader )稍后执行。
|
CompiledScript |
compile(String script)
编写脚本(来源为
String )稍后执行。
|
CompiledScript compile(String script) throws ScriptException
String
)稍后执行。
script
脚本的源,表现为
String
。
CompiledScript
一类能够用一对
CompiledScript
的
eval
方法后执行。
ScriptException
如果编译失败。
NullPointerException
-如果参数为空。
CompiledScript compile(Reader script) throws ScriptException
Reader
)稍后执行。功能是
compile(String)
以外的方式,是通过相同的源。
script
-读者得到脚本源。
CompiledScript
的实现是使用一对
CompiledScript
其
eval
方法后执行。
ScriptException
如果编译失败。
NullPointerException
如果参数为null。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.