Interface IImportContainer

  • All Superinterfaces:
    IAdaptable, IJavaElement, IParent, ISourceReference

    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.
    Restriction:
    This interface is not intended to be implemented by clients.
    • Method Detail

      • 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.
        Parameters:
        name - the given name
        Returns:
        the first import declaration in this import container with the given name