jjh@1188: /* jjh@1188: * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. jjh@1188: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jjh@1188: * jjh@1188: * This code is free software; you can redistribute it and/or modify it jjh@1188: * under the terms of the GNU General Public License version 2 only, as jjh@1188: * published by the Free Software Foundation. Oracle designates this jjh@1188: * particular file as subject to the "Classpath" exception as provided jjh@1188: * by Oracle in the LICENSE file that accompanied this code. jjh@1188: * jjh@1188: * This code is distributed in the hope that it will be useful, but WITHOUT jjh@1188: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jjh@1188: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jjh@1188: * version 2 for more details (a copy is included in the LICENSE file that jjh@1188: * accompanied this code). jjh@1188: * jjh@1188: * You should have received a copy of the GNU General Public License version jjh@1188: * 2 along with this work; if not, write to the Free Software Foundation, jjh@1188: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jjh@1188: * jjh@1188: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jjh@1188: * or visit www.oracle.com if you need additional information or have any jjh@1188: * questions. jjh@1188: */ jjh@1188: jjh@1188: import java.util.Set; jjh@1188: import javax.annotation.processing.*; jjh@1188: import javax.lang.model.SourceVersion; jjh@1188: import javax.lang.model.element.TypeElement; jjh@1189: import javax.tools.Diagnostic.Kind; jjh@1188: jjh@1188: @SupportedAnnotationTypes("Anno") jjh@1189: public class AnnoProcessor extends JavacTestingAbstractProcessor { jjh@1188: @Override jjh@1188: public SourceVersion getSupportedSourceVersion() { jjh@1188: return SourceVersion.latest(); jjh@1188: } jjh@1188: jjh@1188: @Override jjh@1188: public boolean process(Set set, RoundEnvironment re) { jjh@1189: messager.printMessage(Kind.NOTE, "RUNNING - lastRound = " + re.processingOver()); jjh@1188: return true; jjh@1188: } jjh@1188: } jjh@1189: