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)
Condition
public boolean evaluate(VariableScope scope, DelegateExecution execution)
Condition
public boolean tryEvaluate(VariableScope scope, DelegateExecution execution)
Condition
tryEvaluate
in interface Condition
scope
- 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.