Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

SomeAspect.java 979B

1234567891011121314151617181920212223242526272829
  1. public aspect SomeAspect {
  2. void around(final SomeAnnotation someAnnotation) :
  3. call(@SomeAnnotation void *.*(..)) && @annotation(someAnnotation) {
  4. System.out.println("@someAspect annotation parameter (call)");
  5. //CASES 1, 3 only
  6. proceed(someAnnotation);
  7. }
  8. void around(final SomeAnnotation someAnnotation) :
  9. execution(@SomeAnnotation void *.*(..)) &&
  10. @annotation(someAnnotation) {
  11. System.out.println("@someAspect annotation parameter (execution)"); //CASES 1, 2, 3
  12. proceed(someAnnotation);
  13. }
  14. void around() : call(@SomeAnnotation void *.*(..)) {
  15. System.out.println("@someAspect annotation no parameter");
  16. //CASES 1, 2, 3
  17. proceed();
  18. }
  19. void around() : call(void *.test*(..)) {
  20. System.out.println("@someAspect method name"); //CASES 1, 2, 3
  21. proceed();
  22. }
  23. }