public abstract class StandardScriptUtils extends Object
ScriptEngine.| 构造器和说明 |
|---|
StandardScriptUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ScriptEngine |
retrieveEngineByName(ScriptEngineManager scriptEngineManager,
String engineName)
Retrieve a
ScriptEngine from the given ScriptEngineManager
by name, delegating to ScriptEngineManager.getEngineByName(java.lang.String) but
throwing a descriptive exception if not found or if initialization failed. |
public static ScriptEngine retrieveEngineByName(ScriptEngineManager scriptEngineManager, String engineName)
ScriptEngine from the given ScriptEngineManager
by name, delegating to ScriptEngineManager.getEngineByName(java.lang.String) but
throwing a descriptive exception if not found or if initialization failed.scriptEngineManager - the ScriptEngineManager to useengineName - the name of the enginenull)IllegalArgumentException - if no matching engine has been foundIllegalStateException - if the desired engine failed to initialize