How can I find out what enums are defined by a class?
<p>I know I can get the public static members of a class by doing something like:</p>

<p><code>obj.getClass().getFields()</code></p>

<p>but this doesn't get me the enums.  I'd like to be able to get them from the Class object returned by the getClass method.  Any ideas?</p>
