@@ -0,0 +1,1026 @@
+package cn.trinea.java.test.annotation;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Set;%0A%0Aimport javax.annotation.processing.AbstractProcessor;%0Aimport javax.annotation.processing.RoundEnvironment;%0Aimport javax.annotation.processing.SupportedAnnotationTypes;%0Aimport javax.lang.model.element.Element;%0Aimport javax.lang.model.element.TypeElement;%0A%0A@SupportedAnnotationTypes(%7B %22cn.trinea.java.test.annotation.MethodInfo%22 %7D)%0Apublic class AnnotationProcessor extends AbstractProcessor %7B%0A%0A    @Override%0A    public boolean process(Set%3C? extends TypeElement%3E elements, RoundEnvironment env) %7B%0A        %0A        HashMap%3CString, String%3E map = new HashMap%3CString, String%3E();%0A        for (TypeElement te : elements) %7B%0A            for (Element element : env.getElementsAnnotatedWith(te)) %7B%0A                MethodInfo methodInfo = element.getAnnotation(MethodInfo.class);%0A                element.getEnclosingElement().toString();%0A                System.out.println(methodInfo.author());%0A            %7D%0A        %7D%0A        return false;%0A    %7D%0A%0A%7D%0A

Add processor