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.

FieldsE.java 799B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. public class FieldsE {
  2. int a = 1;
  3. String s = "hello";
  4. double d = 1.0d;
  5. boolean b = true;
  6. short ps = (short)1;
  7. float fs = 1.0f;
  8. long ls = 1L;
  9. byte bs = (byte)3;
  10. char cs = 'a';
  11. Inner obj = new Inner();
  12. static int as = 1;
  13. static String ss = "hello";
  14. static double ds = 1.0d;
  15. static Inner objs = new Inner();
  16. public static void main(String []argv) {
  17. FieldsE f = new FieldsE();
  18. int a2 = f.a;
  19. String s2 = f.s;
  20. double d2 = f.d;
  21. Inner obj2 = f.obj;
  22. short ps2 = f.ps;
  23. float fs2 = f.fs;
  24. long ls2 = f.ls;
  25. byte bs2 = f.bs;
  26. char cs2 = f.cs;
  27. int a3 = as;
  28. String s3 = ss;
  29. double d3 = ds;
  30. Inner obj3 = objs;
  31. }
  32. static class Inner {}
  33. }
  34. aspect X {
  35. before(): within(FieldsE) && get(* *) {
  36. System.out.println(thisEnclosingJoinPointStaticPart.getSignature());
  37. }
  38. }