I am interating through classes in a Jar file and wish to find those which are not abstract. I can solve this by instantiating the classes and trapping InstantiationException but that has a performance hit as some classes have heavy startup. I can't find anything obviously like isAbstract() in the Class.java docs.
How to declare static variables in Delphi 2009?
Python Class Members Initialization
Instantiate class from name?
This link should help..
Could you imagine any other way to have OO implemented than the classic class-based approach?
Modifier.isAbstract( someClass.getModifiers() );
Forward “Pre-declaring” a Class in C++
ruby alternative to class << thing
new version for the classes I've use in my application
Hide a base class method from derived class, but still visible outside of assembly
Class myClass = myJar.load("classname"); bool test = Modifier.isAbstract(myClass.getModifiers());