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至以后使用中的所述一个来执行
eval的方法
CompiledScript 。
ScriptException - 如果编译失败。
NullPointerException - 如果参数为空。
CompiledScript compile(Reader script) throws ScriptException
Reader )供以后执行。
除了通过源的方式以外,功能与compile(String) 。
script - 获取脚本源的读者。
CompiledScript稍后将使用它的一个执行
eval的方法
CompiledScript 。
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.