BowlerKernel
Public Member Functions | Private Member Functions | List of all members
com.neuronrobotics.bowlerstudio.scripting.GroovyHelper Class Reference
Inheritance diagram for com.neuronrobotics.bowlerstudio.scripting.GroovyHelper:
Inheritance graph
[legend]
Collaboration diagram for com.neuronrobotics.bowlerstudio.scripting.GroovyHelper:
Collaboration graph
[legend]

Public Member Functions

String getShellType ()
 
String getDefaultContents ()
 
Object inlineScriptRun (File code, ArrayList< Object > args) throws Exception
 
Object inlineScriptRun (String code, ArrayList< Object > args) throws Exception
 
boolean getIsTextFile ()
 
ArrayList< String > getFileExtenetion ()
 
IDebugScriptRunner compileDebug (File f)
 
- Public Member Functions inherited from com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage
default boolean isSupportedFileExtenetion (String filename)
 
default String getDefaultContents (String gitURL, String fileSlug)
 

Private Member Functions

Object inline (Object code, ArrayList< Object > args) throws Exception
 

Detailed Description

Definition at line 19 of file GroovyHelper.java.

Member Function Documentation

◆ compileDebug()

IDebugScriptRunner com.neuronrobotics.bowlerstudio.scripting.GroovyHelper.compileDebug ( File  f)

This interface defines a scripting langauge that supports debugging. A file can be compiled to a DebugScriptRunner object that manages runtime.

Parameters
fthe file to be debugged
Returns
the debugger instance

Implements com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguageDebugger.

Definition at line 104 of file GroovyHelper.java.

◆ getDefaultContents()

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

Get the contents of an empty file

Returns

Implements com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.

Definition at line 75 of file GroovyHelper.java.

◆ getFileExtenetion()

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

Returns the list of supported file extentions Convention is to provide just the leters that make up the file extention

Implements com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.

Definition at line 98 of file GroovyHelper.java.

◆ getIsTextFile()

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

This function returns if this is a binary file or a text file

Returns
true if the file is a text file.

Implements com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.

Definition at line 92 of file GroovyHelper.java.

◆ getShellType()

String com.neuronrobotics.bowlerstudio.scripting.GroovyHelper.getShellType ( )

Returns the HashMap key for this language

Implements com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.

Definition at line 67 of file GroovyHelper.java.

◆ inline()

Object com.neuronrobotics.bowlerstudio.scripting.GroovyHelper.inline ( Object  code,
ArrayList< Object >  args 
) throws Exception
private

Definition at line 22 of file GroovyHelper.java.

References com.neuronrobotics.bowlerstudio.scripting.ScriptingEngine.getImports().

Here is the call graph for this function:

◆ inlineScriptRun() [1/2]

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

This interface is for adding additional language support.

Parameters
codefile content of the code to be executed
argsthe incoming arguments as a list of objects
Returns
the objects returned form the code that ran

Implements com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.

Definition at line 80 of file GroovyHelper.java.

◆ inlineScriptRun() [2/2]

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

This interface is for adding additional language support.

Parameters
codethe text content of the code to be executed
argsthe incoming arguments as a list of objects
Returns
the objects returned form the code that ran

Implements com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.

Definition at line 86 of file GroovyHelper.java.


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