You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1234567891011 |
- import java.lang.reflect.Method;
- import java.util.Arrays;
-
- public class App {
- public static void main(String[] args) {
- for (Method method : App.class.getDeclaredMethods()) {
- if (method.getName().equals("foo"))
- System.out.println(Arrays.toString(method.getDeclaredAnnotations()) + " " + method);
- }
- }
- }
|