|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.sling.scripting.api.AbstractScriptEngineFactory
public abstract class AbstractScriptEngineFactory
This abstract class can be used for own script engine factory implementations.
Constructor Summary | |
---|---|
protected |
AbstractScriptEngineFactory()
|
Method Summary | |
---|---|
String |
getEngineName()
|
String |
getEngineVersion()
|
List<String> |
getExtensions()
|
String |
getMethodCallSyntax(String obj,
String m,
String... args)
|
List<String> |
getMimeTypes()
|
List<String> |
getNames()
|
String |
getOutputStatement(String value)
|
Object |
getParameter(String name)
|
String |
getProgram(String... arg0)
|
protected void |
setEngineName(String engineName)
Set the engine name. |
protected void |
setEngineVersion(String engineVersion)
Set the engine version |
protected void |
setExtensions(String... extensions)
Set the extensions |
protected void |
setMimeTypes(String... mimeTypes)
Set the mime types |
protected void |
setNames(String... names)
Set the names |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.script.ScriptEngineFactory |
---|
getLanguageName, getLanguageVersion, getScriptEngine |
Constructor Detail |
---|
protected AbstractScriptEngineFactory()
Method Detail |
---|
public String getEngineName()
getEngineName
in interface javax.script.ScriptEngineFactory
ScriptEngineFactory.getEngineName()
protected void setEngineName(String engineName)
engineName
- The new engine namepublic String getEngineVersion()
getEngineVersion
in interface javax.script.ScriptEngineFactory
ScriptEngineFactory.getEngineVersion()
protected void setEngineVersion(String engineVersion)
engineVersion
- The version stringpublic List<String> getExtensions()
getExtensions
in interface javax.script.ScriptEngineFactory
ScriptEngineFactory.getExtensions()
protected void setExtensions(String... extensions)
extensions
- The array of extensionspublic List<String> getMimeTypes()
getMimeTypes
in interface javax.script.ScriptEngineFactory
ScriptEngineFactory.getMimeTypes()
protected void setMimeTypes(String... mimeTypes)
mimeTypes
- The array of mime typespublic List<String> getNames()
getNames
in interface javax.script.ScriptEngineFactory
ScriptEngineFactory.getNames()
protected void setNames(String... names)
names
- The array of names.public String getMethodCallSyntax(String obj, String m, String... args)
getMethodCallSyntax
in interface javax.script.ScriptEngineFactory
ScriptEngineFactory.getMethodCallSyntax(java.lang.String, java.lang.String, java.lang.String[])
public String getOutputStatement(String value)
getOutputStatement
in interface javax.script.ScriptEngineFactory
ScriptEngineFactory.getOutputStatement(java.lang.String)
public Object getParameter(String name)
getParameter
in interface javax.script.ScriptEngineFactory
ScriptEngineFactory.getParameter(java.lang.String)
public String getProgram(String... arg0)
getProgram
in interface javax.script.ScriptEngineFactory
ScriptEngineFactory.getProgram(java.lang.String[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |