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.

A.java 481B

1234567891011121314151617181920
  1. import org.aspectj.testing.Tester;
  2. public aspect A {
  3. static {
  4. Tester.expectEvents(
  5. new String[] {
  6. "execution(void Main.main(String[]))",
  7. "execution(void pack.Util.log(String[]))"
  8. }
  9. );
  10. }
  11. before() : execution(public static * *(..)) {
  12. Tester.event("" + thisJoinPointStaticPart);
  13. //System.out.println("\"" + thisJoinPointStaticPart);
  14. }
  15. after() returning : execution(public static void main(String[])) {
  16. Tester.checkAllEvents();
  17. }
  18. }