Interface PackageElement

All Superinterfaces:
AnnotatedElement, AnnotationMetadata, AnnotationMetadataDelegate, AnnotationMetadataProvider, AnnotationSource, Described, Element, MutableAnnotationMetadataDelegate<Element>, Named
All Known Implementing Classes:
GroovyPackageElement, JavaPackageElement

public interface PackageElement extends Element
Models a package in source code.
Since:
3.0.0
Author:
graemerocher
  • Field Details

    • DEFAULT_PACKAGE

      static final PackageElement DEFAULT_PACKAGE
      The default package.
  • Method Details

    • of

      Creates a new package element for the given name.
      Parameters:
      name - The package name
      Returns:
      The package element
    • isUnnamed

      default boolean isUnnamed()
      Is unnamed package?
      Returns:
      true if unnamed
      Since:
      4.0.0