Class CachedSAMClass

    • Constructor Detail

      • CachedSAMClass

        public CachedSAMClass​(Class klazz,
                              ClassInfo classInfo)
    • Method Detail

      • 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