Class CachedSAMClass
java.lang.Object
org.codehaus.groovy.reflection.CachedClass
org.codehaus.groovy.reflection.stdclasses.CachedSAMClass
public class CachedSAMClass extends CachedClass
- 
Nested Class SummaryNested classes/interfaces inherited from class org.codehaus.groovy.reflection.CachedClassCachedClass.CachedMethodComparatorByName, CachedClass.CachedMethodComparatorWithString
- 
Field SummaryFields inherited from class org.codehaus.groovy.reflection.CachedClassclassInfo, EMPTY_ARRAY, isArray, isInterface, isNumber, isPrimitive, modifiers, mopMethods
- 
Constructor SummaryConstructors Constructor Description CachedSAMClass(java.lang.Class clazz, ClassInfo classInfo)
- 
Method SummaryModifier and Type Method Description java.lang.ObjectcoerceArgument(java.lang.Object argument)static java.lang.ObjectcoerceToSAM(Closure argument, java.lang.reflect.Method method, java.lang.Class clazz)static java.lang.ObjectcoerceToSAM(Closure argument, java.lang.reflect.Method method, java.lang.Class clazz, boolean isInterface)static java.lang.reflect.MethodgetSAMMethod(java.lang.Class<?> c)Finds the abstract method of given class, if it is a SAM type.booleanisAssignableFrom(java.lang.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, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
- 
Constructor Details- 
CachedSAMClass
 
- 
- 
Method Details- 
isAssignableFrompublic boolean isAssignableFrom(java.lang.Class argument)- Overrides:
- isAssignableFromin class- CachedClass
 
- 
coerceArgumentpublic java.lang.Object coerceArgument(java.lang.Object argument)- Overrides:
- coerceArgumentin class- CachedClass
 
- 
coerceToSAMpublic static java.lang.Object coerceToSAM(Closure argument, java.lang.reflect.Method method, java.lang.Class clazz)
- 
coerceToSAMpublic static java.lang.Object coerceToSAM(Closure argument, java.lang.reflect.Method method, java.lang.Class clazz, boolean isInterface)
- 
getSAMMethodpublic static java.lang.reflect.Method getSAMMethod(java.lang.Class<?> c)Finds the abstract method of given class, if it is a SAM type.
 
-