jimmc.util
Class ClassUtil

java.lang.Object
  |
  +--jimmc.util.ClassUtil

public class ClassUtil
extends java.lang.Object

Utility methods for dealing with Classes.


Constructor Summary
ClassUtil()
           
 
Method Summary
static java.lang.Object newInstance(java.lang.String className, java.lang.Class superClass)
          Create a new instance of a named class, verifying that it is a subclass of (or identical to) the given superclass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassUtil

public ClassUtil()
Method Detail

newInstance

public static java.lang.Object newInstance(java.lang.String className,
                                           java.lang.Class superClass)
Create a new instance of a named class, verifying that it is a subclass of (or identical to) the given superclass.
Parameters:
className - The name of the class of the instance to create.
superClass - The reference class.
Returns:
An instance of className that can be cast to superClass.