Interface IPackageDeclaration

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IAnnotatable, IJavaElement, ISourceReference

public interface IPackageDeclaration extends IJavaElement, ISourceReference, IAnnotatable
Represents a package declaration in Java compilation unit.
Restriction:
This interface is not intended to be implemented by clients.
  • 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