public class InspectionUtils
extends java.lang.Object
Constructor and Description |
---|
InspectionUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areTypesCompatible(java.lang.Class<?>[] targets,
java.lang.Class<?>[] sources)
Returns true if all classes in the sources list are assignment compatible
with the targets list.
|
static java.lang.reflect.Method |
searchForMethod(java.lang.Class<?> type,
java.lang.String methodName,
java.lang.Class<?>[] parms) |
static java.lang.Class<?> |
translateFromPrimitive(java.lang.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 java.lang.reflect.Method searchForMethod(java.lang.Class<?> type, java.lang.String methodName, java.lang.Class<?>[] parms)
type:
- class to be inspectedmethodName:
- name of methodparms:
- array of paramspublic static boolean areTypesCompatible(java.lang.Class<?>[] targets, java.lang.Class<?>[] sources)
public static java.lang.Class<?> translateFromPrimitive(java.lang.Class<?> primitive)