Hi;
Using version 3.0 trunk and a small syntactic accommodation, it seems you
can code the expected behavior.
The syntax needs to use the '&' and '|' operators rather than '&&' and '||';
the latter are reserved for logical constructs and can not be overridden.
So, define a derived JexlArithmetic to encode or override the
bitwiseAnd/bitwiseOr;  in the example, we consume String parameters.
And define a JexlContext implementation with your methods (aka functionA,
...) in it; the JelxContext is used as the 'unnamed' namespace for
functions.
Overall, the following runs against the 3.0 trunk.
If you are using version 2.0, I dont see a solution.


Hope this fits the bill.
Cheers



--
View this message in context: 
http://apache-commons.680414.n4.nabble.com/jexl-Apache-JEXL-conditional-execution-path-tp4676367p4676411.html
Sent from the Commons - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to