54 *
55 * @param <R> the return type of this visitor's methods. Use {@link
56 * Void} for visitors that do not need to return results.
57 * @param <P> the type of the additional parameter to this visitor's
58 * methods. Use {@code Void} for visitors that do not need an
59 * additional parameter.
60 *
61 * @see AbstractTypeVisitor6
62 * @see AbstractTypeVisitor8
63 * @see AbstractTypeVisitor9
64 * @since 1.7
65 */
66 @SupportedSourceVersion(RELEASE_7)
67 public abstract class AbstractTypeVisitor7<R, P> extends AbstractTypeVisitor6<R, P> {
68 /**
69 * Constructor for concrete subclasses to call.
70 *
71 * @deprecated Release 7 is obsolete; update to a visitor for a newer
72 * release level.
73 */
74 @Deprecated
75 protected AbstractTypeVisitor7() {
76 super(); // Superclass constructor deprecated too
77 }
78
79 /**
80 * Visits a {@code UnionType} in a manner defined by a subclass.
81 *
82 * @param t {@inheritDoc}
83 * @param p {@inheritDoc}
84 * @return the result of the visit as defined by a subclass
85 */
86 @Override
87 public abstract R visitUnion(UnionType t, P p);
88 }
|
54 *
55 * @param <R> the return type of this visitor's methods. Use {@link
56 * Void} for visitors that do not need to return results.
57 * @param <P> the type of the additional parameter to this visitor's
58 * methods. Use {@code Void} for visitors that do not need an
59 * additional parameter.
60 *
61 * @see AbstractTypeVisitor6
62 * @see AbstractTypeVisitor8
63 * @see AbstractTypeVisitor9
64 * @since 1.7
65 */
66 @SupportedSourceVersion(RELEASE_7)
67 public abstract class AbstractTypeVisitor7<R, P> extends AbstractTypeVisitor6<R, P> {
68 /**
69 * Constructor for concrete subclasses to call.
70 *
71 * @deprecated Release 7 is obsolete; update to a visitor for a newer
72 * release level.
73 */
74 @Deprecated(since="12")
75 protected AbstractTypeVisitor7() {
76 super(); // Superclass constructor deprecated too
77 }
78
79 /**
80 * Visits a {@code UnionType} in a manner defined by a subclass.
81 *
82 * @param t {@inheritDoc}
83 * @param p {@inheritDoc}
84 * @return the result of the visit as defined by a subclass
85 */
86 @Override
87 public abstract R visitUnion(UnionType t, P p);
88 }
|