Java library for parsing & building logical expressions
<p>I am looking for an open source library in Java for parsing and building sql like expressions. </p>

<p>for example to evaluate validity of expressions like:</p>

<pre><code> "(a = x or y ) and (b != z)"
</code></pre>

<p>in addition I want to have an API for building or extending expressions.
something like: </p>

<pre><code>Expression exp = new Expression();
exp.addCondition("a",{"x","y"},Operator.OR);
</code></pre>

<p>It's not very complicated to implement such library, but aren't we develop in Java to enjoy collaborative development? </p>

<p>Thanks</p>
