1 /* |
1 /* |
2 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2010, 2011 Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
27 |
27 |
28 import javax.lang.model.type.*; |
28 import javax.lang.model.type.*; |
29 |
29 |
30 /** |
30 /** |
31 * A skeletal visitor of types with default behavior appropriate for |
31 * A skeletal visitor of types with default behavior appropriate for |
32 * the version 7 language level. |
32 * the {@link javax.lang.model.SourceVersion#RELEASE_7 RELEASE_7} |
|
33 * source version. |
33 * |
34 * |
34 * <p> <b>WARNING:</b> The {@code TypeVisitor} interface implemented |
35 * <p> <b>WARNING:</b> The {@code TypeVisitor} interface implemented |
35 * by this class may have methods added to it in the future to |
36 * by this class may have methods added to it in the future to |
36 * accommodate new, currently unknown, language structures added to |
37 * accommodate new, currently unknown, language structures added to |
37 * future versions of the Java™ programming language. |
38 * future versions of the Java™ programming language. |
62 * Constructor for concrete subclasses to call. |
63 * Constructor for concrete subclasses to call. |
63 */ |
64 */ |
64 protected AbstractTypeVisitor7() { |
65 protected AbstractTypeVisitor7() { |
65 super(); |
66 super(); |
66 } |
67 } |
|
68 |
|
69 /** |
|
70 * Visits a {@code DisjunctiveType} in a manner defined by a subclass. |
|
71 * |
|
72 * @param t {@inheritDoc} |
|
73 * @param p {@inheritDoc} |
|
74 * @return the result of the visit as defined by a subclass |
|
75 */ |
|
76 public abstract R visitDisjunctive(DisjunctiveType t, P p); |
67 } |
77 } |