Override assigns & IN operator behaviour in JEXL3

104 Views Asked by At

I am trying to

  1. Override assign operator(=) in JEXL3 with equals functionality to make it support SQL like statements to support below statement:

WHERE A=B

  1. And SQL like IN operator support in JEXL3 so that it should support below statements:

WHERE column_name IN (value1, value2, ...)

What classes I need to override to make it work. Any help will be appreciated?

1

There are 1 best solutions below

4
henrib On

Modifying the JEXL syntax and interpreter to turn into a SQL one seems overly complicated; you would have to start with the grammar in parser.jjt but I'd advise against such an endeavour.