Package org.metricshub.jawk.jsr223
Class JawkScriptEngine
java.lang.Object
javax.script.AbstractScriptEngine
org.metricshub.jawk.jsr223.JawkScriptEngine
- All Implemented Interfaces:
ScriptEngine
Simple JSR-223 script engine for Jawk that delegates execution to the
Awk runtime.-
Field Summary
Fields inherited from interface javax.script.ScriptEngine
ARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME -
Constructor Summary
ConstructorsConstructorDescriptionJawkScriptEngine(ScriptEngineFactory factory) Creates a new script engine instance. -
Method Summary
Modifier and TypeMethodDescriptioneval(Reader scriptReader, ScriptContext context) eval(String script, ScriptContext context) Methods inherited from class javax.script.AbstractScriptEngine
eval, eval, eval, eval, get, getBindings, getContext, put, setBindings, setContext
-
Constructor Details
-
JawkScriptEngine
Creates a new script engine instance.- Parameters:
factory- the owningScriptEngineFactory
-
-
Method Details
-
eval
- Throws:
ScriptException
-
eval
- Throws:
ScriptException
-
createBindings
-
getFactory
-