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.

B.java 436B

1234567891011121314151617181920212223
  1. import java.lang.reflect.*;
  2. import java.lang.annotation.*;
  3. public class B {
  4. public static void main(String []argv) {
  5. Field[] fs = B.class.getDeclaredFields();
  6. for (Field f: fs) {
  7. printM(f);
  8. }
  9. }
  10. private static void printM(Field m) {
  11. System.out.println(m.getName());
  12. Annotation[] as = m.getAnnotations();
  13. for (Annotation a: as) {
  14. System.out.println(a);
  15. }
  16. }
  17. }
  18. aspect X {
  19. public int B.boo;
  20. }