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.

UnimplementedSyntax.java 478B

12345678910111213141516171819202122232425
  1. /**
  2. *
  3. *
  4. */
  5. aspect A dominates Foo persingleton() { }
  6. //aspect B perthis(foo()) {
  7. //XXX don't forget an error test for foo() not found}
  8. aspect C {
  9. pointcut w(int x): args(x) && if(x < 10);
  10. pointcut x(): cflow(y());
  11. pointcut y(): withincode(int m());
  12. pointcut z(): execution(void m()) a b c;
  13. declare error: execution(void m()): "hi" ac;
  14. pointcut p(): handler(Foo);
  15. pointcut p2(): initialization(Object.new(..));
  16. declare dominates: A, B;
  17. }
  18. aspect D a b c {}