blob: 5b37208fd284c5acf0cb0d783d5bf64de418e1e2 (
plain)
1
2
3
4
5
6
7
8
9
|
package a.b.c;
aspect Foo pertypewithin(Runnable+) {
after() : staticinitialization(*) {
System.out.println(thisJoinPointStaticPart+" getWithinTypeName() = " + getWithinTypeName());
Class c = thisJoinPointStaticPart.getSourceLocation().getWithinType();
System.out.println(thisJoinPointStaticPart+" aspectOf("+c.getName()+") = "+Foo.aspectOf(c).getClass().getName());
}
}
|