Interface IntroductionAwareMethodMatcher

    • Method Detail

      • matches

        boolean matches​(Method method,
                        Class<?> targetClass,
                        boolean hasIntroductions)
        Perform static checking whether the given method matches. This may be invoked instead of the 2-arg MethodMatcher.matches(java.lang.reflect.Method, Class) method if the caller supports the extended IntroductionAwareMethodMatcher interface.
        Parameters:
        method - the candidate method
        targetClass - the target class
        hasIntroductions - true if the object on whose behalf we are asking is the subject on one or more introductions; false otherwise
        Returns:
        whether or not this method matches statically