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

Print this page




  74 public class SimpleTypeVisitor7<R, P> extends SimpleTypeVisitor6<R, P> {
  75     /**
  76      * Constructor for concrete subclasses; uses {@code null} for the
  77      * default value.
  78      */
  79     protected SimpleTypeVisitor7(){
  80         super(null);
  81     }
  82 
  83     /**
  84      * Constructor for concrete subclasses; uses the argument for the
  85      * default value.
  86      *
  87      * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
  88      */
  89     protected SimpleTypeVisitor7(R defaultValue){
  90         super(defaultValue);
  91     }
  92 
  93     /**
  94      * This implementation visits a {@code DisjunctiveType} by calling
  95      * {@code defaultAction}.
  96      *
  97      * @param t  {@inheritDoc}
  98      * @param p  {@inheritDoc}
  99      * @return the result of {@code defaultAction}
 100      */
 101     @Override
 102     public R visitDisjunctive(DisjunctiveType t, P p) {
 103         return defaultAction(t, p);
 104     }
 105 }


  74 public class SimpleTypeVisitor7<R, P> extends SimpleTypeVisitor6<R, P> {
  75     /**
  76      * Constructor for concrete subclasses; uses {@code null} for the
  77      * default value.
  78      */
  79     protected SimpleTypeVisitor7(){
  80         super(null);
  81     }
  82 
  83     /**
  84      * Constructor for concrete subclasses; uses the argument for the
  85      * default value.
  86      *
  87      * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
  88      */
  89     protected SimpleTypeVisitor7(R defaultValue){
  90         super(defaultValue);
  91     }
  92 
  93     /**
  94      * This implementation visits a {@code UnionType} by calling
  95      * {@code defaultAction}.
  96      *
  97      * @param t  {@inheritDoc}
  98      * @param p  {@inheritDoc}
  99      * @return the result of {@code defaultAction}
 100      */
 101     @Override
 102     public R visitUnion(UnionType t, P p) {
 103         return defaultAction(t, p);
 104     }
 105 }