1 2 3 4 5 6 7 8 9 10 11 12 13
import org.aspectj.lang.reflect.*; public class APointcut { @org.aspectj.lang.annotation.Pointcut("execution(* *.*(..))") void myPointcut() {}; public static void main(String[] args) throws Exception { AjType myType = AjTypeSystem.getAjType(APointcut.class); Pointcut pc = myType.getDeclaredPointcut("myPointcut"); } }