Commons JEXL表达式语言引擎
Java Expression Language (JEXL) 是一个表达式语言引擎,可以用来在应用或者框架中使用。JEXL 受Velocity 和 JSP 标签库 1.1 (JSTL) 的影响而产生的。需要注意的是, JEXL 并不时 JSTL 中的表达式语言的实现。
Java Expression Language (JEXL) is an expression language engine which can be embedded in applications and frameworks. JEXL is inspired by Jakarta Velocity and the Expression Language defined in the JavaServer Pages Standard Tag Library version 1.1 (JSTL) and JavaServer Pages version 2.0 (JSP). While inspired by JSTL EL, it must be noted that JEXL is not a compatible implementation of EL as defined in JSTL 1.1 (JSR-052) or JSP 2.0 (JSR-152). For a compatible implementation of these specifications, see the Commons EL project.
示例代码:
// Create an expression object
String jexlExp = "foo.innerFoo.bar()";
Expression e = ExpressionFactory.createExpression( jexlExp );
// Create a context and add data
JexlContext jc = JexlHelper.createContext();
jc.getVars().put("foo", new Foo() );
// Now evaluate the expression, getting the result
Object o = e.evaluate(jc);
评论
Commons EL表达式语言解析器
CommonsEL是Apache组织中一个用来解析JSP2.0的表达式语言的Java类库。JavaDoc:http://tool.oschina.net/apidocs/apidoc?api=comm
Commons EL表达式语言解析器
0
AviatorJava 表达式引擎
AviatorScript 是一门高性能、轻量级寄宿于JVM之上的脚本语言。特性介绍支持数字、字符串、正则表达式、布尔值、正则表达式等基本类型,完整支持所有Java运算符及优先级等。函数是一等公民,支
AviatorJava 表达式引擎
0
EselJavaScript表达式语言
Esel是一个JavaScript/ECMAScript表达式语言,是一个很小的语言可以用来嵌入到一个大型的JavaScript应用之中用来执行各种表达式,或者仅仅是作为模板来输出各种文本。基于JSO
EselJavaScript表达式语言
0