commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Wohl <>
Subject Re: [Digester] Line number parameters in CallMethods
Date Mon, 05 May 2003 19:20:58 GMT
On Sun, Apr 06, 2003 at 09:00:25PM +0100, robert burrell donkin wrote:
> as i see it, there are two parts to this problem. the first is accessing 
> the locator. i've added a getter for the document Locator to Digester but 
> you'll need to build from CVS HEAD or wait for a new nightly build.

Thanks for the change.

> the second part is creating a custom rule which sets the parameter value 
> used by CallMethodRule. i suggest that you take a look at CallParamRule. 
> the parameters used by CallMethodRule are stored on the digester object 
> stack. it should be pretty straightforward.

Looks like the "param stack" is private (protected) to Digester and
called with package-private methods (peekParams, ..) by CallMethodRule
and CallParamRule.

Is there a way to touch without modifying the Digester class?

jeremy wohl ..:

View raw message