public class InspectionUtils extends Object
Constructor and Description |
---|
InspectionUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areTypesCompatible(Class<?>[] targets,
Class<?>[] sources)
Returns true if all classes in the sources list are assignment compatible
with the targets list.
|
static Method |
searchForMethod(Class<?> type,
String methodName,
Class<?>[] parms) |
static Class<?> |
translateFromPrimitive(Class<?> primitive)
If this specified class represents a primitive type (int, float, etc.) then
it is translated into its wrapper type (Integer, Float, etc.).
|
public static Method searchForMethod(Class<?> type, String methodName, Class<?>[] parms)
type:
- class to be inspectedmethodName:
- name of methodparms:
- array of paramspublic static boolean areTypesCompatible(Class<?>[] targets, Class<?>[] sources)