私は文字列を持っています
((effectiveDate >= "11/01/2015") and (effectiveDate < "04/30/2016")) and (not ((name like "*John*")) and (name like "*Smith*") and (age > "20"))
式に変換した後、括弧の順序が維持されていません
Expression exp = Expression.fromString(origExpStr);
System.out.println(exp);
これにより、
(effectiveDate >= "11/01/2015") and (effectiveDate < "04/30/2016") and not ((name like "*John*")) and (name like "*Smith*") and (age > "20")
論理的には同じ意味かもしれませんが、適切なグループ化を維持するために括弧の順序を維持したいと思います。
式に変換した後、括弧の順序を維持する方法はありますか