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.

DefineInterface.java 462B

1234567891011121314151617181920
  1. package pack;
  2. import org.aspectj.testing.Tester;
  3. public aspect DefineInterface {
  4. declare parents: InterfaceDefinition.C implements MyInterface;
  5. static {
  6. Tester.expectEvent("m()");
  7. }
  8. public void MyInterface.m() {
  9. Tester.event("m()");
  10. }
  11. before(MyInterface targ) : target(targ) && call(void run()) {
  12. targ.m();
  13. }
  14. after() returning : execution(void main(String[])) {
  15. Tester.checkAllEvents();
  16. }
  17. }