public class GroovyScriptEngineFactory
A factory class conforming to JSR-223 which is used to instantiate
Groovy ScriptEngines
and also exposes metadata describing
Groovy's engine class.
Adapted from original by Mike Grogan and A. Sundararajan
Type Params | Return Type | Name and description |
---|---|---|
|
String |
getEngineName() |
|
String |
getEngineVersion() Note that the scripting.dev.java.net engine had this backwards. |
|
List<String> |
getExtensions() |
|
String |
getLanguageName() This is also different than scripting.dev.java.net which used an initial lowercase. |
|
String |
getLanguageVersion() |
|
String |
getMethodCallSyntax(String obj, String method, String... args) |
|
List<String> |
getMimeTypes() |
|
List<String> |
getNames() |
|
String |
getOutputStatement(String toDisplay) |
|
Object |
getParameter(String key) |
|
String |
getProgram(String... statements) |
|
ScriptEngine |
getScriptEngine() |
Note that the scripting.dev.java.net engine had this backwards. The engine version refers to this engine implementation. Whereas language version refers to the groovy implementation (which is obtained from the runtime).
This is also different than scripting.dev.java.net which used an initial lowercase. But these are proper names and should be capitalized.