> I notice MethodTagsHandler has got two virtually identical functions,
> protected static boolean hasMethod( ClassDoc clazz, String methodName,
> String[] parameters )
> and
> protected boolean hasMethod( ClassDoc clazz, String methodName,
String[]
> parameters, boolean setCurrentMethod )
> Asides from the debug logging (anybody admit to being
> responsible for "ssssssssssssssssss params.elngth=" + params.length ?
> :-)), the only difference is the bit that does
> if( setCurrentMethod ) setCurrentMethod( methods[i] );

sssssssssssssssss it's me!

> Is there any particular reason one of them is static and the other
isn't?
> (If not, we ought to replace the first method with a call to the
second
> passing false for the extra argument).

For sure.

> Secondly, am I right in thinking that for
> <XDtMethod:ifHasMethod name="foobar">
> (match any method of that name) the argument 'String[] parameters'
will be
> null, while for
> <XDtMethod:ifHasMethod name="foobar" parameters="">
> (only match the zero-argument version of the method) it will be a zero
> length array?

Maybe. Don't have the code on hand but it works AFAIK.

Ara.



_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to