You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Emmanuel Wurth <WU...@fr.ibm.com> on 2004/09/15 17:41:43 UTC
JEXL
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
Re: JEXL AND or OR node.
Posted by Dion Gillard <di...@gmail.com>.
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 <wu...@fr.ibm.com> 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 <di...@gmail.com>
> 09/16/2004 01:34 AM
> Please respond to
> "Jakarta Commons Users List"
>
> To
> Jakarta Commons Users List <co...@jakarta.apache.org>
> 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 <wu...@fr.ibm.com>
> 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: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
--
http://www.multitask.com.au/people/dion/
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: JEXL AND or OR node.
Posted by Emmanuel Wurth <WU...@fr.ibm.com>.
Great,
We were using an old revision of JEXL in which this was not implemented
this way.
Thank you for your help.
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
Geoff Waggott <ge...@webartjapan.com>
09/17/2004 01:30 AM
Please respond to
"Jakarta Commons Users List"
To
Jakarta Commons Users List <co...@jakarta.apache.org>
cc
Subject
Re: JEXL AND or OR node.
Hi,
If you mean short-curcuit evaluation of these operators a la Java, JEXL
already does this as the underlying code for the AND and OR node is just
using the Java && and || operators anyway.
Regards,
Geoff
Emmanuel Wurth 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 <di...@gmail.com>
>09/16/2004 01:34 AM
>Please respond to
>"Jakarta Commons Users List"
>
>
>To
>Jakarta Commons Users List <co...@jakarta.apache.org>
>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 <wu...@fr.ibm.com>
>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
>>
>>
>>
>>
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: JEXL AND or OR node.
Posted by Geoff Waggott <ge...@webartjapan.com>.
Hi,
If you mean short-curcuit evaluation of these operators a la Java, JEXL
already does this as the underlying code for the AND and OR node is just
using the Java && and || operators anyway.
Regards,
Geoff
Emmanuel Wurth 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 <di...@gmail.com>
>09/16/2004 01:34 AM
>Please respond to
>"Jakarta Commons Users List"
>
>
>To
>Jakarta Commons Users List <co...@jakarta.apache.org>
>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 <wu...@fr.ibm.com>
>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
>>
>>
>>
>>
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: JEXL AND or OR node.
Posted by Emmanuel Wurth <WU...@fr.ibm.com>.
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 <di...@gmail.com>
09/16/2004 01:34 AM
Please respond to
"Jakarta Commons Users List"
To
Jakarta Commons Users List <co...@jakarta.apache.org>
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 <wu...@fr.ibm.com>
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: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: JEXL
Posted by Dion Gillard <di...@gmail.com>.
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 <wu...@fr.ibm.com> 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: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
RE: JEXL
Posted by David Wynter <da...@roamware.co.uk>.
Hi Emmanuel,
As a user of Jelly I can say that Jexl is still used in Jelly and Jelly is
still moving forward. Since it is based on the JSTL standard with a few
useful extensions I cannot see it changing much, but hey it is opensource so
feel free to change it to suit your needs.
David
-----Original Message-----
From: Emmanuel Wurth [mailto:WURTHEMM@fr.ibm.com]
Sent: 15 September 2004 16:42
To: commons-user@jakarta.apache.org
Subject: JEXL
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
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org