https://github.com/jiuwo/fastel
简单高效的表达式引擎
https://github.com/jiuwo/fastel
efficiency el expression fast fastel java
Last synced: 6 months ago
JSON representation
简单高效的表达式引擎
- Host: GitHub
- URL: https://github.com/jiuwo/fastel
- Owner: jiuwo
- License: apache-2.0
- Created: 2019-01-01T11:49:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-17T02:06:13.000Z (about 4 years ago)
- Last Synced: 2025-07-11T23:44:46.656Z (about 1 year ago)
- Topics: efficiency, el, expression, fast, fastel, java
- Language: Java
- Size: 53.7 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FastEL
#### 项目介绍
* FastEL 快速的表达式解析器
#### 使用说明
* 引用JAR包
``` xml
org.jiuwo
fastel
1.0.6
```
* 具体使用
``` java
Expression expression = new ExpressionImpl("2*(3+5)");
result = expression.evaluate();
Assert.assertEquals(16L, result);
result = expression
.parseExpression("parseInt('2')")
.evaluate();
Assert.assertEquals(2, result);
result = expression
.parseExpression("Math.abs(-123)")
.evaluate();
Assert.assertEquals(123.0, result);
```
* 更多用法参考项目中单元测试