Package org.eclipse.scanning.api.script
Enum Class ScriptLanguage
- All Implemented Interfaces:
Serializable,Comparable<ScriptLanguage>,Constable
Language of the script supported.
*NOTE* Not all scripting languages are supported by all implementations of the service.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIf you mustUses GroovyScriptEngine to parse the input script and execute it on the server.The ever popular scripting languageJython with DAQ objects available or an exception thrown if they cannot be imported.Full cpython, usually with numpy and scipy available.Runs the famous statistical package R.To run ruby using jrubyJython with the DSL extensions to make some commands look like spec This is slower to run than pure jython scripts because it must be parsed and run line by line. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScriptLanguageReturns the enum constant of this class with the specified name.static ScriptLanguage[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PYTHON
Full cpython, usually with numpy and scipy available. -
JYTHON
Jython with DAQ objects available or an exception thrown if they cannot be imported. -
SPEC_PASTICHE
Jython with the DSL extensions to make some commands look like spec This is slower to run than pure jython scripts because it must be parsed and run line by line. It is also not possible to debug using pydev. -
JAVASCRIPT
The ever popular scripting language -
GROOVY
Uses GroovyScriptEngine to parse the input script and execute it on the server. -
RUBY
To run ruby using jruby -
R
Runs the famous statistical package R. In order for the server to do this, it will have to have R installed separately and linked to the server. -
BASH
If you must
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-