blob: 43ebb507d7e96c9405c0f55bedea75fa93eeb3df (
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
|
public aspect Tracing {
pointcut publicMethods() : execution(public * *(..));
before() : publicMethods() {
System.out.println("Entering "+thisJoinPoint);
}
after() : publicMethods() {
System.out.println("Exiting " + thisJoinPoint);
}
}
class MainClass {
public static void main(String[] args) {
}
public String toString() {
return super.toString();
}
public int hashCode() {
return super.hashCode();
}
}
|