public class ElKit extends Object
1:不带参示例
Integer value = ElKit.eval("1 + 2 * 3");
2:带参示例
Kv data = Kv.by("a", 2).set("b", 3);
Integer value = ElKit.eval("1 + a * b", data);
| Modifier and Type | Class and Description |
|---|---|
static class |
ElKit.InnerEvalDirective |
| Constructor and Description |
|---|
ElKit() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
eval(String expr) |
static <T> T |
eval(String expr,
Map<?,?> data) |
static Engine |
getEngine() |
Copyright © 2018. All rights reserved.