ua.gradsoft.termware.jsr223
Class TermWareScriptEngineFactory

java.lang.Object
  extended by ua.gradsoft.termware.jsr223.TermWareScriptEngineFactory
All Implemented Interfaces:
ScriptEngineFactory

public class TermWareScriptEngineFactory
extends Object
implements ScriptEngineFactory

JSR 223 compatible ScriptEngine factory for termware.

Author:
rssh

Field Summary
static String NAME
           
 
Constructor Summary
TermWareScriptEngineFactory()
           
 
Method Summary
 String getEngineName()
           
 String getEngineVersion()
           
 List<String> getExtensions()
           
 String getLanguageName()
           
 String getLanguageVersion()
           
 String getMethodCallSyntax(String obj, String m, String... args)
           
 List<String> getMimeTypes()
           
 List<String> getNames()
           
 String getOutputStatement(String string)
           
 Object getParameter(String key)
           
 String getProgram(String... statements)
          return program, which sequentially evaluate all statements.
 ScriptEngine getScriptEngine()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

TermWareScriptEngineFactory

public TermWareScriptEngineFactory()
Method Detail

getEngineName

public String getEngineName()
Specified by:
getEngineName in interface ScriptEngineFactory

getEngineVersion

public String getEngineVersion()
Specified by:
getEngineVersion in interface ScriptEngineFactory

getExtensions

public List<String> getExtensions()
Specified by:
getExtensions in interface ScriptEngineFactory

getLanguageName

public String getLanguageName()
Specified by:
getLanguageName in interface ScriptEngineFactory

getLanguageVersion

public String getLanguageVersion()
Specified by:
getLanguageVersion in interface ScriptEngineFactory

getMethodCallSyntax

public String getMethodCallSyntax(String obj,
                                  String m,
                                  String... args)
Specified by:
getMethodCallSyntax in interface ScriptEngineFactory

getOutputStatement

public String getOutputStatement(String string)
Specified by:
getOutputStatement in interface ScriptEngineFactory

getProgram

public String getProgram(String... statements)
return program, which sequentially evaluate all statements. (in our case, we have sequential_reduce transformer, which do this).

Specified by:
getProgram in interface ScriptEngineFactory

getMimeTypes

public List<String> getMimeTypes()
Specified by:
getMimeTypes in interface ScriptEngineFactory

getNames

public List<String> getNames()
Specified by:
getNames in interface ScriptEngineFactory

getParameter

public Object getParameter(String key)
Specified by:
getParameter in interface ScriptEngineFactory

getScriptEngine

public ScriptEngine getScriptEngine()
Specified by:
getScriptEngine in interface ScriptEngineFactory