1

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?

raspayu
  • 5,089
  • 5
  • 37
  • 50

1 Answers1

2

enumConstants() seems to be what you are looking for.

Joachim Sauer
  • 302,674
  • 57
  • 556
  • 614