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.

Trace.java 680B

1234567891011121314151617181920212223242526272829303132
  1. import java.io.Serializable;
  2. abstract aspect Trace {
  3. abstract pointcut targets();
  4. before (): targets() {
  5. System.out.println("entering " + thisJoinPoint);
  6. }
  7. after (): targets() {
  8. System.out.println("exiting " +
  9. thisStaticJoinPoint);
  10. }
  11. after () throwing (Throwable t): targets() {
  12. System.out.println("throwing " + t);
  13. }
  14. after () throwing (java.io.IOException ioe): targets() {
  15. System.out.println("throwing " + ioe);
  16. }
  17. after () returning (Object o): targets() {
  18. System.out.println("returning " + o);
  19. }
  20. private static int initCounter() {
  21. return 0;
  22. }
  23. //private int Serializable.counter = initCounter();
  24. }