BowlerKernel
Public Member Functions | List of all members
com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage Interface Reference
Inheritance diagram for com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage:
Inheritance graph
[legend]

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 ()
 

Detailed Description

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());

Author
hephaestus

Definition at line 16 of file IScriptingLanguage.java.

Member Function Documentation

◆ getDefaultContents() [1/2]

String com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.getDefaultContents ( )

◆ getDefaultContents() [2/2]

default String com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.getDefaultContents ( String  gitURL,
String  fileSlug 
)

Get the contents of an empty file

Parameters
fileSlug
Returns

Implemented in com.neuronrobotics.bowlerstudio.scripting.RobotHelper.

Definition at line 73 of file IScriptingLanguage.java.

References com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.getDefaultContents().

Here is the call graph for this function:

◆ getFileExtenetion()

abstract ArrayList<String> com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.getFileExtenetion ( )
abstract

◆ getIsTextFile()

boolean com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.getIsTextFile ( )

◆ getShellType()

abstract String com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.getShellType ( )
abstract

◆ inlineScriptRun() [1/2]

abstract Object com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.inlineScriptRun ( File  code,
ArrayList< Object >  args 
) throws Exception
abstract

◆ inlineScriptRun() [2/2]

abstract Object com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.inlineScriptRun ( String  code,
ArrayList< Object >  args 
) throws Exception
abstract

◆ isSupportedFileExtenetion()

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.

Parameters
filenamethe filename of the file to be executed
Returns
true if the file extension is supported, false otherwise.

Definition at line 54 of file IScriptingLanguage.java.

References com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.getFileExtenetion().

Here is the call graph for this function:

The documentation for this interface was generated from the following file: