aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features190/efficientTJP/Advice.java
blob: a85a445c2657bcb154acffbfa914628f171dd7a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
public class Advice {
	public static void main(String []argv) {
	}
}

aspect X {
	before(): execution(* main(..)) {}
}

aspect Y {
	before(): adviceexecution() && within(X) {
		System.out.println("tjp:"+thisJoinPointStaticPart.getSignature());
	}

	before(): adviceexecution() && within(X) {
		System.out.println("tejp:"+thisEnclosingJoinPointStaticPart.getSignature());
	}

}