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.

DAMethod1.java 379B

12345678910111213141516
  1. import java.lang.annotation.*;
  2. @Retention(RetentionPolicy.RUNTIME)
  3. @interface Annot {}
  4. class Person {
  5. public void foo() {}
  6. public boolean bar() {return false;}
  7. public String getString() { return null; }
  8. public boolean isSet() { return false; }
  9. public void isNotReturningBoolean() { }
  10. }
  11. aspect DAMethod1 {
  12. declare @method: (* *.get*()) || (boolean *.is*()): @Annot;
  13. }