Package org.eclipse.jetty.util
Class IntrospectionUtil
- java.lang.Object
-
- org.eclipse.jetty.util.IntrospectionUtil
-
public class IntrospectionUtil extends Object
IntrospectionUtil
-
-
Constructor Summary
Constructors Constructor Description IntrospectionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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)
-
-
-
Method Detail
-
isJavaBeanCompliantSetter
public static boolean isJavaBeanCompliantSetter(Method method)
-
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
-
checkParams
public static boolean checkParams(Class<?>[] formalParams, Class<?>[] actualParams, boolean strict)
-
isTypeCompatible
public static boolean isTypeCompatible(Class<?> formalType, Class<?> actualType, boolean strict)
-
containsSameMethodSignature
public static boolean containsSameMethodSignature(Method method, Class<?> c, boolean checkPackage)
-
containsSameFieldName
public static boolean containsSameFieldName(Field field, Class<?> c, boolean checkPackage)
-
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
-
-