Class CachedSAMClass
- java.lang.Object
- 
- org.codehaus.groovy.reflection.CachedClass
- 
- org.codehaus.groovy.reflection.stdclasses.CachedSAMClass
 
 
- 
 public class CachedSAMClass extends CachedClass 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.codehaus.groovy.reflection.CachedClassCachedClass.CachedMethodComparatorByName, CachedClass.CachedMethodComparatorWithString
 
- 
 - 
Field Summary- 
Fields inherited from class org.codehaus.groovy.reflection.CachedClassclassInfo, EMPTY_ARRAY, isArray, isInterface, isNumber, isPrimitive, modifiers, mopMethods
 
- 
 - 
Constructor SummaryConstructors Constructor Description CachedSAMClass(Class klazz, ClassInfo classInfo)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectcoerceArgument(Object argument)static ObjectcoerceToSAM(Closure argument, Method method, Class clazz)static ObjectcoerceToSAM(Closure argument, Method method, Class clazz, boolean isInterface)static MethodgetSAMMethod(Class<?> c)returns the abstract method from a SAM type, if it is a SAM type.booleanisAssignableFrom(Class argument)- 
Methods inherited from class org.codehaus.groovy.reflection.CachedClassaddNewMopMethods, getCachedClass, getCachedSuperClass, getCallSiteLoader, getConstructors, getDeclaredInterfaces, getFields, getHierarchy, getInterfaces, getMethods, getModifiers, getName, getNewMetaMethods, getSuperClassDistance, getTheClass, getTypeDescription, hashCode, isDirectlyAssignable, isInterface, isPrimitive, isVoid, searchMethods, setNewMopMethods, toString
 
- 
 
- 
- 
- 
Method Detail- 
isAssignableFrompublic boolean isAssignableFrom(Class argument) - Overrides:
- isAssignableFromin class- CachedClass
 
 - 
coerceToSAMpublic static Object coerceToSAM(Closure argument, Method method, Class clazz, boolean isInterface) 
 - 
coerceArgumentpublic Object coerceArgument(Object argument) - Overrides:
- coerceArgumentin class- CachedClass
 
 
- 
 
-