public interface Evaluator
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
BINDINGS |
static String |
INPUT |
static String |
OUTPUT |
static String |
RESULT |
| 限定符和类型 | 方法和说明 |
|---|---|
default Object |
eval(String scriptContent) |
default Object |
eval(String scriptContent,
Object input) |
default Object |
eval(String scriptContent,
Object input,
Object output) |
Object |
eval(String scriptContent,
Object input,
Object output,
Map<String,Object> mergeBindings)
执行脚本
|
Object eval(String scriptContent, Object input, Object output, Map<String,Object> mergeBindings) throws ScriptEvalException
scriptContent - 脚本内容input - 输入参数output - 输出参数mergeBindings - 其他绑定变量ScriptEvalExceptiondefault Object eval(String scriptContent, Object input, Object output) throws ScriptEvalException
default Object eval(String scriptContent, Object input) throws ScriptEvalException
default Object eval(String scriptContent) throws ScriptEvalException
Copyright © 2024 fossc. All rights reserved.