116 } |
116 } |
117 |
117 |
118 /** |
118 /** |
119 * {@inheritDoc} |
119 * {@inheritDoc} |
120 * |
120 * |
121 * <p> The default implementation of this method in |
121 * @implSpec The default implementation of this method in |
122 * {@code AbstractElementVisitor6} will always throw |
122 * {@code AbstractElementVisitor6} will always throw |
123 * {@code UnknownElementException}. |
123 * {@code UnknownElementException}. |
124 * This behavior is not required of a subclass. |
124 * This behavior is not required of a subclass. |
125 * |
125 * |
126 * @param e the element to visit |
126 * @param e {@inheritDoc} |
127 * @param p a visitor-specified parameter |
127 * @param p {@inheritDoc} |
128 * @return a visitor-specified result |
128 * @return a visitor-specified result |
129 * @throws UnknownElementException |
129 * @throws UnknownElementException |
130 * a visitor implementation may optionally throw this exception |
130 * a visitor implementation may optionally throw this exception |
131 */ |
131 */ |
|
132 @Override |
132 public R visitUnknown(Element e, P p) { |
133 public R visitUnknown(Element e, P p) { |
133 throw new UnknownElementException(e, p); |
134 throw new UnknownElementException(e, p); |
134 } |
135 } |
135 |
136 |
136 /** |
137 /** |
137 * Visits a {@code ModuleElement} by calling {@code |
138 * {@inheritDoc} |
|
139 * |
|
140 * @implSpec Visits a {@code ModuleElement} by calling {@code |
138 * visitUnknown}. |
141 * visitUnknown}. |
139 |
142 * |
140 * @param e {@inheritDoc} |
143 * @param e {@inheritDoc} |
141 * @param p {@inheritDoc} |
144 * @param p {@inheritDoc} |
142 * @return the result of {@code visitUnknown} |
145 * @return the result of {@code visitUnknown} |
143 * |
146 * |
144 * @since 9 |
147 * @since 9 |