Re: JEXL expression with array

2008-06-03 Thread Pierre Brico
Hello Dion, I have nested HashMap containing the following values: a.b.c = 1 a.b.d = 2 a.b.d = 3 a.c = 4 To understand better, here is the java code to construct such a structure: ArrayList A = new ArrayList(); HashMap X = new HashMap(); HashMap Y = new HashMap(); HashMap result = new HashM

Re: JEXL expression with array

2008-06-02 Thread Dion Gillard
I'm not sure I understand what you're asking here. So you have the following statements in JEXL: a.b.c = 1 a.b.d = 2 a.b.d = 3 a.c = 4 Is that right? And you want to know if you can make: "a.b.d" return 2 and "a.b.c[0]" return 1? On Tue, Jun 3, 2008 at 5:06 AM, Pierre Brico <[EMAIL PRO

JEXL expression with array

2008-06-02 Thread Pierre Brico
Hi all, I'm new with JEXL and I have a question with the usage of array. I'm building a complex HashMap structure (which can contain other HashMap) to evaluate several expressions. When building the HashMap, if a node contains more than one variable with the same name, I transform it into a ArrayL

JEXL expression with array

2008-05-31 Thread Pierre Brico
Hi all, I'm new with JEXL and I have a question with the usage of array. I'm building a complex HashMap structure (which can contain other HashMap) to evaluate several expressions. When building the HashMap, if a node contains more than one variable with the same name, I transform it into a ArrayL