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 org.codehaus.groovy.reflection.CachedClass
CachedClass.CachedMethodComparatorByName, CachedClass.CachedMethodComparatorWithString
-
Field Summary
Fields inherited from class org.codehaus.groovy.reflection.CachedClass
classInfo, EMPTY_ARRAY, isArray, isInterface, isNumber, isPrimitive, modifiers, mopMethods
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncoerceArgument
(Object argument) static Object
coerceToSAM
(Closure argument, Method method, Class clazz) static Object
coerceToSAM
(Closure argument, Method method, Class clazz, boolean isInterface) static Method
getSAMMethod
(Class<?> c) Finds the abstract method of given class, if it is a SAM type.boolean
isAssignableFrom
(Class argument) Methods inherited from class org.codehaus.groovy.reflection.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:
isAssignableFrom
in classCachedClass
-
coerceArgument
- Overrides:
coerceArgument
in classCachedClass
-
coerceToSAM
-
coerceToSAM
-
getSAMMethod
Finds the abstract method of given class, if it is a SAM type.
-