blob: 58542604243fcc2c93c56cf01c4335bd9bb8d9b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
public aspect TJP {
pointcut run () :
execution(public void *.run());
before () : run () {
System.out.println("? TJP.execRun() thisJoinPointStaticPart=" + thisJoinPointStaticPart);
}
pointcut write () :
call(public void *.run());
before () : write () {
System.out.println("? TJP.callRun() thisJoinPointStaticPart=" + thisJoinPointStaticPart);
}
before () : write () {
System.out.println("? TJP.callRun() thisEnclosingJoinPointStaticPart=" + thisEnclosingJoinPointStaticPart);
}
pointcut getI () :
get(int i);
before () : getI () {
System.out.println("? TJP.getI() thisJoinPoint=" + thisJoinPoint);
}
pointcut setI () :
set(int i);
before () : setI () {
System.out.println("? TJP.setI() thisJoinPoint=" + thisJoinPoint);
}
}
|