< prev index next >

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

Print this page

        

*** 112,124 **** public final R visit(TypeMirror t) { return t.accept(this, null); } /** ! * Visits a {@code UnionType} element by calling {@code * visitUnknown}. ! * @param t {@inheritDoc} * @param p {@inheritDoc} * @return the result of {@code visitUnknown} * * @since 1.7 --- 112,126 ---- public final R visit(TypeMirror t) { return t.accept(this, null); } /** ! * {@inheritDoc} ! * ! * @implSpec Visits a {@code UnionType} element by calling {@code * visitUnknown}. ! * * @param t {@inheritDoc} * @param p {@inheritDoc} * @return the result of {@code visitUnknown} * * @since 1.7
*** 126,160 **** public R visitUnion(UnionType t, P p) { return visitUnknown(t, p); } /** ! * Visits an {@code IntersectionType} element by calling {@code * visitUnknown}. ! * @param t {@inheritDoc} * @param p {@inheritDoc} * @return the result of {@code visitUnknown} * * @since 1.8 */ public R visitIntersection(IntersectionType 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 * subclass. * ! * @param t the type to visit * @return a visitor-specified result * @throws UnknownTypeException * a visitor implementation may optionally throw this exception */ public R visitUnknown(TypeMirror t, P p) { throw new UnknownTypeException(t, p); } } --- 128,167 ---- public R visitUnion(UnionType t, P p) { return visitUnknown(t, p); } /** ! * {@inheritDoc} ! * ! * @implSpec Visits an {@code IntersectionType} element by calling {@code * visitUnknown}. ! * * @param t {@inheritDoc} * @param p {@inheritDoc} * @return the result of {@code visitUnknown} * * @since 1.8 */ + @Override public R visitIntersection(IntersectionType t, P p) { return visitUnknown(t, p); } /** * {@inheritDoc} * ! * @implSpec The default implementation of this method in {@code * AbstractTypeVisitor6} will always throw {@code * UnknownTypeException}. This behavior is not required of a * subclass. * ! * @param t {@inheritDoc} ! * @param p {@inheritDoc} * @return a visitor-specified result * @throws UnknownTypeException * a visitor implementation may optionally throw this exception */ + @Override public R visitUnknown(TypeMirror t, P p) { throw new UnknownTypeException(t, p); } }
< prev index next >