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