Interface ScriptEvaluator
- All Known Implementing Classes:
AbstractCachingScriptEvaluator,AbstractScriptEvaluator,GroovyScriptEvaluator,Jsr223ScriptEvaluator,VelocityScriptEvaluator
public interface ScriptEvaluator
- Author:
- Radovan Semancik
-
Method Summary
Modifier and TypeMethodDescription<V extends PrismValue>
@NotNull List<V>evaluate(@NotNull ScriptExpressionEvaluationContext context) Evaluates given script in given context.Returns human readable name of the language that this evaluator supports@NotNull StringReturns (canonical) URL of the language that this evaluator can handledefault booleanCan indicate that script evaluator is not initialized, e.g. optional script evaluators (Python) or depending on the JDK platform (JavaScript/ECMAScript).
-
Method Details
-
evaluate
@NotNull <V extends PrismValue> @NotNull List<V> evaluate(@NotNull @NotNull ScriptExpressionEvaluationContext context) throws ExpressionEvaluationException, ObjectNotFoundException, ExpressionSyntaxException, CommunicationException, ConfigurationException, SecurityViolationException Evaluates given script in given context. Everything is wrapped intoScriptExpressionEvaluationContextobject. -
getLanguageName
String getLanguageName()Returns human readable name of the language that this evaluator supports -
getLanguageUrl
Returns (canonical) URL of the language that this evaluator can handle -
isInitialized
default boolean isInitialized()Can indicate that script evaluator is not initialized, e.g. optional script evaluators (Python) or depending on the JDK platform (JavaScript/ECMAScript).
-