javado Doclet enum - How to get possible values from an enum to use in my own doclet?

446 Views Asked by At

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?

1

There are 1 best solutions below

1
On BEST ANSWER

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