123456789101112131415161718192021222324252627 |
- public aspect Tracing {
-
- pointcut publicMethods() : execution(public * *(..));
-
- before() : publicMethods() {
- System.out.println("Entering "+thisJoinPoint);
- }
-
- }
-
- class MainClass {
-
-
- public static void main(String[] args) {
-
- }
-
- public String toString() {
- return super.toString();
- }
-
-
- public int hashCode() {
- return super.hashCode();
- }
-
- }
|