122 */
123 @Override
124 public R visitUnknown(Element e, P p) {
125 throw new UnknownElementException(e, p);
126 }
127
128 /**
129 * {@inheritDoc}
130 *
131 * @implSpec Visits a {@code ModuleElement} by calling {@code
132 * visitUnknown}.
133 *
134 * @param e {@inheritDoc}
135 * @param p {@inheritDoc}
136 * @return the result of {@code visitUnknown}
137 *
138 * @since 9
139 */
140 @Override
141 public R visitModule(ModuleElement e, P p) {
142 return visitUnknown(e, p);
143 }
144 }
|
122 */
123 @Override
124 public R visitUnknown(Element e, P p) {
125 throw new UnknownElementException(e, p);
126 }
127
128 /**
129 * {@inheritDoc}
130 *
131 * @implSpec Visits a {@code ModuleElement} by calling {@code
132 * visitUnknown}.
133 *
134 * @param e {@inheritDoc}
135 * @param p {@inheritDoc}
136 * @return the result of {@code visitUnknown}
137 *
138 * @since 9
139 */
140 @Override
141 public R visitModule(ModuleElement e, P p) {
142 // Use implementation from interface default method
143 return ElementVisitor.super.visitModule(e, p);
144 }
145 }
|