public class GroovyScriptEngineFactory
extends java.lang.Object
implements javax.script.ScriptEngineFactory
ScriptEngines
and also exposes metadata describing
Groovy's engine class.Constructor and Description |
---|
GroovyScriptEngineFactory() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEngineName() |
java.lang.String |
getEngineVersion()
Note that the scripting.dev.java.net engine had this backwards.
|
java.util.List<java.lang.String> |
getExtensions() |
java.lang.String |
getLanguageName()
This is also different than scripting.dev.java.net which used an
initial lowercase.
|
java.lang.String |
getLanguageVersion() |
java.lang.String |
getMethodCallSyntax(java.lang.String obj,
java.lang.String method,
java.lang.String... args) |
java.util.List<java.lang.String> |
getMimeTypes() |
java.util.List<java.lang.String> |
getNames() |
java.lang.String |
getOutputStatement(java.lang.String toDisplay) |
java.lang.Object |
getParameter(java.lang.String key) |
java.lang.String |
getProgram(java.lang.String... statements) |
javax.script.ScriptEngine |
getScriptEngine() |
public java.lang.String getEngineName()
getEngineName
in interface javax.script.ScriptEngineFactory
public java.lang.String getEngineVersion()
getEngineVersion
in interface javax.script.ScriptEngineFactory
public java.lang.String getLanguageName()
getLanguageName
in interface javax.script.ScriptEngineFactory
public java.lang.String getLanguageVersion()
getLanguageVersion
in interface javax.script.ScriptEngineFactory
public java.util.List<java.lang.String> getExtensions()
getExtensions
in interface javax.script.ScriptEngineFactory
public java.util.List<java.lang.String> getMimeTypes()
getMimeTypes
in interface javax.script.ScriptEngineFactory
public java.util.List<java.lang.String> getNames()
getNames
in interface javax.script.ScriptEngineFactory
public java.lang.Object getParameter(java.lang.String key)
getParameter
in interface javax.script.ScriptEngineFactory
public javax.script.ScriptEngine getScriptEngine()
getScriptEngine
in interface javax.script.ScriptEngineFactory
public java.lang.String getMethodCallSyntax(java.lang.String obj, java.lang.String method, java.lang.String... args)
getMethodCallSyntax
in interface javax.script.ScriptEngineFactory
public java.lang.String getOutputStatement(java.lang.String toDisplay)
getOutputStatement
in interface javax.script.ScriptEngineFactory
public java.lang.String getProgram(java.lang.String... statements)
getProgram
in interface javax.script.ScriptEngineFactory