SimpleProcessor.java revision 3914:8cbff90a50bc
1144513Simp/* 2144604Simp * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. 3144604Simp * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4144604Simp * 5144604Simp * This code is free software; you can redistribute it and/or modify it 6144604Simp * under the terms of the GNU General Public License version 2 only, as 7144604Simp * published by the Free Software Foundation. 8144604Simp * 9144604Simp * This code is distributed in the hope that it will be useful, but WITHOUT 10144604Simp * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11144604Simp * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12144604Simp * version 2 for more details (a copy is included in the LICENSE file that 13144604Simp * accompanied this code). 14144604Simp * 15144604Simp * You should have received a copy of the GNU General Public License version 16144604Simp * 2 along with this work; if not, write to the Free Software Foundation, 17144604Simp * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18144604Simp * 19144604Simp * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20144604Simp * or visit www.oracle.com if you need additional information or have any 21144604Simp * questions. 22144604Simp */ 23144604Simp 24144604Simpimport java.util.Set; 25144604Simpimport javax.annotation.processing.AbstractProcessor; 26144604Simpimport javax.annotation.processing.RoundEnvironment; 27144604Simpimport javax.annotation.processing.SupportedAnnotationTypes; 28144604Simpimport javax.lang.model.SourceVersion; 29144604Simpimport javax.lang.model.element.TypeElement; 30144604Simp 31144604Simp@SupportedAnnotationTypes("*") 32144513Simppublic class SimpleProcessor extends AbstractProcessor { 33144513Simp 34144604Simp @Override 35144604Simp public SourceVersion getSupportedSourceVersion() { 36144604Simp return SourceVersion.latestSupported(); 37144604Simp } 38144604Simp 39144604Simp @Override 40144604Simp public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { 41144604Simp return false; 42144604Simp } 43144604Simp}