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(){
return Integer.toString(getCurrentMethod().getParameters().size()); } }
Then in your .xdt file use
<XDtMyParameter:parameterCount/> to get the number of
parameters.
-Brian
|
- [Xdoclet-user] How can I get the size of method parameters ? Tsurui Masao
- Brian Buckley