|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.condition.bool.AbstractBooleanCondition
adams.flow.condition.bool.AbstractScriptCondition
adams.flow.condition.bool.Groovy
public class Groovy
A boolean condition that uses the condition defined in a Groovy script.
Valid options are:-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-script <adams.core.io.PlaceholderFile> (property: scriptFile)
The script file to load and execute.
default: ${CWD}
-options <java.lang.String> (property: scriptOptions) The options for the script. default:
-inline-script <adams.core.scripting.GroovyScript> (property: inlineScript) The inline script, if not using an external script file. default:
Groovy,
Serialized Form| Field Summary | |
|---|---|
protected BooleanCondition |
m_ConditionObject
the loaded script object. |
protected GroovyScript |
m_InlineScript
the inline script. |
| Fields inherited from class adams.flow.condition.bool.AbstractScriptCondition |
|---|
m_ScriptFile, m_ScriptObject, m_ScriptOptions |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
Groovy()
|
|
| Method Summary | |
|---|---|
protected String |
checkScriptObject()
Checks the script object. |
void |
defineOptions()
Adds options to the internal list of options. |
protected boolean |
doScriptEvaluate(AbstractActor owner,
Token token)
Runs the script evaluation. |
protected GroovyScript |
getDefaultInlineScript()
Returns the default inline script. |
GroovyScript |
getInlineScript()
Gets the inline script to use instead of the external script file. |
String |
getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI. |
String |
globalInfo()
Returns a string describing the object. |
String |
inlineScriptTipText()
Returns the tip text for this property. |
protected String |
loadScriptObject()
Loads the scripts object and sets its options. |
void |
setInlineScript(GroovyScript value)
Sets the inline script to use instead of the external script file. |
| Methods inherited from class adams.flow.condition.bool.AbstractScriptCondition |
|---|
accepts, doEvaluate, getScriptFile, getScriptOptions, initScriptObject, reset, scriptFileTipText, scriptOptionsTipText, setScriptFile, setScriptOptions, setUp |
| Methods inherited from class adams.flow.condition.bool.AbstractBooleanCondition |
|---|
evaluate, preEvaluate, shallowCopy, shallowCopy |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected transient BooleanCondition m_ConditionObject
protected GroovyScript m_InlineScript
| Constructor Detail |
|---|
public Groovy()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractScriptConditionpublic String getQuickInfo()
getQuickInfo in interface BooleanConditiongetQuickInfo in class AbstractScriptConditionprotected GroovyScript getDefaultInlineScript()
public void setInlineScript(GroovyScript value)
value - the inline scriptpublic GroovyScript getInlineScript()
public String inlineScriptTipText()
protected String loadScriptObject()
loadScriptObject in class AbstractScriptConditionprotected String checkScriptObject()
checkScriptObject in class AbstractScriptCondition
protected boolean doScriptEvaluate(AbstractActor owner,
Token token)
doScriptEvaluate in class AbstractScriptCondition
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||