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.

Fields2.java 710B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. public class Fields2 {
  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. Fields2 f = new Fields2();
  18. f.a = 2;
  19. f.ps = (short)3;
  20. f.d = 2.0d;
  21. f.obj = new Inner();
  22. f.s = "helo";
  23. f.fs = 4f;
  24. f.ls = 3L;
  25. f.bs = (byte)23;
  26. f.cs = 'a';
  27. }
  28. static class Inner {}
  29. }
  30. aspect X {
  31. before(): within(Fields2) && set(* *) && withincode(* main(..)){
  32. System.out.println(thisJoinPointStaticPart.getSignature());
  33. }
  34. }