Class CachedSAMClass
java.lang.Object
org.codehaus.groovy.reflection.CachedClass
org.codehaus.groovy.reflection.stdclasses.CachedSAMClass
-
Nested Class Summary
Nested classes/interfaces inherited from class CachedClass
CachedClass.CachedMethodComparatorByName, CachedClass.CachedMethodComparatorWithString -
Field Summary
Fields inherited from class CachedClass
classInfo, EMPTY_ARRAY, isArray, isInterface, isNumber, isPrimitive, modifiers, mopMethods -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncoerceArgument(Object argument) 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 CachedClass
addNewMopMethods, getCachedClass, getCachedSuperClass, getCallSiteLoader, getConstructors, getDeclaredInterfaces, getFields, getHierarchy, getInterfaces, getMethods, getModifiers, getName, getNewMetaMethods, getSuperClassDistance, getTheClass, getTypeDescription, hashCode, isDirectlyAssignable, isInterface, isPrimitive, isVoid, searchMethods, setNewMopMethods, toString
-
Constructor Details
-
CachedSAMClass
-
-
Method Details
-
isAssignableFrom
- Overrides:
isAssignableFromin classCachedClass
-
coerceToSAM
-
coerceArgument
- Overrides:
coerceArgumentin classCachedClass
-
getSAMMethod
-