Groovy 2.2.1

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

Field Summary
 
Fields inherited from class CachedClass
EMPTY_ARRAY, classInfo, isArray, isInterface, isNumber, isPrimitive, modifiers, mopMethods
 
Constructor Summary
CachedSAMClass(Class klazz, ClassInfo classInfo)

 
Method Summary
Object coerceArgument(Object argument)

static Object coerceToSAM(Closure argument, Method method, Class clazz, boolean isInterface)

static Method getSAMMethod(Class c)

returns the abstract method from a SAM type, if it is a SAM type.

boolean isAssignableFrom(Class argument)

 
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
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

CachedSAMClass

public CachedSAMClass(Class klazz, ClassInfo classInfo)


 
Method Detail

coerceArgument

@Overridepublic Object coerceArgument(Object argument) {
public Object coerceArgument(Object argument)


coerceToSAM

@SuppressWarningspublic static Object coerceToSAM(Closure argument, Method method, Class clazz, boolean isInterface) {
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.