com.hjl.junit
Class Reflector
java.lang.Object
|
+--com.hjl.junit.Reflector
- Direct Known Subclasses:
- BSHReflector
- public class Reflector
- extends java.lang.Object
Method Summary |
protected java.lang.Class |
getClass(java.lang.String name)
|
java.lang.reflect.Constructor |
getConstructor(java.lang.String prototype)
|
java.lang.reflect.Field |
getField(java.lang.String prototype)
|
java.lang.reflect.Method |
getMethod(java.lang.String prototype)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Reflector
public Reflector()
getConstructor
public java.lang.reflect.Constructor getConstructor(java.lang.String prototype)
throws java.lang.NoSuchMethodException,
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
getField
public java.lang.reflect.Field getField(java.lang.String prototype)
throws java.lang.NoSuchFieldException,
java.lang.ClassNotFoundException
java.lang.NoSuchFieldException
java.lang.ClassNotFoundException
getMethod
public java.lang.reflect.Method getMethod(java.lang.String prototype)
throws java.lang.NoSuchMethodException,
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
getClass
protected java.lang.Class getClass(java.lang.String name)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException