public class ScriptCondition extends Object implements Condition
Condition which invokes a ExecutableScript when evaluated.| Modifier and Type | Field and Description |
|---|---|
protected ExecutableScript |
script |
| Constructor and Description |
|---|
ScriptCondition(ExecutableScript script) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(DelegateExecution execution)
Evaluates the condition and returns the result.
|
boolean |
evaluate(VariableScope scope,
DelegateExecution execution)
Evaluates the condition and returns the result.
|
ExecutableScript |
getScript() |
boolean |
tryEvaluate(VariableScope scope,
DelegateExecution execution)
Tries to evaluate the condition.
|
protected final ExecutableScript script
public ScriptCondition(ExecutableScript script)
public boolean evaluate(DelegateExecution execution)
Conditionpublic boolean evaluate(VariableScope scope, DelegateExecution execution)
Conditionpublic boolean tryEvaluate(VariableScope scope, DelegateExecution execution)
ConditiontryEvaluate in interface Conditionscope - the variable scope which can differ of the executionexecution - the execution which is used to evaluate the conditionpublic ExecutableScript getScript()
Copyright © 2022. All rights reserved.