| Modifier and Type | Field and Description |
|---|---|
| public static final Object[] | |
| public static final Object[] | |
| public static final Class | |
| public static final Class | |
| private static final int | |
| protected static final Logger | |
| private static final int | |
| private static final int | |
| private static final int[][] | |
| private static final int | |
| private static final Class | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static Object | Returns: the constructed arraythe original list list, Class<T> the resulting array type parameterType)
|
| public static Object[] | |
| private static long | |
| public static long | |
| public static String | |
| public static Class | |
| private static Boolean | |
| public static Object | Returns: the method with 1 parameter which takes the most general type of object (e.g. Object)the methods to choose from methods)
|
| public static Object | Returns: the method with 1 parameter which takes the most general type of object (e.g. Object) ignoring primitive typesthe methods to choose from methods)
Deprecated
Warning this method does not choose properly if multiple methods with the same distance are encountered |
| public static boolean | Returns: true if a method of the same matching prototype was found in the lista list of MetaMethods list, MetaMethod the MetaMethod of interest method)
|
| public static String | Returns: the converted namethe original name prop)Converts a String into a standard property name. |
| public static Class | Returns: the types of the argumentsthe arguments args)param instance array to the type array |
| public static GroovyRuntimeException | createExceptionText(String init, MetaMethod method, Object object, Object[] args, Throwable reason, boolean setReason)
|
| public static void | doSetMetaClass(Object
the object for which to set the meta class self, MetaClass the metaclass mc)Sets the meta class for an object, by delegating to the appropriate
|
| protected static String | |
| private static Class | |
| private static int | |
| public static Closure | Returns: the resulting closure-like method pointerthe object containing the method object, String the method of interest methodName)Returns a callable object for the given method name on the object. |
| private static int | |
| private static int | |
| public static boolean | |
| public static boolean | |
| private static boolean | |
| protected static boolean | |
| public static void | |
| public static Object | |
| public static Object | |
| protected static String | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| protected static String | |
| public static void | |
| public static Class |
| ARRAY_WITH_NULL | back to summary |
|---|---|
| public static final Object[] ARRAY_WITH_NULL | |
| EMPTY_ARRAY | back to summary |
|---|---|
| public static final Object[] EMPTY_ARRAY | |
| EMPTY_CLASS_ARRAY | back to summary |
|---|---|
| public static final Class<T>[] EMPTY_CLASS_ARRAY | |
| EMPTY_TYPE_ARRAY | back to summary |
|---|---|
| public static final Class<T>[] EMPTY_TYPE_ARRAY | |
| INTERFACE_SHIFT | back to summary |
|---|---|
| private static final int INTERFACE_SHIFT | |
| LOG | back to summary |
|---|---|
| protected static final Logger LOG | |
| MAX_ARG_LEN | back to summary |
|---|---|
| private static final int MAX_ARG_LEN | |
| OBJECT_SHIFT | back to summary |
|---|---|
| private static final int OBJECT_SHIFT | |
| PRIMITIVE_DISTANCE_TABLE | back to summary |
|---|---|
| private static final int[][] PRIMITIVE_DISTANCE_TABLE | |
| PRIMITIVE_SHIFT | back to summary |
|---|---|
| private static final int PRIMITIVE_SHIFT | |
| PRIMITIVES | back to summary |
|---|---|
| private static final Class<T>[] PRIMITIVES | |
| VARGS_SHIFT | back to summary |
|---|---|
| private static final int VARGS_SHIFT | |
| MetaClassHelper | back to summary |
|---|---|
| public MetaClassHelper() | |
| accessibleToConstructor | back to summary |
|---|---|
| public static boolean accessibleToConstructor(final Class<T> at, final Constructor<T> constructor) | |
| asPrimitiveArray | back to summary |
|---|---|
| public static Object asPrimitiveArray(List<E> list, Class<T> parameterType) | |
| asWrapperArray | back to summary |
|---|---|
| public static Object[] asWrapperArray(Object parameters, Class<T> componentType) | |
| calculateParameterDistance | back to summary |
|---|---|
| private static long calculateParameterDistance(Class<T> argument, CachedClass parameter) | |
| calculateParameterDistance | back to summary |
|---|---|
| public static long calculateParameterDistance(Class<T>[] arguments, ParameterTypes pt) | |
| capitalize | back to summary |
|---|---|
| public static String capitalize(final String property)
Deprecated Use BeanUtils.capitalize instead
| |
| castArgumentsToClassArray | back to summary |
|---|---|
| public static Class | |
| checkCompatiblePackages | back to summary |
|---|---|
| private static Boolean checkCompatiblePackages(Class<T> at, Constructor<T> constructor) | |
| chooseEmptyMethodParams | back to summary |
|---|---|
| public static Object chooseEmptyMethodParams(FastArray methods) | |
| chooseMostGeneralMethodWith1NullParam | back to summary |
|---|---|
| public static Object chooseMostGeneralMethodWith1NullParam(FastArray methods)
Deprecated
Warning this method does not choose properly if multiple methods with the same distance are encountered | |
| containsMatchingMethod | back to summary |
|---|---|
public static boolean containsMatchingMethod(List<E> list, MetaMethod method)
| |
| convertPropertyName | back to summary |
|---|---|
| public static String convertPropertyName(String prop) Converts a String into a standard property name. | |
| convertToTypeArray | back to summary |
|---|---|
| public static Class param instance array to the type array | |
| createExceptionText | back to summary |
|---|---|
| public static GroovyRuntimeException createExceptionText(String init, MetaMethod method, Object object, Object[] args, Throwable reason, boolean setReason) | |
| doSetMetaClass | back to summary |
|---|---|
| public static void doSetMetaClass(Object self, MetaClass mc) Sets the meta class for an object, by delegating to the appropriate
| |
| getClassName | back to summary |
|---|---|
| protected static String getClassName(Object object) | |
| getClassWithNullAndWrapper | back to summary |
|---|---|
| private static Class | |
| getMaximumInterfaceDistance | back to summary |
|---|---|
| private static int getMaximumInterfaceDistance(Class<T> c, Class<T> interfaceClass) | |
| getMethodPointer | back to summary |
|---|---|
| public static Closure Returns a callable object for the given method name on the object. The object acts like a Closure in that it can be called, like a closure and passed around - though really its a method pointer, not a closure per se. | |
| getPrimitiveDistance | back to summary |
|---|---|
| private static int getPrimitiveDistance(Class<T> from, Class<T> to) | |
| getPrimitiveIndex | back to summary |
|---|---|
| private static int getPrimitiveIndex(Class<T> c) | |
| isAssignableFrom | back to summary |
|---|---|
| public static boolean isAssignableFrom(Class<T> classToTransformTo, Class<T> classToTransformFrom) | |
| isGenericSetMethod | back to summary |
|---|---|
| public static boolean isGenericSetMethod(MetaMethod method) | |
| isIntegerLongShortByte | back to summary |
|---|---|
| private static boolean isIntegerLongShortByte(Class<T> classToTransformFrom) | |
| isSuperclass | back to summary |
|---|---|
| protected static boolean isSuperclass(Class<T> clazz, Class<T> superclass) | |
| logMethodCall | back to summary |
|---|---|
| public static void logMethodCall(Object object, String methodName, Object[] arguments) | |
| makeArray | back to summary |
|---|---|
| public static Object makeArray(Object obj, Class<T> secondary, int length) | |
| makeCommonArray | back to summary |
|---|---|
| public static Object makeCommonArray(Object[] arguments, int offset, Class<T> fallback) | |
| normalizedValue | back to summary |
|---|---|
| protected static String normalizedValue(Object argument) | |
| parametersAreCompatible | back to summary |
|---|---|
| public static boolean parametersAreCompatible(Class<T>[] arguments, Class<T>[] parameters) | |
| sameClass | back to summary |
|---|---|
| public static boolean sameClass(Class<T>[] params, Object arg) | |
| sameClasses | back to summary |
|---|---|
| public static boolean sameClasses(Class<T>[] params, Object[] arguments, boolean weakNullCheck) | |
| sameClasses | back to summary |
|---|---|
| public static boolean sameClasses(Class<T>[] params, Object[] arguments) | |
| sameClasses | back to summary |
|---|---|
| public static boolean sameClasses(Class<T>[] params) | |
| sameClasses | back to summary |
|---|---|
| public static boolean sameClasses(Class<T>[] params, Object arg1) | |
| sameClasses | back to summary |
|---|---|
| public static boolean sameClasses(Class<T>[] params, Object arg1, Object arg2) | |
| sameClasses | back to summary |
|---|---|
| public static boolean sameClasses(Class<T>[] params, Object arg1, Object arg2, Object arg3) | |
| sameClasses | back to summary |
|---|---|
| public static boolean sameClasses(Class<T>[] params, Object arg1, Object arg2, Object arg3, Object arg4) | |
| shortName | back to summary |
|---|---|
| protected static String shortName(Object object) | |
| unwrap | back to summary |
|---|---|
| public static void unwrap(Object[] arguments) | |
| wrap | back to summary |
|---|---|
| public static Class | |