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

Print this page




  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.declaration;
  27 
  28 
  29 import java.util.ArrayList;
  30 import java.util.Collection;
  31 
  32 import com.sun.mirror.declaration.*;
  33 import com.sun.mirror.util.*;
  34 import com.sun.tools.apt.mirror.AptEnv;
  35 import com.sun.tools.javac.code.*;
  36 import com.sun.tools.javac.code.Symbol.*;
  37 
  38 
  39 /**
  40  * Implementation of PackageDeclaration.
  41  */
  42 
  43 public class PackageDeclarationImpl extends DeclarationImpl
  44                                     implements PackageDeclaration {
  45 
  46     private PackageSymbol sym;
  47 
  48 
  49     public PackageDeclarationImpl(AptEnv env, PackageSymbol sym) {
  50         super(env, sym);
  51         this.sym = sym;
  52     }
  53 
  54 
  55     /**
  56      * Returns the qualified name.
  57      */
  58     public String toString() {
  59         return getQualifiedName();
  60     }
  61 
  62     /**




  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.declaration;
  27 
  28 
  29 import java.util.ArrayList;
  30 import java.util.Collection;
  31 
  32 import com.sun.mirror.declaration.*;
  33 import com.sun.mirror.util.*;
  34 import com.sun.tools.apt.mirror.AptEnv;
  35 import com.sun.tools.javac.code.*;
  36 import com.sun.tools.javac.code.Symbol.*;
  37 
  38 
  39 /**
  40  * Implementation of PackageDeclaration.
  41  */
  42 @SuppressWarnings("deprecation")
  43 public class PackageDeclarationImpl extends DeclarationImpl
  44                                     implements PackageDeclaration {
  45 
  46     private PackageSymbol sym;
  47 
  48 
  49     public PackageDeclarationImpl(AptEnv env, PackageSymbol sym) {
  50         super(env, sym);
  51         this.sym = sym;
  52     }
  53 
  54 
  55     /**
  56      * Returns the qualified name.
  57      */
  58     public String toString() {
  59         return getQualifiedName();
  60     }
  61 
  62     /**