Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.model
Interface IParent

All Known Subinterfaces:
IArchive, IArchiveContainer, IBinary, IBinaryContainer, IBinaryModule, ICContainer, ICModel, ICProject, IEnumeration, IIncludeReference, ILibraryReference, INamespace, ISourceRoot, IStructure, IStructureTemplate, ITranslationUnit, IWorkingCopy

public interface IParent

Common protocol for C elements that contain other C elements.


Method Summary
 ICElement[] getChildren()
          Returns the immediate children of this element.
 List getChildrenOfType(int type)
          returns the children of a certain type
 boolean hasChildren()
          Returns whether this element has one or more immediate children.
 

Method Detail

getChildren

ICElement[] getChildren()
                        throws CModelException
Returns the immediate children of this element. The children are in no particular order.

Throws:
CModelException - if this element does not exist or if an exception occurs while accessing its corresponding resource

getChildrenOfType

List getChildrenOfType(int type)
                       throws CModelException
returns the children of a certain type

Throws:
CModelException

hasChildren

boolean hasChildren()
Returns whether this element has one or more immediate children. This is a convenience method, and may be more efficient than testing whether getChildren is an empty array.

Throws:
CModelException - if this element does not exist or if an exception occurs while accessing its corresponding resource

Eclipse CDT
Pre-release 3.0

Copyright (c) IBM Corp. and others 2004. All Rights Reserved.