src/share/classes/com/sun/tools/apt/mirror/declaration/TypeDeclarationImpl.java

Print this page




  23  * have any questions.
  24  */
  25 
  26 package com.sun.tools.apt.mirror.declaration;
  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.DeclarationVisitor;
  35 import com.sun.tools.apt.mirror.AptEnv;
  36 import com.sun.tools.javac.code.*;
  37 import com.sun.tools.javac.code.Symbol.*;
  38 import com.sun.tools.javac.util.Name;
  39 
  40 /**
  41  * Implementation of TypeDeclaration
  42  */
  43 
  44 public class TypeDeclarationImpl extends MemberDeclarationImpl
  45                                  implements TypeDeclaration {
  46 
  47     public ClassSymbol sym;
  48 
  49 
  50     /**
  51      * "sym" should be completed before this constructor is called.
  52      */
  53      protected TypeDeclarationImpl(AptEnv env, ClassSymbol sym) {
  54         super(env, sym);
  55         this.sym = sym;
  56     }
  57 
  58 
  59     /**
  60      * Returns the type's name, with any type parameters (including those
  61      * of outer classes).  Type names are qualified.
  62      */
  63     public String toString() {




  23  * have any questions.
  24  */
  25 
  26 package com.sun.tools.apt.mirror.declaration;
  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.DeclarationVisitor;
  35 import com.sun.tools.apt.mirror.AptEnv;
  36 import com.sun.tools.javac.code.*;
  37 import com.sun.tools.javac.code.Symbol.*;
  38 import com.sun.tools.javac.util.Name;
  39 
  40 /**
  41  * Implementation of TypeDeclaration
  42  */
  43 @SuppressWarnings("deprecation")
  44 public class TypeDeclarationImpl extends MemberDeclarationImpl
  45                                  implements TypeDeclaration {
  46 
  47     public ClassSymbol sym;
  48 
  49 
  50     /**
  51      * "sym" should be completed before this constructor is called.
  52      */
  53      protected TypeDeclarationImpl(AptEnv env, ClassSymbol sym) {
  54         super(env, sym);
  55         this.sym = sym;
  56     }
  57 
  58 
  59     /**
  60      * Returns the type's name, with any type parameters (including those
  61      * of outer classes).  Type names are qualified.
  62      */
  63     public String toString() {