Class CachedSAMClass

    • Constructor Detail

      • CachedSAMClass

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

      • coerceToSAM

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

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

        public java.lang.Object coerceArgument​(java.lang.Object argument)
        Overrides:
        coerceArgument in class CachedClass
      • 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