src/share/classes/javax/lang/model/util/AbstractTypeVisitor7.java

Print this page




  50  * or portions of this visitor may be deprecated.
  51  *
  52  * @param <R> the return type of this visitor's methods.  Use {@link
  53  *            Void} for visitors that do not need to return results.
  54  * @param <P> the type of the additional parameter to this visitor's
  55  *            methods.  Use {@code Void} for visitors that do not need an
  56  *            additional parameter.
  57  *
  58  * @see AbstractTypeVisitor6
  59  * @since 1.7
  60  */
  61 public abstract class AbstractTypeVisitor7<R, P> extends AbstractTypeVisitor6<R, P> {
  62     /**
  63      * Constructor for concrete subclasses to call.
  64      */
  65     protected AbstractTypeVisitor7() {
  66         super();
  67     }
  68 
  69     /**
  70      * Visits a {@code DisjunctiveType} in a manner defined by a subclass.
  71      *
  72      * @param t  {@inheritDoc}
  73      * @param p  {@inheritDoc}
  74      * @return the result of the visit as defined by a subclass
  75      */
  76     public abstract R visitDisjunctive(DisjunctiveType t, P p);
  77 }


  50  * or portions of this visitor may be deprecated.
  51  *
  52  * @param <R> the return type of this visitor's methods.  Use {@link
  53  *            Void} for visitors that do not need to return results.
  54  * @param <P> the type of the additional parameter to this visitor's
  55  *            methods.  Use {@code Void} for visitors that do not need an
  56  *            additional parameter.
  57  *
  58  * @see AbstractTypeVisitor6
  59  * @since 1.7
  60  */
  61 public abstract class AbstractTypeVisitor7<R, P> extends AbstractTypeVisitor6<R, P> {
  62     /**
  63      * Constructor for concrete subclasses to call.
  64      */
  65     protected AbstractTypeVisitor7() {
  66         super();
  67     }
  68 
  69     /**
  70      * Visits a {@code UnionType} in a manner defined by a subclass.
  71      *
  72      * @param t  {@inheritDoc}
  73      * @param p  {@inheritDoc}
  74      * @return the result of the visit as defined by a subclass
  75      */
  76     public abstract R visitUnion(UnionType t, P p);
  77 }