/** * Like {@link #getReflectMethod(ClassLoader, ExecutableElement)} but using the processing environment context. */ public static Method getReflectMethod(ProcessingEnvironment env, ExecutableElement modelMethod) { ClassLoader loader = CodeGen.loaderMap.get(env); if (loader != null) { return getReflectMethod(loader, modelMethod); } return null; }
private Method getMethod(ProcessingEnvironment env, ExecutableElement methodElt) { Method methodRef = Helper.getReflectMethod(Thread.currentThread().getContextClassLoader(), methodElt); if (methodRef == null) { methodRef = Helper.getReflectMethod(env, methodElt); } return methodRef; } public TypeUse.TypeInternal forParam(ProcessingEnvironment env, ExecutableElement methodElt, int paramIndex) {