JEXL

来源:互联网 发布:淘宝店铺号怎么隐藏 编辑:程序博客网 时间:2024/06/05 07:32
  • learning site 

          http://commons.apache.org/jexl/

  • Expression calculate

           JexlContext  defined the vars' context

           ExpressionFactory creates the Expression to use.

 

           check the following example to check how to calculate 2 expression belows

           "3+2"  and  "n1+n2+2"

 

           FormulaCalculator.java

          

           FormulaCalculatorTest.java