org.mortbay.util
Class IntrospectionUtil
java.lang.Object
org.mortbay.util.IntrospectionUtil
public class IntrospectionUtil
- extends Object
IntrospectionUtil
Method Summary |
static boolean |
checkInheritable(Package pack,
Member member)
|
static boolean |
checkParams(Class[] formalParams,
Class[] actualParams,
boolean strict)
|
static boolean |
checkType(Class formalType,
Class actualType,
boolean strict)
|
static Field |
findField(Class clazz,
String targetName,
Class targetType,
boolean checkInheritance,
boolean strictType)
|
protected static Field |
findInheritedField(Package pack,
Class clazz,
String fieldName,
Class fieldType,
boolean strictType)
|
protected static Method |
findInheritedMethod(Package pack,
Class clazz,
String methodName,
Class[] args,
boolean strictArgs)
|
static Method |
findMethod(Class clazz,
String methodName,
Class[] args,
boolean checkInheritance,
boolean strictArgs)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntrospectionUtil
public IntrospectionUtil()
findMethod
public static Method findMethod(Class clazz,
String methodName,
Class[] args,
boolean checkInheritance,
boolean strictArgs)
throws NoSuchMethodException
- Throws:
NoSuchMethodException
findField
public static Field findField(Class clazz,
String targetName,
Class targetType,
boolean checkInheritance,
boolean strictType)
throws NoSuchFieldException
- Throws:
NoSuchFieldException
checkInheritable
public static boolean checkInheritable(Package pack,
Member member)
checkParams
public static boolean checkParams(Class[] formalParams,
Class[] actualParams,
boolean strict)
checkType
public static boolean checkType(Class formalType,
Class actualType,
boolean strict)
findInheritedMethod
protected static Method findInheritedMethod(Package pack,
Class clazz,
String methodName,
Class[] args,
boolean strictArgs)
throws NoSuchMethodException
- Throws:
NoSuchMethodException
findInheritedField
protected static Field findInheritedField(Package pack,
Class clazz,
String fieldName,
Class fieldType,
boolean strictType)
throws NoSuchFieldException
- Throws:
NoSuchFieldException