Set<? extends Element> elements = roundEnvironment.getElementsAnnotatedWith(annotation); for (Element element: elements) { if (!checkMethodValidator(element, annotation)) { return false; } ExecutableElement methodElement = (ExecutableElement) element; TypeElement enclosingElement = (TypeElement)methodElement.getEnclosingElement(); String className = enclosingElement.getQualifiedName().toString(); MethodInfo methodInfo = methodMap.get(className); if (methodInfo == null) { methodInfo = new MethodInfo(?, enclosingElement); methodMap.put(className, methodInfo); } .....
new MethodInfo() 中 第一个入参写什么?
this啊,用这个就可以了,