handleAnnotationInfo()方法中創(chuàng)建MethodInfo()構(gòu)造方法入?yún)栴}
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() 中 第一個入?yún)懯裁矗?/p>
2020-08-19
this啊,用這個就可以了,