AbstractElementVisitor9.java revision 2571:10fc81ac75b4
1160814Ssimon/*
2296465Sdelphij * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3296465Sdelphij * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4296465Sdelphij *
5296465Sdelphij * This code is free software; you can redistribute it and/or modify it
6160814Ssimon * under the terms of the GNU General Public License version 2 only, as
7160814Ssimon * published by the Free Software Foundation.  Oracle designates this
8160814Ssimon * particular file as subject to the "Classpath" exception as provided
9160814Ssimon * by Oracle in the LICENSE file that accompanied this code.
10160814Ssimon *
11160814Ssimon * This code is distributed in the hope that it will be useful, but WITHOUT
12160814Ssimon * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13160814Ssimon * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14160814Ssimon * version 2 for more details (a copy is included in the LICENSE file that
15296465Sdelphij * accompanied this code).
16160814Ssimon *
17160814Ssimon * You should have received a copy of the GNU General Public License version
18160814Ssimon * 2 along with this work; if not, write to the Free Software Foundation,
19160814Ssimon * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20160814Ssimon *
21160814Ssimon * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22160814Ssimon * or visit www.oracle.com if you need additional information or have any
23160814Ssimon * questions.
24160814Ssimon */
25160814Ssimon
26160814Ssimonpackage javax.lang.model.util;
27160814Ssimon
28160814Ssimonimport javax.annotation.processing.SupportedSourceVersion;
29160814Ssimonimport javax.lang.model.SourceVersion;
30160814Ssimonimport static javax.lang.model.SourceVersion.*;
31160814Ssimon
32160814Ssimon
33160814Ssimon/**
34160814Ssimon * A skeletal visitor of program elements with default behavior
35160814Ssimon * appropriate for the {@link SourceVersion#RELEASE_9 RELEASE_9}
36160814Ssimon * source version.
37160814Ssimon *
38160814Ssimon * <p> <b>WARNING:</b> The {@code ElementVisitor} interface
39160814Ssimon * implemented by this class may have methods added to it in the
40160814Ssimon * future to accommodate new, currently unknown, language structures
41160814Ssimon * added to future versions of the Java&trade; programming language.
42160814Ssimon * Therefore, methods whose names begin with {@code "visit"} may be
43160814Ssimon * added to this class in the future; to avoid incompatibilities,
44160814Ssimon * classes which extend this class should not declare any instance
45160814Ssimon * methods with names beginning with {@code "visit"}.
46160814Ssimon *
47160814Ssimon * <p>When such a new visit method is added, the default
48160814Ssimon * implementation in this class will be to call the {@link
49160814Ssimon * #visitUnknown visitUnknown} method.  A new abstract element visitor
50160814Ssimon * class will also be introduced to correspond to the new language
51160814Ssimon * level; this visitor will have different default behavior for the
52160814Ssimon * visit method in question.  When the new visitor is introduced, all
53160814Ssimon * or portions of this visitor may be deprecated.
54160814Ssimon *
55160814Ssimon * @param <R> the return type of this visitor's methods.  Use {@link
56160814Ssimon *            Void} for visitors that do not need to return results.
57160814Ssimon * @param <P> the type of the additional parameter to this visitor's
58160814Ssimon *            methods.  Use {@code Void} for visitors that do not need an
59160814Ssimon *            additional parameter.
60160814Ssimon *
61160814Ssimon * @see AbstractElementVisitor6
62160814Ssimon * @see AbstractElementVisitor7
63160814Ssimon * @see AbstractElementVisitor8
64160814Ssimon * @since 1.9
65160814Ssimon */
66160814Ssimon@SupportedSourceVersion(RELEASE_9)
67160814Ssimonpublic abstract class AbstractElementVisitor9<R, P> extends AbstractElementVisitor8<R, P> {
68160814Ssimon    /**
69160814Ssimon     * Constructor for concrete subclasses to call.
70296465Sdelphij     */
71160814Ssimon    protected AbstractElementVisitor9(){
72160814Ssimon        super();
73296465Sdelphij    }
74160814Ssimon}
75160814Ssimon