org.aspectj/org.aspectj.ajdt.core/testdata/src1/PerObject.java

22 lines
358 B
Java
Raw Normal View History

2002-12-16 18:58:19 +01:00
public class PerObject {
public static void main(String[] args) {
new PerObject().m();
}
void m() {
System.out.println("m()");
}
}
aspect A perthis(pc()) {
pointcut pc(): this(PerObject) && execution(* m(..));
static Object o = new Integer(2);
before(): get(* *) {
System.out.println("in " + o.toString());
}
static {
o = "hello";
}
}