THe current And node code looks like this:

        return (leftValue
                        && 
                                Coercion.coerceBoolean(
                                                ((SimpleNode) 
jjtGetChild(1)).value(jc)).booleanValue()) ?
            Boolean.TRUE : Boolean.FALSE;

As you can see the second call is only done if the first is true. Or
works similarly.

Is this what you mean? If not, please try to explain again.

There are tests to ensure this behaviour works in CVS as well.

On Thu, 16 Sep 2004 09:11:25 +0100, Emmanuel Wurth <[EMAIL PROTECTED]> wrote:
> Hi
> 
> To explain the context, we evalute java code snippet using JEXL, and in
> order to increase the speed of the query, since we do not need to have a
> complete evaluation of the expression,
>  i would have like to be able to return from the And node, skipping the
> second call when this is possible, and have the same kind of faster
> behavior for the or.
> 
> Thanks.
> 
> Emmanuel Wurth
> Software Engineer
> Rational Software
> IBM Software Group
> 6, rue Brindejonc - Parc Grande Plaine
> 31505 TOULOUSE CEDEX
> Officel : +33 5.62.16.56.35
> Office Fax: +33 5.62.88.42.99
> 
> Dion Gillard <[EMAIL PROTECTED]>
> 09/16/2004 01:34 AM
> Please respond to
> "Jakarta Commons Users List"
> 
> To
> Jakarta Commons Users List <[EMAIL PROTECTED]>
> cc
> 
> Subject
> Re: JEXL
> 
> Sure, it's being maintained.  We've just done a long needed 1.0 release.
> 
> What did you have in mind? How specifically would you change and & or?
> 
> On Wed, 15 Sep 2004 16:41:43 +0100, Emmanuel Wurth <[EMAIL PROTECTED]>
> wrote:
> > Hi
> >
> > Does anybody knows if jexl is still maintained, i would like to know if
> > there will be some enhancments to allow the users to change the
> behaviour
> > of some specific nodes (like And, Or ).
> >
> > Thanks.
> >
> > Emmanuel Wurth
> > Software Engineer
> > Rational Software
> > IBM Software Group
> > 6, rue Brindejonc - Parc Grande Plaine
> > 31505 TOULOUSE CEDEX
> > Officel : +33 5.62.16.56.35
> > Office Fax: +33 5.62.88.42.99
> >
> >
> 
> --
> http://www.multitask.com.au/people/dion/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-- 
http://www.multitask.com.au/people/dion/

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

Reply via email to