src/share/classes/com/sun/tools/apt/mirror/type/WildcardTypeImpl.java

Print this page




  24  */
  25 
  26 package com.sun.tools.apt.mirror.type;
  27 
  28 
  29 import java.util.ArrayList;
  30 import java.util.Collection;
  31 import java.util.Collections;
  32 
  33 import com.sun.mirror.declaration.*;
  34 import com.sun.mirror.type.*;
  35 import com.sun.mirror.util.TypeVisitor;
  36 import com.sun.tools.apt.mirror.AptEnv;
  37 import com.sun.tools.javac.code.*;
  38 import com.sun.tools.javac.code.Symbol.*;
  39 
  40 
  41 /**
  42  * Implementation of WildcardType
  43  */
  44 
  45 public class WildcardTypeImpl extends TypeMirrorImpl implements WildcardType {
  46 
  47     protected Type.WildcardType type;
  48 
  49     WildcardTypeImpl(AptEnv env, Type.WildcardType type) {
  50         super(env, type);
  51         this.type = type;
  52     }
  53 
  54 
  55     /**
  56      * Returns the string form of a wildcard type, consisting of "?"
  57      * and any "extends" or "super" clause.
  58      * Delimiting brackets are not included.  Class names are qualified.
  59      */
  60     public String toString() {
  61         return toString(env, type);
  62     }
  63 
  64     /**




  24  */
  25 
  26 package com.sun.tools.apt.mirror.type;
  27 
  28 
  29 import java.util.ArrayList;
  30 import java.util.Collection;
  31 import java.util.Collections;
  32 
  33 import com.sun.mirror.declaration.*;
  34 import com.sun.mirror.type.*;
  35 import com.sun.mirror.util.TypeVisitor;
  36 import com.sun.tools.apt.mirror.AptEnv;
  37 import com.sun.tools.javac.code.*;
  38 import com.sun.tools.javac.code.Symbol.*;
  39 
  40 
  41 /**
  42  * Implementation of WildcardType
  43  */
  44 @SuppressWarnings("deprecation")
  45 public class WildcardTypeImpl extends TypeMirrorImpl implements WildcardType {
  46 
  47     protected Type.WildcardType type;
  48 
  49     WildcardTypeImpl(AptEnv env, Type.WildcardType type) {
  50         super(env, type);
  51         this.type = type;
  52     }
  53 
  54 
  55     /**
  56      * Returns the string form of a wildcard type, consisting of "?"
  57      * and any "extends" or "super" clause.
  58      * Delimiting brackets are not included.  Class names are qualified.
  59      */
  60     public String toString() {
  61         return toString(env, type);
  62     }
  63 
  64     /**