commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tahir Akhtar" <ta...@spectrum-tech.com>
Subject RE: [jxpath] Java code from JXpath expression
Date Tue, 07 Mar 2006 15:43:49 GMT
Hi Luis,

I think what you need is a compiled JXPath expression (instance of
org.apache.commons.jxpath.CompiledExpression). 

* To acquire a CompiledExpression, call JXPathContext.compile()

I have never used it anyway :). If it works please let me know, I might need
something similar very soon.

Regards
Tahir
-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Luis Neves
Sent: Tuesday, March 07, 2006 8:27 PM
To: commons-user@jakarta.apache.org
Subject: Re: [jxpath] Java code from JXpath expression


Hi,

Tahir Akhtar wrote:
> Well, I am no expert but I think this cannot be done without huge hacks.
Why
> you want to do this? Do you want to use it as a code generation tool?

Yes... sort of.
I'm having some performance issues related to the use of reflection, I was
thinking to "extract" the Java code from the JXPath 
expression and then use Janino to compile it, this way I would use
reflection only once (to generate the code).

Regards,
Luis Neves


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.0/275 - Release Date: 3/6/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.0/275 - Release Date: 3/6/2006
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message