Class IntrospectionUtil
java.lang.Object
org.eclipse.jetty.util.IntrospectionUtil
IntrospectionUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckParams(Class<?>[] formalParams, Class<?>[] actualParams, boolean strict) static booleancontainsSameFieldName(Field field, Class<?> c, boolean checkPackage) static booleancontainsSameMethodSignature(Method method, Class<?> c, boolean checkPackage) static FieldfindField(Class<?> clazz, String targetName, Class<?> targetType, boolean checkInheritance, boolean strictType) protected static FieldfindInheritedField(Package pack, Class<?> clazz, String fieldName, Class<?> fieldType, boolean strictType) protected static MethodfindInheritedMethod(Package pack, Class<?> clazz, String methodName, Class<?>[] args, boolean strictArgs) static MethodfindMethod(Class<?> clazz, String methodName, Class<?>[] args, boolean checkInheritance, boolean strictArgs) static booleanisInheritable(Package pack, Member member) static booleanisJavaBeanCompliantSetter(Method method) static booleanisSameSignature(Method methodA, Method methodB) static booleanisTypeCompatible(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
-