Groovy Documentation

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(java.lang.Class klazz, ClassInfo classInfo)

 
Method Summary
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)

 
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 java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Constructor Detail

CachedSAMClass

public CachedSAMClass(java.lang.Class klazz, ClassInfo classInfo)


 
Method Detail

coerceArgument

@java.lang.Override
public java.lang.Object coerceArgument(java.lang.Object argument)


coerceToSAM

public static java.lang.Object coerceToSAM(Closure argument, java.lang.reflect.Method method, java.lang.Class clazz, boolean isInterface)


getSAMMethod

public static java.lang.reflect.Method getSAMMethod(java.lang.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

@java.lang.Override
public boolean isAssignableFrom(java.lang.Class argument)


 

Groovy Documentation