|
| | GroovyRule () |
| | Default constructor, however use manager for creation.
|
| |
| Class | parseClass (String code) |
| | Parses code into a class.
|
| |
◆ GroovyRule()
| eu.baltrad.beast.rules.groovy.GroovyRule.GroovyRule |
( |
| ) |
|
|
inlineprotected |
Default constructor, however use manager for creation.
◆ getScript()
| String eu.baltrad.beast.rules.groovy.GroovyRule.getScript |
( |
| ) |
|
|
inline |
- Returns
- the groovy script as a string
◆ getState()
| int eu.baltrad.beast.rules.groovy.GroovyRule.getState |
( |
| ) |
|
|
inline |
◆ getThrowable()
| Throwable eu.baltrad.beast.rules.groovy.GroovyRule.getThrowable |
( |
| ) |
|
|
inline |
- Returns
- the exception if any occured during compilation
◆ getType()
| String eu.baltrad.beast.rules.groovy.GroovyRule.getType |
( |
| ) |
|
|
inline |
◆ handle()
◆ isValid()
| boolean eu.baltrad.beast.rules.groovy.GroovyRule.isValid |
( |
| ) |
|
|
inline |
◆ parseClass()
| Class eu.baltrad.beast.rules.groovy.GroovyRule.parseClass |
( |
String | code | ) |
|
|
inlineprotected |
Parses code into a class.
- Parameters
-
- Returns
- a class
◆ setScript()
| void eu.baltrad.beast.rules.groovy.GroovyRule.setScript |
( |
String | script | ) |
|
|
inline |
Creates an instance of the groovy script.
Must be implementing the IScriptableRule. Will compile and validate the script.
- Parameters
-
- Exceptions
-
◆ setScriptableRule()
| void eu.baltrad.beast.rules.groovy.GroovyRule.setScriptableRule |
( |
IScriptableRule | rule | ) |
|
|
inline |
To be able to set a precompiled groovy rule.
- Parameters
-
◆ CLASS_CAST_EXCEPTION
| final int eu.baltrad.beast.rules.groovy.GroovyRule.CLASS_CAST_EXCEPTION = 4 |
|
static |
◆ COMPILATION_ERROR
| final int eu.baltrad.beast.rules.groovy.GroovyRule.COMPILATION_ERROR = 1 |
|
static |
Rule could not be compiled.
◆ ILLEGAL_ACCESS_EXCEPTION
| final int eu.baltrad.beast.rules.groovy.GroovyRule.ILLEGAL_ACCESS_EXCEPTION = 3 |
|
static |
◆ INSTANTIATION_EXCEPTION
| final int eu.baltrad.beast.rules.groovy.GroovyRule.INSTANTIATION_EXCEPTION = 2 |
|
static |
Rule coult not be instantiated.
◆ OK
| final int eu.baltrad.beast.rules.groovy.GroovyRule.OK = 0 |
|
static |
◆ THROWABLE
| final int eu.baltrad.beast.rules.groovy.GroovyRule.THROWABLE = 5 |
|
static |
Any type of throwable causing a failure.
◆ TYPE
| final String eu.baltrad.beast.rules.groovy.GroovyRule.TYPE = "groovy" |
|
static |
The type name of this rule.
◆ UNITIALIZED
| final int eu.baltrad.beast.rules.groovy.GroovyRule.UNITIALIZED = -1 |
|
static |
Rule has not got any script set.
The documentation for this class was generated from the following file:
- src/eu/baltrad/beast/rules/groovy/GroovyRule.java