Interface ICContainer

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IBufferChangedListener, ICElement, IOpenable, IParent
All Known Subinterfaces:
ISourceRoot

public interface ICContainer extends ICElement, IParent, IOpenable
A C folder resource.
Restriction:
This interface is not intended to be implemented by clients.
Restriction:
This interface is not intended to be extended by clients.
  • Method Details

    • getNonCResources

      Object[] getNonCResources() throws CModelException
      Returns an array of non-C resources directly contained in this project. It does not transitively answer non-C resources contained in folders; these would have to be explicitly iterated over.

      Non-C resources includes files, folders, projects not accounted for.

      Returns:
      an array of non-C resources directly contained in this project
      Throws:
      CModelException - if this element does not exist or if an exception occurs while accessing its corresponding resource
    • getTranslationUnits

      ITranslationUnit[] getTranslationUnits() throws CModelException
      Returns all of the translation units in this ccontainer.
      Returns:
      all of the translation units in this ccontainer
      Throws:
      CModelException - if this element does not exist or if an exception occurs while accessing its corresponding resource.
    • getTranslationUnit

      ITranslationUnit getTranslationUnit(String name)
      Returns the translation unit with the specified name in this container (for example, "foobar.c"). The name has to be a valid translation unit name. This is a handle-only operation. The celement may or may not exist.
      Parameters:
      name - the given name
      Returns:
      the translation unit with the specified name in this container
    • getBinaries

      IBinary[] getBinaries() throws CModelException
      Returns the all the binaries of this container.
      Throws:
      CModelException
    • getBinary

      IBinary getBinary(String name)
      Returns the binary for this name, it must be a valid binary. This is a handle-only operation. The container may or may not exist.
    • getArchives

      IArchive[] getArchives() throws CModelException
      Returns all the archives of this container.
      Throws:
      CModelException
    • getArchive

      IArchive getArchive(String name)
      This is a handle-only operation. The container may or may not exist.
    • getCContainers

      ICContainer[] getCContainers() throws CModelException
      Returns all the child containers of this container.
      Throws:
      CModelException
    • getCContainer

      ICContainer getCContainer(String name)
      Returns the container with the given name. An empty string indicates the default package. This is a handle-only operation. The celement may or may not exist.
      Parameters:
      name - the name of a nested container
      Returns:
      the container with the given name
    • getResource

      org.eclipse.core.resources.IContainer getResource()
      Returns the corresponding IContainer.
      Specified by:
      getResource in interface ICElement
      Returns:
      the corresponding resource, or null if none
      Since:
      5.9