src/share/classes/javax/lang/model/util/AbstractTypeVisitor6.java

changeset 851
cad51b6eb7a6
parent 798
4868a36f6fd8
child 969
8cc5b440fdde
equal deleted inserted replaced
850:2ab47c4cd618 851:cad51b6eb7a6
1 /* 1 /*
2 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2005, 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 6 language level. 32 * the {@link javax.lang.model.SourceVersion#RELEASE_6 RELEASE_6}
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&trade; programming language. 38 * future versions of the Java&trade; programming language.
93 public final R visit(TypeMirror t) { 94 public final R visit(TypeMirror t) {
94 return t.accept(this, null); 95 return t.accept(this, null);
95 } 96 }
96 97
97 /** 98 /**
99 * Visits a {@code DisjunctiveType} element by calling {@code
100 * visitUnknown}.
101
102 * @param t {@inheritDoc}
103 * @param p {@inheritDoc}
104 * @return the result of {@code visitUnknown}
105 *
106 * @since 1.7
107 */
108 public R visitDisjunctive(DisjunctiveType t, P p) {
109 return visitUnknown(t, p);
110 }
111
112 /**
98 * {@inheritDoc} 113 * {@inheritDoc}
99 * 114 *
100 * <p> The default implementation of this method in {@code 115 * <p> The default implementation of this method in {@code
101 * AbstractTypeVisitor6} will always throw {@code 116 * AbstractTypeVisitor6} will always throw {@code
102 * UnknownTypeException}. This behavior is not required of a 117 * UnknownTypeException}. This behavior is not required of a

mercurial