how to set {} to map instead of set in Apache JEXL syntax

167 Views Asked by At

I know that {} means set and {:} means map in JEXL. And [] mean array[] and [...] means ArrayList in JEXL. But I want to change {} from set to map and [] from array to arraylist. How to do this? Thanks

1

There are 1 best solutions below

0
henrib On

It should be possible to derive JexlArithmetic and overload the arrayBuilder()/setBuilder()/mapBuilder() so the respective (derived) builders create the instances as you see fit.