public class GroovyEngine extends Object implements ScriptEngine
| Constructor and Description |
|---|
GroovyEngine() |
| Modifier and Type | Method and Description |
|---|---|
void |
del(String... vars) |
Object |
execute(File script,
Object[] args) |
Object |
execute(String statement) |
Object |
expandParameter(String variable,
String format) |
Map<String,Object> |
find(String name) |
Object |
get(String name) |
String |
getEngineName() |
List<String> |
getExtensions() |
boolean |
hasVariable(String name) |
void |
persist(Path file,
Object object,
String format) |
void |
put(String name,
Object value) |
String |
toJson(Object obj) |
String |
toString(Object obj) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, expandParameter, find, persistpublic boolean hasVariable(String name)
hasVariable in interface ScriptEnginepublic void put(String name, Object value)
put in interface ScriptEnginepublic Object get(String name)
get in interface ScriptEnginepublic Object expandParameter(String variable, String format)
expandParameter in interface ScriptEnginepublic void persist(Path file, Object object, String format)
persist in interface ScriptEnginepublic Object execute(File script, Object[] args) throws Exception
execute in interface ScriptEngineExceptionpublic Object execute(String statement) throws Exception
execute in interface ScriptEngineExceptionpublic String getEngineName()
getEngineName in interface ScriptEnginepublic List<String> getExtensions()
getExtensions in interface ScriptEnginepublic void del(String... vars)
del in interface ScriptEnginepublic String toJson(Object obj)
toJson in interface ScriptEnginepublic String toString(Object obj)
toString in interface ScriptEngineCopyright © 2020. All rights reserved.