Package io.jawk.jsr223
Class JawkScriptEngineFactory
java.lang.Object
io.jawk.jsr223.JawkScriptEngineFactory
- All Implemented Interfaces:
ScriptEngineFactory
ScriptEngineFactory for Jawk.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMethodCallSyntax(String obj, String m, String... args) getNames()getOutputStatement(String toDisplay) getParameter(String key) getProgram(String... statements)
-
Constructor Details
-
JawkScriptEngineFactory
public JawkScriptEngineFactory()Creates the factory.This is the constructor the JSR-223
ScriptEngineManageruses when it discovers Jawk through the service loader.
-
-
Method Details
-
getEngineName
- Specified by:
getEngineNamein interfaceScriptEngineFactory
-
getEngineVersion
The version of the Jawk that is running, the same one
jawk -Vprints, resolved from the jar metadata byJawkVersion.getVersion(). It isunknownwhen Jawk runs from a plain class directory, which carries no version at all.- Specified by:
getEngineVersionin interfaceScriptEngineFactory
-
getExtensions
- Specified by:
getExtensionsin interfaceScriptEngineFactory
-
getMimeTypes
- Specified by:
getMimeTypesin interfaceScriptEngineFactory
-
getNames
- Specified by:
getNamesin interfaceScriptEngineFactory
-
getLanguageName
- Specified by:
getLanguageNamein interfaceScriptEngineFactory
-
getLanguageVersion
POSIX: the language Jawk implements is POSIX awk, which is specified by revision rather than by a version number of its own. Jawk's own version, which does move from release to release, isgetEngineVersion().- Specified by:
getLanguageVersionin interfaceScriptEngineFactory
-
getParameter
- Specified by:
getParameterin interfaceScriptEngineFactory
-
getMethodCallSyntax
- Specified by:
getMethodCallSyntaxin interfaceScriptEngineFactory
-
getOutputStatement
- Specified by:
getOutputStatementin interfaceScriptEngineFactory
-
getProgram
- Specified by:
getProgramin interfaceScriptEngineFactory
-
getScriptEngine
- Specified by:
getScriptEnginein interfaceScriptEngineFactory
-