96 */
97 public final R visit(AnnotationValue av, P p) {
98 return av.accept(this, p);
99 }
100
101 /**
102 * Visits an annotation value as if by passing itself to that
103 * value's {@link AnnotationValue#accept accept} method passing
104 * {@code null} for the additional parameter. The invocation
105 * {@code v.visit(av)} is equivalent to {@code av.accept(v,
106 * null)}.
107 * @param av {@inheritDoc}
108 */
109 public final R visit(AnnotationValue av) {
110 return av.accept(this, null);
111 }
112
113 /**
114 * {@inheritDoc}
115 *
116 * <p>The default implementation of this method in {@code
117 * AbstractAnnotationValueVisitor6} will always throw {@code
118 * UnknownAnnotationValueException}. This behavior is not
119 * required of a subclass.
120 *
121 * @param av {@inheritDoc}
122 * @param p {@inheritDoc}
123 */
124 public R visitUnknown(AnnotationValue av, P p) {
125 throw new UnknownAnnotationValueException(av, p);
126 }
127 }
|
96 */
97 public final R visit(AnnotationValue av, P p) {
98 return av.accept(this, p);
99 }
100
101 /**
102 * Visits an annotation value as if by passing itself to that
103 * value's {@link AnnotationValue#accept accept} method passing
104 * {@code null} for the additional parameter. The invocation
105 * {@code v.visit(av)} is equivalent to {@code av.accept(v,
106 * null)}.
107 * @param av {@inheritDoc}
108 */
109 public final R visit(AnnotationValue av) {
110 return av.accept(this, null);
111 }
112
113 /**
114 * {@inheritDoc}
115 *
116 * @implSpec The default implementation of this method in {@code
117 * AbstractAnnotationValueVisitor6} will always throw {@code
118 * UnknownAnnotationValueException}. This behavior is not
119 * required of a subclass.
120 *
121 * @param av {@inheritDoc}
122 * @param p {@inheritDoc}
123 */
124 @Override
125 public R visitUnknown(AnnotationValue av, P p) {
126 throw new UnknownAnnotationValueException(av, p);
127 }
128 }
|