Interface ReflectionUtils.MethodProcessor

Enclosing class:
ReflectionUtils

public static interface ReflectionUtils.MethodProcessor
A processor of the methods of a hierarchy of classes. For each class of the hierarchy, filter(Class) is called first: if it returns ReflectionUtils.MethodProcessor.FilterResult.ACCEPT, process(Method) is then called for each method declared in that class.
  • Method Details

    • filter

      @Nonnull default ReflectionUtils.MethodProcessor.FilterResult filter(@Nonnull Class<?> clazz)
      Decides whether the methods declared in the given class must be processed. The default implementation accepts all the classes.
      Parameters:
      clazz - the class
      Returns:
      ACCEPT if the methods must be processed, IGNORE otherwise
    • process

      default void process(@Nonnull Method method)
      Processes a method. The default implementation does nothing.
      Parameters:
      method - the method