Lightweight expressions parser in Java 1.6

519 Views Asked by At

I am looking for a lightweight lib which is able to parse and evaluate trivial conditions on java objects in order to implement string filters on objects

Example : Interpreting a string like : myObject.intField > 0 && myObject.booleanField with myObject as param.

Some thing like Janino : http://docs.codehaus.org/plugins/servlet/mobile#content/view/17273 But more Bean oriented (no need to use getters)

Could code my own parser but prefer avoid reimplementing the wheel.

1

There are 1 best solutions below

1
On

Java (at least JavaEE 6) has an Expression Language built-in.