com.atlassian.clover.api.registry

## Interface HasPackages

- All Known Subinterfaces:
    ProjectInfo

      public interface HasPackages

  Represents a code entity containing packages or their equivalent (like C++ namespaces)

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `PackageInfo` | `findPackage(java.lang.String name)` Searches for a package with given name
    `java.util.List<? extends PackageInfo>` | `getAllPackages()` Returns list of all packages defined in the project (including nested packages).

- - ### Method Detail

    - #### getAllPackages

          @NotNull
          java.util.List<? extends PackageInfo> getAllPackages()

      Returns list of all packages defined in the project (including nested packages). It may also contain the default package - see `PackageInfo.DEFAULT_PACKAGE_NAME`.
      Returns:
        List<? extends PackageInfo> list of packages or empty list if none

    - #### findPackage

          @Nullable
          PackageInfo findPackage(java.lang.String name)

      Searches for a package with given name
      Parameters:
        `name` - fully qualified package name
      Returns:
        PackageInfo package found or `null`