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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 27,37 **** import javax.lang.model.type.*; /** * A skeletal visitor of types with default behavior appropriate for ! * the version 6 language level. * * <p> <b>WARNING:</b> The {@code TypeVisitor} interface implemented * by this class may have methods added to it in the future to * accommodate new, currently unknown, language structures added to * future versions of the Java&trade; programming language. --- 27,38 ---- import javax.lang.model.type.*; /** * A skeletal visitor of types with default behavior appropriate for ! * the {@link javax.lang.model.SourceVersion#RELEASE_6 RELEASE_6} ! * source version. * * <p> <b>WARNING:</b> The {@code TypeVisitor} interface implemented * by this class may have methods added to it in the future to * accommodate new, currently unknown, language structures added to * future versions of the Java&trade; programming language.
*** 93,102 **** --- 94,117 ---- public final R visit(TypeMirror t) { return t.accept(this, null); } /** + * Visits a {@code DisjunctiveType} element by calling {@code + * visitUnknown}. + + * @param t {@inheritDoc} + * @param p {@inheritDoc} + * @return the result of {@code visitUnknown} + * + * @since 1.7 + */ + public R visitDisjunctive(DisjunctiveType t, P p) { + return visitUnknown(t, p); + } + + /** * {@inheritDoc} * * <p> The default implementation of this method in {@code * AbstractTypeVisitor6} will always throw {@code * UnknownTypeException}. This behavior is not required of a