| Modifier and Type | Method and Description |
|---|---|
static void |
forEachMemberMethod(Class<?> type,
Consumer<Method> action)
Starting at given type, traverses all super types (except Object.class) and passes
each encountered member method (including private ones) to the given consumer.
|
static void |
forEachStaticMethod(Class<?> type,
Consumer<Method> action)
Starting at given type, traverses all super types (except Object.class) and passes
each encountered static method (including private ones) to the given consumer.
|
public static void forEachStaticMethod(Class<?> type, Consumer<Method> action)
type - The type to start traversal.action - Action to execute for each encountered method.public static void forEachMemberMethod(Class<?> type, Consumer<Method> action)
type - The type to start traversal.action - Action to execute for each encountered method.Copyright © 2014–2018. All rights reserved.