< prev index next >

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

Print this page

        

*** 116,144 **** } /** * {@inheritDoc} * ! * <p> The default implementation of this method in * {@code AbstractElementVisitor6} will always throw * {@code UnknownElementException}. * This behavior is not required of a subclass. * ! * @param e the element to visit ! * @param p a visitor-specified parameter * @return a visitor-specified result * @throws UnknownElementException * a visitor implementation may optionally throw this exception */ public R visitUnknown(Element e, P p) { throw new UnknownElementException(e, p); } /** ! * Visits a {@code ModuleElement} by calling {@code * visitUnknown}. ! * @param e {@inheritDoc} * @param p {@inheritDoc} * @return the result of {@code visitUnknown} * * @since 9 --- 116,147 ---- } /** * {@inheritDoc} * ! * @implSpec The default implementation of this method in * {@code AbstractElementVisitor6} will always throw * {@code UnknownElementException}. * This behavior is not required of a subclass. * ! * @param e {@inheritDoc} ! * @param p {@inheritDoc} * @return a visitor-specified result * @throws UnknownElementException * a visitor implementation may optionally throw this exception */ + @Override public R visitUnknown(Element e, P p) { throw new UnknownElementException(e, p); } /** ! * {@inheritDoc} ! * ! * @implSpec Visits a {@code ModuleElement} by calling {@code * visitUnknown}. ! * * @param e {@inheritDoc} * @param p {@inheritDoc} * @return the result of {@code visitUnknown} * * @since 9
< prev index next >