BowlerKernel
|
Public Member Functions | |
abstract Object | inlineScriptRun (File code, ArrayList< Object > args) throws Exception |
abstract Object | inlineScriptRun (String code, ArrayList< Object > args) throws Exception |
abstract String | getShellType () |
abstract ArrayList< String > | getFileExtenetion () |
default boolean | isSupportedFileExtenetion (String filename) |
String | getDefaultContents () |
default String | getDefaultContents (String gitURL, String fileSlug) |
boolean | getIsTextFile () |
Adding additional language support to bowler studio THis interface is for adding new scripting languages Add the new langauge in the Static declaration of ScriptingEngine or dynamically via:
ScriptingEngine.addScriptingLanguage(new IScriptingLanguage());
Definition at line 16 of file IScriptingLanguage.java.
String com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.getDefaultContents | ( | ) |
Get the contents of an empty file
Implemented in com.neuronrobotics.bowlerstudio.scripting.SvgLoader, com.neuronrobotics.bowlerstudio.scripting.SequenceRunner, com.neuronrobotics.bowlerstudio.scripting.RobotHelper, com.neuronrobotics.bowlerstudio.scripting.JythonHelper, com.neuronrobotics.bowlerstudio.scripting.JsonRunner, com.neuronrobotics.bowlerstudio.scripting.GroovyHelper, com.neuronrobotics.bowlerstudio.scripting.ClojureHelper, com.neuronrobotics.bowlerstudio.scripting.BashLoader, and com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.
Referenced by com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.getDefaultContents().
default String com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.getDefaultContents | ( | String | gitURL, |
String | fileSlug | ||
) |
Get the contents of an empty file
fileSlug |
Implemented in com.neuronrobotics.bowlerstudio.scripting.RobotHelper.
Definition at line 73 of file IScriptingLanguage.java.
References com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.getDefaultContents().
|
abstract |
Returns the list of supported file extentions Convention is to provide just the leters that make up the file extention
Implemented in com.neuronrobotics.bowlerstudio.scripting.SvgLoader, com.neuronrobotics.bowlerstudio.scripting.SequenceRunner, com.neuronrobotics.bowlerstudio.scripting.RobotHelper, com.neuronrobotics.bowlerstudio.scripting.JythonHelper, com.neuronrobotics.bowlerstudio.scripting.JsonRunner, com.neuronrobotics.bowlerstudio.scripting.GroovyHelper, com.neuronrobotics.bowlerstudio.scripting.ClojureHelper, com.neuronrobotics.bowlerstudio.scripting.BashLoader, and com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.
Referenced by com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.isSupportedFileExtenetion().
boolean com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.getIsTextFile | ( | ) |
This function returns if this is a binary file or a text file
Implemented in com.neuronrobotics.bowlerstudio.scripting.SvgLoader, com.neuronrobotics.bowlerstudio.scripting.SequenceRunner, com.neuronrobotics.bowlerstudio.scripting.RobotHelper, com.neuronrobotics.bowlerstudio.scripting.JythonHelper, com.neuronrobotics.bowlerstudio.scripting.JsonRunner, com.neuronrobotics.bowlerstudio.scripting.GroovyHelper, com.neuronrobotics.bowlerstudio.scripting.ClojureHelper, com.neuronrobotics.bowlerstudio.scripting.BashLoader, and com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.
|
abstract |
Returns the HashMap key for this language
Implemented in com.neuronrobotics.bowlerstudio.scripting.SvgLoader, com.neuronrobotics.bowlerstudio.scripting.SequenceRunner, com.neuronrobotics.bowlerstudio.scripting.RobotHelper, com.neuronrobotics.bowlerstudio.scripting.JythonHelper, com.neuronrobotics.bowlerstudio.scripting.JsonRunner, com.neuronrobotics.bowlerstudio.scripting.GroovyHelper, com.neuronrobotics.bowlerstudio.scripting.ClojureHelper, com.neuronrobotics.bowlerstudio.scripting.BashLoader, and com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.
Referenced by com.neuronrobotics.bowlerstudio.scripting.ScriptingEngine.addScriptingLanguage().
|
abstract |
This interface is for adding additional language support.
code | file content of the code to be executed |
args | the incoming arguments as a list of objects |
Implemented in com.neuronrobotics.bowlerstudio.scripting.SvgLoader, com.neuronrobotics.bowlerstudio.scripting.SequenceRunner, com.neuronrobotics.bowlerstudio.scripting.RobotHelper, com.neuronrobotics.bowlerstudio.scripting.JythonHelper, com.neuronrobotics.bowlerstudio.scripting.JsonRunner, com.neuronrobotics.bowlerstudio.scripting.GroovyHelper, com.neuronrobotics.bowlerstudio.scripting.ClojureHelper, com.neuronrobotics.bowlerstudio.scripting.BashLoader, and com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.
|
abstract |
This interface is for adding additional language support.
code | the text content of the code to be executed |
args | the incoming arguments as a list of objects |
Implemented in com.neuronrobotics.bowlerstudio.scripting.SvgLoader, com.neuronrobotics.bowlerstudio.scripting.SequenceRunner, com.neuronrobotics.bowlerstudio.scripting.RobotHelper, com.neuronrobotics.bowlerstudio.scripting.JythonHelper, com.neuronrobotics.bowlerstudio.scripting.JsonRunner, com.neuronrobotics.bowlerstudio.scripting.GroovyHelper, com.neuronrobotics.bowlerstudio.scripting.ClojureHelper, com.neuronrobotics.bowlerstudio.scripting.BashLoader, and com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.
default boolean com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.isSupportedFileExtenetion | ( | String | filename | ) |
This function should return true is the filename provided is of a supported file extension. This function may never be called if this language is only used internally.
filename | the filename of the file to be executed |
Definition at line 54 of file IScriptingLanguage.java.
References com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.getFileExtenetion().