spring-framework / org.springframework.util / ReflectionUtils / doWithMethods

doWithMethods

open static fun doWithMethods(clazz: Class<*>, mc: MethodCallback): Unit

Perform the given callback operation on all matching methods of the given class and superclasses.

The same named method occurring on subclass and superclass will appear twice, unless excluded by a MethodFilter.

Parameters

clazz - the class to introspect

mc - the callback to invoke for each method

Exceptions

IllegalStateException - if introspection fails

See Also
#doWithMethods(Class, MethodCallback, MethodFilter)

open static fun doWithMethods(clazz: Class<*>, mc: MethodCallback, @Nullable mf: MethodFilter): Unit

Perform the given callback operation on all matching methods of the given class and superclasses (or given interface and super-interfaces).

The same named method occurring on subclass and superclass will appear twice, unless excluded by the specified MethodFilter.

Parameters

clazz - the class to introspect

mc - the callback to invoke for each method

mf - the filter that determines the methods to apply the callback to

Exceptions

IllegalStateException - if introspection fails