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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // In this class we use all the constructs and attach javadoc to them all - checking
  2. // that the compiler doesnt complain that any javadoc is missing.
  3. /**
  4. * A comment
  5. * @see AspectJavadocComment
  6. */
  7. public aspect World {
  8. public void test0() {}
  9. /**
  10. * A comment
  11. * @see PointcutJavadocComment1
  12. */
  13. pointcut firstPC() : execution(* *.sayHello(..));
  14. public void test1() {}
  15. /**
  16. * A comment
  17. * @see AfterReturningJavadocComment
  18. */
  19. after() returning : firstPC() {
  20. System.out.println("world");
  21. }
  22. public void test2(){}
  23. /**
  24. * comment2
  25. * @see PointcutJavadocComment2
  26. */
  27. public pointcut secondPC(): execution(* *(..));
  28. public void test3(){}
  29. /**
  30. * I am a comment attached to a warning
  31. * @see declarewarningJavadocComment
  32. */
  33. declare warning: call(* *elephant*(..)) : "I am a warning";
  34. public void test4() {}
  35. /**
  36. * comment attached to around advice
  37. * @see AroundAdviceJavadocComment
  38. */
  39. void around(): call(* *abc*(..)) {
  40. }
  41. public void test5() {}
  42. /**
  43. * ITD method attached comment
  44. * @see IntertypeMethodComment
  45. */
  46. public void X.method() { }
  47. public void test6() {}
  48. /**
  49. * ITD field attached comment
  50. * @see IntertypeFieldComment
  51. */
  52. public int X.i;
  53. public int test7;
  54. static class X {
  55. }
  56. }
  57. // to keep the javadoc processor happy ...
  58. class AspectJavadocComment {}
  59. class PointcutJavadocComment1 {}
  60. class PointcutJavadocComment2 {}
  61. class AfterReturningJavadocComment {}
  62. class AroundAdviceJavadocComment {}
  63. class IntertypeMethodComment {}
  64. class IntertypeFieldComment {}