org.codehaus.groovy.reflection.stdclasses
[Java] Class CachedSAMClass
java.lang.Object
org.codehaus.groovy.reflection.CachedClass
org.codehaus.groovy.reflection.stdclasses.CachedSAMClass
public class CachedSAMClass
extends CachedClass
Methods inherited from class CachedClass
|
addNewMopMethods, coerceArgument, getCachedClass, getCachedSuperClass, getCallSiteLoader, getConstructors, getDeclaredInterfaces, getFields, getHierarchy, getInterfaces, getMethods, getModifiers, getName, getNewMetaMethods, getSuperClassDistance, getTheClass, getTypeDescription, hashCode, isAssignableFrom, isDirectlyAssignable, isInterface, isPrimitive, isVoid, searchMethods, setNewMopMethods, toString |
CachedSAMClass
public CachedSAMClass(Class klazz, ClassInfo classInfo)
-
coerceArgument
@Overridepublic Object coerceArgument(Object argument) {
public Object coerceArgument(Object argument)
-
coerceToSAM
public static Object coerceToSAM(Closure argument, Method method, Class clazz, boolean isInterface)
-
getSAMMethod
public static Method getSAMMethod(Class c)
- returns the abstract method from a SAM type, if it is a SAM type.
- Parameters:
c
- the SAM class
- Returns:
- null if nothing was found, the method otherwise
isAssignableFrom
@Overridepublic boolean isAssignableFrom(Class argument) {
public boolean isAssignableFrom(Class argument)
-
Copyright © 2003-2013 The Codehaus. All rights reserved.