I was waiting for an answer to your question but nobody is answering.  I'm an XDoclet newbie and I don't know if the reason for nobody anwsering is because your question is too hard or too easy.  Anyways, here's my try: 
 
Write your own TagHandler and add a public method that returns a String such as follows:
 
/**
 * @xdoclet.taghandler namespace="MyParameter"
 */
public class MyParameterTagsHandler extends ParameterTagsHandler{
  public String parameterCount(){
        r
eturn Integer.toString(getCurrentMethod().getParameters().size());
    }
 
}
 
Then in your .xdt file use <XDtMyParameter:parameterCount/> to get the number of parameters.
 
-Brian

----- Original Message -----
Sent: Tuesday, September 02, 2003 7:55 AM
Subject: [Xdoclet-user] How can I get the size of method parameters ?

Hi all,

 

Could you help me solving the following problem:

 

How can I get the size of method parameters ?

 

XDoclet’s tag iterates all method parameters, but

he can’t give the size.

 

Do you have any good ideas ?

Reply via email to