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.

ExposedType.java 470B

12345678910111213141516171819202122232425
  1. public class ExposedType {
  2. public static void main(String[] args) {
  3. new ExposedTypeOne().foo();
  4. new ExposedTypeTwo().foo();
  5. new ExposedTypeThree().foo();
  6. }
  7. }
  8. class ExposedTypeOne {
  9. public void foo() { }
  10. }
  11. class ExposedTypeTwo {
  12. public void foo() { }
  13. }
  14. class ExposedTypeThree {
  15. public void foo() { }
  16. }
  17. aspect X pertypewithin(Exposed*) {
  18. before(): execution(* foo(..)) {
  19. System.err.println("here I am "+thisJoinPoint+": for class "+getWithinType());
  20. }
  21. }