|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
---|---|
def |
ARRAY_WITH_NULL
|
def |
EMPTY_ARRAY
|
def |
EMPTY_TYPE_ARRAY
|
Logger |
LOG
|
int |
MAX_ARG_LEN
|
def |
PRIMITIVES
|
def |
PRIMITIVE_DISTANCE_TABLE
|
int |
VARGS_SHIFT
|
Constructor Summary | |
MetaClassHelper()
|
Method Summary | |
---|---|
static boolean |
accessibleToConstructor(Class at, Constructor constructor)
|
static Object |
asPrimitiveArray(List list, Class parameterType)
|
static def |
asWrapperArray(Object parameters, Class componentType)
|
static long |
calculateParameterDistance(Class argument, CachedClass parameter)
|
static long |
calculateParameterDistance(def arguments, ParameterTypes pt)
|
static int |
calculateSimplifiedClassDistanceToObject(Class clazz)
|
static String |
capitalize(String property)
|
static Boolean |
checkCompatiblePackages(Class at, Constructor constructor)
|
static Object |
chooseEmptyMethodParams(FastArray methods)
object (e.g. |
static Object |
chooseMostGeneralMethodWith1NullParam(FastArray methods)
object (e.g. |
static boolean |
containsMatchingMethod(List list, MetaMethod method)
list |
static def |
convertToTypeArray(def args)
param instance array to the type array |
static GroovyRuntimeException |
createExceptionText(String init, Constructor constructor, def argumentArray, Throwable e, boolean setReason)
|
static GroovyRuntimeException |
createExceptionText(String init, MetaMethod method, Object object, def args, Throwable reason, boolean setReason)
|
static Object |
doConstructorInvoke(CachedConstructor constructor, def argumentArray)
|
static Object |
doMethodInvoke(Object object, MetaMethod method, def argumentArray)
|
static String |
getClassName(Object object)
|
static int |
getMaximumInterfaceDistance(Class c, Class interfaceClass)
|
static Closure |
getMethodPointer(Object object, String methodName)
Returns a callable object for the given method name on the object. |
static ParameterTypes |
getParameterTypes(Object methodOrConstructor)
|
static int |
getPrimitiveDistance(Class from, Class to)
|
static int |
getPrimitiveIndex(Class c)
|
static boolean |
isAssignableFrom(Class classToTransformTo, Class classToTransformFrom)
|
static boolean |
isGenericSetMethod(MetaMethod method)
|
static boolean |
isSuperclass(Class claszz, Class superclass)
|
static boolean |
isValidMethod(Object method, def arguments)
|
static void |
logMethodCall(Object object, String methodName, def arguments)
|
static Object |
makeArray(Object obj, Class secondary, int length)
|
static Object |
makeCommonArray(def arguments, int offset, Class fallback)
|
static String |
normalizedValue(Object argument)
|
static boolean |
parametersAreCompatible(def arguments, def parameters)
|
static String |
shortName(Object object)
|
static def |
wrap(def classes)
|
Constructor Detail |
---|
MetaClassHelper()
Method Detail |
---|
public static boolean accessibleToConstructor(Class at, Constructor constructor)
public static Object asPrimitiveArray(List list, Class parameterType)
public static def asWrapperArray(Object parameters, Class componentType)
static long calculateParameterDistance(Class argument, CachedClass parameter)
public static long calculateParameterDistance(def arguments, ParameterTypes pt)
static int calculateSimplifiedClassDistanceToObject(Class clazz)
public static String capitalize(String property)
static Boolean checkCompatiblePackages(Class at, Constructor constructor)
public static Object chooseEmptyMethodParams(FastArray methods)
public static Object chooseMostGeneralMethodWith1NullParam(FastArray methods)
public static boolean containsMatchingMethod(List list, MetaMethod method)
public static def convertToTypeArray(def args)
static GroovyRuntimeException createExceptionText(String init, Constructor constructor, def argumentArray, Throwable e, boolean setReason)
public static GroovyRuntimeException createExceptionText(String init, MetaMethod method, Object object, def args, Throwable reason, boolean setReason)
public static Object doConstructorInvoke(CachedConstructor constructor, def argumentArray)
public static Object doMethodInvoke(Object object, MetaMethod method, def argumentArray)
static String getClassName(Object object)
static int getMaximumInterfaceDistance(Class c, Class interfaceClass)
public static Closure getMethodPointer(Object object, String methodName)
public static ParameterTypes getParameterTypes(Object methodOrConstructor)
static int getPrimitiveDistance(Class from, Class to)
static int getPrimitiveIndex(Class c)
public static boolean isAssignableFrom(Class classToTransformTo, Class classToTransformFrom)
public static boolean isGenericSetMethod(MetaMethod method)
static boolean isSuperclass(Class claszz, Class superclass)
public static boolean isValidMethod(Object method, def arguments)
public static void logMethodCall(Object object, String methodName, def arguments)
public static Object makeArray(Object obj, Class secondary, int length)
public static Object makeCommonArray(def arguments, int offset, Class fallback)
static String normalizedValue(Object argument)
public static boolean parametersAreCompatible(def arguments, def parameters)
static String shortName(Object object)
public static def wrap(def classes)