100rabh
100rabh

Reputation: 6186

Override assigns & IN operator behaviour in JEXL3

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?

Upvotes: 0

Views: 141

Answers (1)

henrib
henrib

Reputation: 364

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.

Upvotes: 1

Related Questions