|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.apt.mirror.declaration.DeclarationImpl
com.sun.tools.apt.mirror.declaration.PackageDeclarationImpl
public class PackageDeclarationImpl
Implementation of PackageDeclaration.
| Field Summary | |
|---|---|
private java.util.Collection<TypeDeclaration> |
allTypes
|
private Symbol.PackageSymbol |
sym
|
| Fields inherited from class com.sun.tools.apt.mirror.declaration.DeclarationImpl |
|---|
env, identityFilter |
| Constructor Summary | |
|---|---|
PackageDeclarationImpl(AptEnv env,
Symbol.PackageSymbol sym)
|
|
| Method Summary | |
|---|---|
void |
accept(DeclarationVisitor v)
Applies a visitor to this declaration. |
private java.util.Collection<TypeDeclaration> |
getAllTypes()
Caches and returns all top-level type declarations in this package. |
java.util.Collection<AnnotationTypeDeclaration> |
getAnnotationTypes()
Returns the declarations of the top-level annotation types in this package. |
java.util.Collection<ClassDeclaration> |
getClasses()
Returns the declarations of the top-level classes in this package. |
java.util.Collection<EnumDeclaration> |
getEnums()
Returns the declarations of the top-level enum types in this package. |
java.util.Collection<InterfaceDeclaration> |
getInterfaces()
Returns the declarations of the top-level interfaces in this package. |
java.lang.String |
getQualifiedName()
Returns the fully qualified name of this package. |
java.lang.String |
toString()
Returns the qualified name. |
| Methods inherited from class com.sun.tools.apt.mirror.declaration.DeclarationImpl |
|---|
equals, getAnnotation, getAnnotation, getAnnotationMirrors, getDocComment, getMembers, getModifiers, getPosition, getSimpleName, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.mirror.declaration.Declaration |
|---|
equals, getAnnotation, getAnnotationMirrors, getDocComment, getModifiers, getPosition, getSimpleName |
| Field Detail |
|---|
private Symbol.PackageSymbol sym
private java.util.Collection<TypeDeclaration> allTypes
| Constructor Detail |
|---|
public PackageDeclarationImpl(AptEnv env,
Symbol.PackageSymbol sym)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getQualifiedName()
getQualifiedName in interface PackageDeclarationpublic java.util.Collection<ClassDeclaration> getClasses()
getClasses in interface PackageDeclarationDeclarationFilterpublic java.util.Collection<EnumDeclaration> getEnums()
getEnums in interface PackageDeclarationDeclarationFilterpublic java.util.Collection<InterfaceDeclaration> getInterfaces()
getInterfaces in interface PackageDeclarationDeclarationFilterpublic java.util.Collection<AnnotationTypeDeclaration> getAnnotationTypes()
getAnnotationTypes in interface PackageDeclarationDeclarationFilterpublic void accept(DeclarationVisitor v)
accept in interface Declarationaccept in class DeclarationImplv - the visitor operating on this declarationprivate java.util.Collection<TypeDeclaration> getAllTypes()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||