Package org.apache.sling.scripting.api
Class AbstractScriptEngineFactory
- java.lang.Object
-
- org.apache.sling.scripting.api.AbstractScriptEngineFactory
-
- All Implemented Interfaces:
javax.script.ScriptEngineFactory
public abstract class AbstractScriptEngineFactory extends java.lang.Object implements javax.script.ScriptEngineFactory
This abstract class can be used for own script engine factory implementations.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEngineName()
java.lang.String
getEngineVersion()
java.util.List<java.lang.String>
getExtensions()
java.lang.String
getMethodCallSyntax(java.lang.String obj, java.lang.String m, 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 value)
java.lang.Object
getParameter(java.lang.String name)
java.lang.String
getProgram(java.lang.String... arg0)
-
-
-
Method Detail
-
getEngineName
public java.lang.String getEngineName()
- Specified by:
getEngineName
in interfacejavax.script.ScriptEngineFactory
- See Also:
ScriptEngineFactory.getEngineName()
-
getEngineVersion
public java.lang.String getEngineVersion()
- Specified by:
getEngineVersion
in interfacejavax.script.ScriptEngineFactory
- See Also:
ScriptEngineFactory.getEngineVersion()
-
getExtensions
public java.util.List<java.lang.String> getExtensions()
- Specified by:
getExtensions
in interfacejavax.script.ScriptEngineFactory
- See Also:
ScriptEngineFactory.getExtensions()
-
getMimeTypes
public java.util.List<java.lang.String> getMimeTypes()
- Specified by:
getMimeTypes
in interfacejavax.script.ScriptEngineFactory
- See Also:
ScriptEngineFactory.getMimeTypes()
-
getNames
public java.util.List<java.lang.String> getNames()
- Specified by:
getNames
in interfacejavax.script.ScriptEngineFactory
- See Also:
ScriptEngineFactory.getNames()
-
getMethodCallSyntax
public java.lang.String getMethodCallSyntax(java.lang.String obj, java.lang.String m, java.lang.String... args)
- Specified by:
getMethodCallSyntax
in interfacejavax.script.ScriptEngineFactory
- See Also:
ScriptEngineFactory.getMethodCallSyntax(java.lang.String, java.lang.String, java.lang.String[])
-
getOutputStatement
public java.lang.String getOutputStatement(java.lang.String value)
- Specified by:
getOutputStatement
in interfacejavax.script.ScriptEngineFactory
- See Also:
ScriptEngineFactory.getOutputStatement(java.lang.String)
-
getParameter
public java.lang.Object getParameter(java.lang.String name)
- Specified by:
getParameter
in interfacejavax.script.ScriptEngineFactory
- See Also:
ScriptEngineFactory.getParameter(java.lang.String)
-
getProgram
public java.lang.String getProgram(java.lang.String... arg0)
- Specified by:
getProgram
in interfacejavax.script.ScriptEngineFactory
- See Also:
ScriptEngineFactory.getProgram(java.lang.String[])
-
-