package org.eclipse.jdt.core; /* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ import org.eclipse.core.runtime.IProgressMonitor; /** * Represents either a source type in a compilation unit (either a top-level * type or a member type) or a binary type in a class file. *

* If a binary type cannot be parsed, its structure remains unknown. * Use IJavaElement.isStructureKnown to determine whether this * is the case. *

*

* The children are of type IMember, which includes IField, * IMethod, IInitializer and IType. * The children are listed in the order in which they appear in the source or class file. *

*

* This interface is not intended to be implemented by clients. *

*/ public interface IType extends IMember, IParent { /** * Creates and returns a field in this type with the * given contents. *

* Optionally, the new element can be positioned before the specified * sibling. If no sibling is specified, the element will be inserted * as the last field declaration in this type. * *

It is possible that a field with the same name already exists in this type. * The value of the force parameter effects the resolution of * such a conflict: