public class IntrospectionUtil extends Object
Constructor and Description |
---|
IntrospectionUtil() |
Modifier and Type | Method and Description |
---|---|
static 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) |
public static boolean isJavaBeanCompliantSetter(Method method)
public static Method findMethod(Class<?> clazz, String methodName, Class<?>[] args, boolean checkInheritance, boolean strictArgs) throws NoSuchMethodException
NoSuchMethodException
public static Field findField(Class<?> clazz, String targetName, Class<?> targetType, boolean checkInheritance, boolean strictType) throws NoSuchFieldException
NoSuchFieldException
public static boolean checkParams(Class<?>[] formalParams, Class<?>[] actualParams, boolean strict)
public static boolean isTypeCompatible(Class<?> formalType, Class<?> actualType, boolean strict)
public static boolean containsSameMethodSignature(Method method, Class<?> c, boolean checkPackage)
public static boolean containsSameFieldName(Field field, Class<?> c, boolean checkPackage)
protected static Method findInheritedMethod(Package pack, Class<?> clazz, String methodName, Class<?>[] args, boolean strictArgs) throws NoSuchMethodException
NoSuchMethodException
protected static Field findInheritedField(Package pack, Class<?> clazz, String fieldName, Class<?> fieldType, boolean strictType) throws NoSuchFieldException
NoSuchFieldException
Copyright © 1995-2015 Webtide. All Rights Reserved.