apt-mirror-api/src/main/java/com/sun/mirror/util/DeclarationScanner.java
public void visitPackageDeclaration(PackageDeclaration d) {
		d.accept(pre);

		for (ClassDeclaration classDecl : d.getClasses()) {
			classDecl.accept(this);
		}

		for (InterfaceDeclaration interfaceDecl : d.getInterfaces()) {
			interfaceDecl.accept(this);
		}

		d.accept(post);
	}
public void visitPackageDeclaration(PackageDeclaration d) {
		d.accept(pre);

		for (ClassDeclaration classDecl : d.getClasses()) {
			classDecl.accept(this);
		}

		for (InterfaceDeclaration interfaceDecl : d.getInterfaces()) {
			interfaceDecl.accept(this);
		}

		d.accept(post);
	}
Visits a package declaration.

@param d the declaration to visit