Interface IPackageDeclaration

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IAnnotatable, IJavaElement, ISourceReference
All Known Implementing Classes:
AssistPackageDeclaration, PackageDeclaration

public interface IPackageDeclaration extends IJavaElement, ISourceReference, IAnnotatable
Represents a package declaration in Java compilation unit.
  • Method Details

    • getElementName

      String getElementName()
      Returns the name of the package the statement refers to. This is a handle-only method.
      Specified by:
      getElementName in interface IJavaElement
      Returns:
      the name of the package the statement