public class CachedSAMClass extends CachedClass
CachedClass.CachedMethodComparatorByName, CachedClass.CachedMethodComparatorWithStringclassInfo, EMPTY_ARRAY, isArray, isInterface, isNumber, isPrimitive, modifiers, mopMethods| Constructor and Description |
|---|
CachedSAMClass(java.lang.Class klazz,
ClassInfo classInfo) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
coerceArgument(java.lang.Object argument) |
static java.lang.Object |
coerceToSAM(Closure argument,
java.lang.reflect.Method method,
java.lang.Class clazz,
boolean isInterface) |
static java.lang.reflect.Method |
getSAMMethod(java.lang.Class<?> c)
returns the abstract method from a SAM type, if it is a SAM type.
|
boolean |
isAssignableFrom(java.lang.Class argument) |
addNewMopMethods, getCachedClass, getCachedSuperClass, getCallSiteLoader, getConstructors, getDeclaredInterfaces, getFields, getHierarchy, getInterfaces, getMethods, getModifiers, getName, getNewMetaMethods, getSuperClassDistance, getTheClass, getTypeDescription, hashCode, isDirectlyAssignable, isInterface, isPrimitive, isVoid, searchMethods, setNewMopMethods, toStringpublic CachedSAMClass(java.lang.Class klazz,
ClassInfo classInfo)
public boolean isAssignableFrom(java.lang.Class argument)
isAssignableFrom in class CachedClasspublic static java.lang.Object coerceToSAM(Closure argument, java.lang.reflect.Method method, java.lang.Class clazz, boolean isInterface)
public java.lang.Object coerceArgument(java.lang.Object argument)
coerceArgument in class CachedClasspublic static java.lang.reflect.Method getSAMMethod(java.lang.Class<?> c)
c - the SAM class