handleAnnotationInfo()方法中創建MethodInfo()構造方法入參問題
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() 中 第一個入參寫什么?
2020-08-19
this啊,用這個就可以了,