public class PlainEngine extends java.lang.Object implements ScriptingEngineHook
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENGINE_NAME |
Constructor and Description |
---|
PlainEngine() |
Modifier and Type | Method and Description |
---|---|
void |
clearCache() |
void |
compileScriptEngine(java.util.Map<java.lang.String,java.lang.Object> objectMap) |
boolean |
consumes(java.lang.String engineName) |
java.lang.Object |
eval(java.lang.String script,
java.lang.String arguments) |
java.lang.String |
getEngineName() |
java.util.List<java.lang.Class<?>> |
loadClasses(java.lang.String script,
java.util.List<java.lang.String> classNames) |
public static final java.lang.String ENGINE_NAME
public java.lang.String getEngineName()
getEngineName
in interface ScriptingEngineHook
public boolean consumes(java.lang.String engineName)
consumes
in interface ScriptingEngineHook
public void compileScriptEngine(java.util.Map<java.lang.String,java.lang.Object> objectMap) throws ScriptEngineException
compileScriptEngine
in interface ScriptingEngineHook
ScriptEngineException
public java.lang.Object eval(java.lang.String script, java.lang.String arguments) throws ScriptEngineException
eval
in interface ScriptingEngineHook
ScriptEngineException
public java.util.List<java.lang.Class<?>> loadClasses(java.lang.String script, java.util.List<java.lang.String> classNames) throws ScriptEngineException
loadClasses
in interface ScriptingEngineHook
ScriptEngineException
public void clearCache() throws ScriptEngineException
clearCache
in interface ScriptingEngineHook
ScriptEngineException