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

Print this page




  23  * have any questions.
  24  */
  25 
  26 package com.sun.tools.apt.mirror.type;
  27 
  28 
  29 import java.util.Collection;
  30 import java.util.ArrayList;
  31 
  32 import com.sun.mirror.declaration.*;
  33 import com.sun.mirror.type.*;
  34 import com.sun.mirror.util.TypeVisitor;
  35 import com.sun.tools.apt.mirror.AptEnv;
  36 import com.sun.tools.javac.code.Symbol.TypeSymbol;
  37 import com.sun.tools.javac.code.Type;
  38 
  39 
  40 /**
  41  * Implementation of TypeVariable
  42  */
  43 
  44 public class TypeVariableImpl extends TypeMirrorImpl implements TypeVariable {
  45 
  46     protected Type.TypeVar type;
  47 
  48 
  49     TypeVariableImpl(AptEnv env, Type.TypeVar type) {
  50         super(env, type);
  51         this.type = type;
  52     }
  53 
  54 
  55     /**
  56      * Returns the simple name of this type variable.  Bounds are
  57      * not included.
  58      */
  59     public String toString() {
  60         return type.tsym.name.toString();
  61     }
  62 
  63     /**


  23  * have any questions.
  24  */
  25 
  26 package com.sun.tools.apt.mirror.type;
  27 
  28 
  29 import java.util.Collection;
  30 import java.util.ArrayList;
  31 
  32 import com.sun.mirror.declaration.*;
  33 import com.sun.mirror.type.*;
  34 import com.sun.mirror.util.TypeVisitor;
  35 import com.sun.tools.apt.mirror.AptEnv;
  36 import com.sun.tools.javac.code.Symbol.TypeSymbol;
  37 import com.sun.tools.javac.code.Type;
  38 
  39 
  40 /**
  41  * Implementation of TypeVariable
  42  */
  43 @SuppressWarnings("deprecation")
  44 public class TypeVariableImpl extends TypeMirrorImpl implements TypeVariable {
  45 
  46     protected Type.TypeVar type;
  47 
  48 
  49     TypeVariableImpl(AptEnv env, Type.TypeVar type) {
  50         super(env, type);
  51         this.type = type;
  52     }
  53 
  54 
  55     /**
  56      * Returns the simple name of this type variable.  Bounds are
  57      * not included.
  58      */
  59     public String toString() {
  60         return type.tsym.name.toString();
  61     }
  62 
  63     /**