SupportedSourceVersion.java revision 2571:10fc81ac75b4
117680Spst/*
217680Spst * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
317680Spst * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
417680Spst *
517680Spst * This code is free software; you can redistribute it and/or modify it
617680Spst * under the terms of the GNU General Public License version 2 only, as
717680Spst * published by the Free Software Foundation.  Oracle designates this
817680Spst * particular file as subject to the "Classpath" exception as provided
917680Spst * by Oracle in the LICENSE file that accompanied this code.
1017680Spst *
1117680Spst * This code is distributed in the hope that it will be useful, but WITHOUT
1217680Spst * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1317680Spst * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1417680Spst * version 2 for more details (a copy is included in the LICENSE file that
1517680Spst * accompanied this code).
1617680Spst *
1717680Spst * You should have received a copy of the GNU General Public License version
1817680Spst * 2 along with this work; if not, write to the Free Software Foundation,
1917680Spst * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2017680Spst *
2117680Spst * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2217680Spst * or visit www.oracle.com if you need additional information or have any
2317680Spst * questions.
2417680Spst */
2517680Spst
2617680Spstpackage javax.annotation.processing;
2717680Spst
2817680Spstimport java.lang.annotation.*;
2917680Spstimport static java.lang.annotation.RetentionPolicy.*;
3017680Spstimport static java.lang.annotation.ElementType.*;
3117680Spstimport javax.lang.model.SourceVersion;
3217680Spst
3317680Spst
3417680Spst/**
3517680Spst * An annotation used to indicate the latest source version an
3617680Spst * annotation processor supports.  The {@link
3717680Spst * Processor#getSupportedSourceVersion} method can construct its
3817680Spst * result from the value of this annotation, as done by {@link
3917680Spst * AbstractProcessor#getSupportedSourceVersion}.
4017680Spst *
4117680Spst * @author Joseph D. Darcy
4217680Spst * @author Scott Seligman
4317680Spst * @author Peter von der Ahé
4417680Spst * @since 1.6
4517680Spst */
4617680Spst@Documented
4717680Spst@Target(TYPE)
4817680Spst@Retention(RUNTIME)
4917680Spstpublic @interface SupportedSourceVersion {
50    /**
51     * Returns the latest supported source version.
52     * @return the latest supported source version
53     */
54    SourceVersion value();
55}
56