Mon, 21 Jan 2013 11:16:28 -0800
Merge
jjh@1188 | 1 | /* |
jjh@1188 | 2 | * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
jjh@1188 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
jjh@1188 | 4 | * |
jjh@1188 | 5 | * This code is free software; you can redistribute it and/or modify it |
jjh@1188 | 6 | * under the terms of the GNU General Public License version 2 only, as |
jjh@1188 | 7 | * published by the Free Software Foundation. Oracle designates this |
jjh@1188 | 8 | * particular file as subject to the "Classpath" exception as provided |
jjh@1188 | 9 | * by Oracle in the LICENSE file that accompanied this code. |
jjh@1188 | 10 | * |
jjh@1188 | 11 | * This code is distributed in the hope that it will be useful, but WITHOUT |
jjh@1188 | 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
jjh@1188 | 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
jjh@1188 | 14 | * version 2 for more details (a copy is included in the LICENSE file that |
jjh@1188 | 15 | * accompanied this code). |
jjh@1188 | 16 | * |
jjh@1188 | 17 | * You should have received a copy of the GNU General Public License version |
jjh@1188 | 18 | * 2 along with this work; if not, write to the Free Software Foundation, |
jjh@1188 | 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
jjh@1188 | 20 | * |
jjh@1188 | 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
jjh@1188 | 22 | * or visit www.oracle.com if you need additional information or have any |
jjh@1188 | 23 | * questions. |
jjh@1188 | 24 | */ |
jjh@1188 | 25 | |
jjh@1188 | 26 | import java.util.Set; |
jjh@1188 | 27 | import javax.annotation.processing.*; |
jjh@1188 | 28 | import javax.lang.model.SourceVersion; |
jjh@1188 | 29 | import javax.lang.model.element.TypeElement; |
jjh@1189 | 30 | import javax.tools.Diagnostic.Kind; |
jjh@1188 | 31 | |
jjh@1188 | 32 | @SupportedAnnotationTypes("Anno") |
jjh@1189 | 33 | public class AnnoProcessor extends JavacTestingAbstractProcessor { |
jjh@1188 | 34 | @Override |
jjh@1188 | 35 | public SourceVersion getSupportedSourceVersion() { |
jjh@1188 | 36 | return SourceVersion.latest(); |
jjh@1188 | 37 | } |
jjh@1188 | 38 | |
jjh@1188 | 39 | @Override |
jjh@1188 | 40 | public boolean process(Set<? extends TypeElement> set, RoundEnvironment re) { |
jjh@1189 | 41 | messager.printMessage(Kind.NOTE, "RUNNING - lastRound = " + re.processingOver()); |
jjh@1188 | 42 | return true; |
jjh@1188 | 43 | } |
jjh@1188 | 44 | } |
jjh@1189 | 45 |