|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScriptEngineFactory
ScriptEngineFactory is used to describe a ScriptEngine instance.
Each ScriptEngine class implementing ScriptEngine has a
corresponding factory which exposes metadata describing the engine
class.
Nandika Jayawardana
Method Summary | |
---|---|
java.lang.String |
getEngineName()
Retrieves the full name of the ScriptEngine. |
java.lang.String |
getEngineVersion()
Retrieves the version of the Script Engine. |
java.util.List |
getExtensions()
Retrieves an array of Strings which are file extensions tipically used for files containing scripts written in the language supported by the ScriptEngine. |
java.lang.String |
getLanguageName()
Retrieves the name of the language supported by the ScriptEngine. |
java.lang.String |
getLanguageVersion()
Retrieves the version of the language supported by the ScriptEngine. |
java.lang.String |
getMethodCallSyntax(java.lang.String obj,
java.lang.String m,
java.lang.String[] args)
Return a syntax string for method calls |
java.util.List |
getMimeTypes()
Retrieves an array of Strings containing MIME types describing the content which can be processed using the Script Engine. |
java.util.List |
getNames()
Retrieves an array of short descriptive names such as {"javascript", "rhino"} describing the language supported by the Script Engine. |
java.lang.String |
getOutputStatement(java.lang.String toDisplay)
Return the output syntax |
java.lang.Object |
getParameter(java.lang.String key)
Retrieves an associated value for the specified key. |
java.lang.String |
getProgram(java.lang.String[] statements)
Return the program syntax |
ScriptEngine |
getScriptEngine()
Retrieves an instance of the associated ScriptEngine. |
Method Detail |
---|
java.lang.String getEngineName()
java.lang.String getEngineVersion()
java.lang.String getLanguageName()
java.lang.String getLanguageVersion()
java.util.List getExtensions()
java.util.List getMimeTypes()
java.util.List getNames()
java.lang.Object getParameter(java.lang.String key)
key
- The key
ScriptEngine getScriptEngine()
java.lang.String getMethodCallSyntax(java.lang.String obj, java.lang.String m, java.lang.String[] args)
obj
- The call objectm
- The methodsargs
- The arguments
java.lang.String getOutputStatement(java.lang.String toDisplay)
toDisplay
- The output string
java.lang.String getProgram(java.lang.String[] statements)
statements
- The statement sequence
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |