< prev index next >

src/java.compiler/share/classes/javax/lang/model/util/TypeKindVisitor8.java

Print this page




  77 public class TypeKindVisitor8<R, P> extends TypeKindVisitor7<R, P> {
  78     /**
  79      * Constructor for concrete subclasses to call; uses {@code null}
  80      * for the default value.
  81      */
  82     protected TypeKindVisitor8() {
  83         super(null);
  84     }
  85 
  86     /**
  87      * Constructor for concrete subclasses to call; uses the argument
  88      * for the default value.
  89      *
  90      * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
  91      */
  92     protected TypeKindVisitor8(R defaultValue) {
  93         super(defaultValue);
  94     }
  95 
  96     /**
  97      * This implementation visits an {@code IntersectionType} by calling
  98      * {@code defaultAction}.

  99      *
 100      * @param t  {@inheritDoc}
 101      * @param p  {@inheritDoc}
 102      * @return the result of {@code defaultAction}
 103      */
 104     @Override
 105     public R visitIntersection(IntersectionType t, P p) {
 106         return defaultAction(t, p);
 107     }
 108 }


  77 public class TypeKindVisitor8<R, P> extends TypeKindVisitor7<R, P> {
  78     /**
  79      * Constructor for concrete subclasses to call; uses {@code null}
  80      * for the default value.
  81      */
  82     protected TypeKindVisitor8() {
  83         super(null);
  84     }
  85 
  86     /**
  87      * Constructor for concrete subclasses to call; uses the argument
  88      * for the default value.
  89      *
  90      * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
  91      */
  92     protected TypeKindVisitor8(R defaultValue) {
  93         super(defaultValue);
  94     }
  95 
  96     /**
  97      * {@inheritDoc}
  98      *
  99      * @implSpec This implementation calls {@code defaultAction}.
 100      *
 101      * @param t  {@inheritDoc}
 102      * @param p  {@inheritDoc}
 103      * @return the result of {@code defaultAction}
 104      */
 105     @Override
 106     public R visitIntersection(IntersectionType t, P p) {
 107         return defaultAction(t, p);
 108     }
 109 }
< prev index next >