I want to write my own doclet. I do not want to read some existing javadoc, which is made with a standard doclet.
I am having problems with how I can ask the Javadoc API whether the formal parameter is a varargs parameter. For example, if I have the following method:
public static void main(String... args) { }
How can I determine that the formal argument arguments are varargs? I looked at com.sun.javadoc.Type . But I could not how to access information.
Bye
PS: Reflection does not help, since reflection is not available inside the Doclet, I think. In a doclet, for example, you reflect the MethodDoc class, while in reflection you have the Method class.
source share