Anno.java revision 494:fe17a9dbef03
1130890Sdarrenr/*
231183Speter * Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
331183Speter * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
431183Speter *
531183Speter * This code is free software; you can redistribute it and/or modify it
631183Speter * under the terms of the GNU General Public License version 2 only, as
731183Speter * published by the Free Software Foundation.
831183Speter *
931183Speter * This code is distributed in the hope that it will be useful, but WITHOUT
1031183Speter * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1131183Speter * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1231183Speter * version 2 for more details (a copy is included in the LICENSE file that
1331183Speter * accompanied this code).
1431183Speter *
1531183Speter * You should have received a copy of the GNU General Public License version
1631183Speter * 2 along with this work; if not, write to the Free Software Foundation,
1731183Speter * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1831183Speter *
1931183Speter * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
2031183Speter * CA 95054 USA or visit www.sun.com if you need additional information or
2131183Speter * have any questions.
2231183Speter */
2331183Speter
2431183Speterimport java.util.*;
2531183Speterimport javax.annotation.processing.*;
2631183Speterimport javax.lang.model.*;
2731183Speterimport javax.lang.model.element.*;
2831183Speter
2931183Speter@SupportedAnnotationTypes("*")
3031183Speterpublic class Anno extends AbstractProcessor {
3131183Speter    public boolean process(Set<? extends TypeElement> annotations,
3231183Speter                                    RoundEnvironment roundEnv) {
3331183Speter        //if (!roundEnv.processingOver())
3431183Speter        //    System.err.println("annotation processing");
3531183Speter        return true;
3631183Speter    }
3731183Speter
3831183Speter    @Override
3931183Speter    public SourceVersion getSupportedSourceVersion() {
4031183Speter        return SourceVersion.latest();
4131183Speter    }
4231183Speter}
4331183Speter