<div dir="ltr">I've learned how to discover lots of things using reflection, but not the following. Are there methods that return these?<div><br></div><div>- all installed packages</div><div>- all class categories</div><div>- all classes in a given class category<br></div><div>- all message categories used by a given class</div><div>- the source code for a given method as a string or tree of AST nodes</div><div><br></div><div>There seems to be some inconsistencies in the kind of object returned by the reflection methods. I've encountered at least these so far: Array, Set, IdentitySet, and OrderCollection. I understand the distinction between these collection types, but it's not clear why the reflection methods don't all return the same kind of collection.</div><div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><font face="arial, helvetica, sans-serif">R. Mark Volkmann</font></div><div><span style="font-size:12.8000001907349px"><font face="arial, helvetica, sans-serif">Object Computing, Inc.</font></span></div></div></div></div></div></div></div></div></div></div>