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.

Advice.java 377B

12345678910111213141516171819
  1. public class Advice {
  2. public static void main(String []argv) {
  3. }
  4. }
  5. aspect X {
  6. before(): execution(* main(..)) {}
  7. }
  8. aspect Y {
  9. before(): adviceexecution() && within(X) {
  10. System.out.println("tjp:"+thisJoinPointStaticPart.getSignature());
  11. }
  12. before(): adviceexecution() && within(X) {
  13. System.out.println("tejp:"+thisEnclosingJoinPointStaticPart.getSignature());
  14. }
  15. }