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

Print this page




  21  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  22  * CA 95054 USA or visit www.sun.com if you need additional information or
  23  * have any questions.
  24  */
  25 
  26 package com.sun.tools.apt.mirror.type;
  27 
  28 
  29 import java.util.Collection;
  30 
  31 import com.sun.mirror.declaration.TypeDeclaration;
  32 import com.sun.mirror.type.*;
  33 import com.sun.tools.apt.mirror.AptEnv;
  34 import com.sun.tools.javac.code.*;
  35 import com.sun.tools.javac.code.Symbol.ClassSymbol;
  36 
  37 
  38 /**
  39  * Implementation of DeclaredType
  40  */
  41 
  42 abstract class DeclaredTypeImpl extends TypeMirrorImpl
  43                                 implements DeclaredType {
  44 
  45     protected Type.ClassType type;
  46 
  47 
  48     protected DeclaredTypeImpl(AptEnv env, Type.ClassType type) {
  49         super(env, type);
  50         this.type = type;
  51     }
  52 
  53 
  54     /**
  55      * Returns a string representation of this declared type.
  56      * This includes the type's name and any actual type arguments.
  57      * Type names are qualified.
  58      */
  59     public String toString() {
  60         return toString(env, type);
  61     }




  21  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  22  * CA 95054 USA or visit www.sun.com if you need additional information or
  23  * have any questions.
  24  */
  25 
  26 package com.sun.tools.apt.mirror.type;
  27 
  28 
  29 import java.util.Collection;
  30 
  31 import com.sun.mirror.declaration.TypeDeclaration;
  32 import com.sun.mirror.type.*;
  33 import com.sun.tools.apt.mirror.AptEnv;
  34 import com.sun.tools.javac.code.*;
  35 import com.sun.tools.javac.code.Symbol.ClassSymbol;
  36 
  37 
  38 /**
  39  * Implementation of DeclaredType
  40  */
  41 @SuppressWarnings("deprecation")
  42 abstract class DeclaredTypeImpl extends TypeMirrorImpl
  43                                 implements DeclaredType {
  44 
  45     protected Type.ClassType type;
  46 
  47 
  48     protected DeclaredTypeImpl(AptEnv env, Type.ClassType type) {
  49         super(env, type);
  50         this.type = type;
  51     }
  52 
  53 
  54     /**
  55      * Returns a string representation of this declared type.
  56      * This includes the type's name and any actual type arguments.
  57      * Type names are qualified.
  58      */
  59     public String toString() {
  60         return toString(env, type);
  61     }