When using javadoc, enums are usually documented like that:
/**
* Doc for enum
*/
public enum Something {
/**
* First thing
*/
FIRST_THING,
/**
* Second thing
*/
SECOND_THING;
}
My problem is that, using JavaDoc Doclets, I can get the classDoc of that enum ( Javadoc ClassDoc ), but I am not able to get the comments of the possible values, or even the possible values itself. Has anyone an idea?
enumConstants()
seems to be what you are looking for.