Schnittstelle IImportContainer

Alle Superschnittstellen:
org.eclipse.core.runtime.IAdaptable, IJavaElement, IParent, ISourceReference
Alle bekannten Implementierungsklassen:
AssistImportContainer, ImportContainer

public interface IImportContainer extends IJavaElement, IParent, ISourceReference
Represents an import container is a child of a Java compilation unit that contains all (and only) the import declarations. If a compilation unit has no import declarations, no import container will be present.
  • Methodendetails

    • getImport

      IImportDeclaration getImport(String name)
      Returns the first import declaration in this import container with the given name. This is a handle-only method. The import declaration may or may not exist.
      Parameter:
      name - the given name
      Gibt zurück:
      the first import declaration in this import container with the given name