J
Jason Teagle
Java 1.4.x
Is it possible to get a list of all classes a package contains, either by
name (Strings) or as an array of Class object references? I've looked
through Class, ClassLoader and Package and can't seem to see a way.
* Class.getClasses() only returns the classes defined publicly within a
class, so not what I am looking for.
* Package.getPackages() only lists what packages are available that use the
current class loader, but I already know what packages I want to list
classes from.
If I had a package representing javax.swing, I'm looking to be able to get
"JButton", "JCheckbox", "JList", etc from it.
Any ideas?
Is it possible to get a list of all classes a package contains, either by
name (Strings) or as an array of Class object references? I've looked
through Class, ClassLoader and Package and can't seem to see a way.
* Class.getClasses() only returns the classes defined publicly within a
class, so not what I am looking for.
* Package.getPackages() only lists what packages are available that use the
current class loader, but I already know what packages I want to list
classes from.
If I had a package representing javax.swing, I'm looking to be able to get
"JButton", "JCheckbox", "JList", etc from it.
Any ideas?