blob: ec4e81568fa8b7d54708db07c507648fea58175d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import java.lang.reflect.Method;
public class Basic {
public static void main(String[] args) {
Method[] ms = X.class.getMethods();
for (int i = 0; i < ms.length; i++) {
if (ms[i].getName().indexOf("if$")!=-1) {
System.out.println("if method: "+ms[i]);
}
}
}
public void m() {}
}
aspect X {
before(): execution(* m(..)) && if(true==true) && if(true==(true || true)) {
}
before(): execution(* m(..)) && if(true==true) {
}
}
|