Hi,

I'm successfully using JEXL to evaluate formulae that my users write. It
works well, but the default behaviour is to ignore any variable that is
not defined. I would like it to a) throw an exception and b) provide
structured feedback on what variables were unknown.

For instance, if I define "a = 3" and then evaluate the expression "a +
b" I get the answer "3". What I want is an exception with a method like:

String[] getUnresolvedVariables();

That would give me ["b"] back.

I'm quite happy to code the changes myself, but I just wanted to check
whether:

a) this functionality already exists (I've looked but I can't find it)

b) there's a better way of doing this

c) anyone can provide any hints about where to start (I'm confident
enough to launch into this unaided, but wise enough to know that I will
do it better with a little guidance).

Cheers,
Bill Horsman


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to