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) { } }