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