Package org.eclipse.jetty.util
Class IntrospectionUtil
java.lang.Object
org.eclipse.jetty.util.IntrospectionUtil
IntrospectionUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkParams
(Class<?>[] formalParams, Class<?>[] actualParams, boolean strict) static boolean
containsSameFieldName
(Field field, Class<?> c, boolean checkPackage) static boolean
containsSameMethodSignature
(Method method, Class<?> c, boolean checkPackage) 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) static boolean
isInheritable
(Package pack, Member member) static boolean
isJavaBeanCompliantSetter
(Method method) static boolean
isSameSignature
(Method methodA, Method methodB) static boolean
isTypeCompatible
(Class<?> formalType, Class<?> actualType, boolean strict)
-
Constructor Details
-
IntrospectionUtil
public IntrospectionUtil()
-
-
Method Details
-
isJavaBeanCompliantSetter
-
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
-
isInheritable
-
checkParams
-
isSameSignature
-
isTypeCompatible
-
containsSameMethodSignature
-
containsSameFieldName
-
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
-