# Uses of Interface
org.eclipse.jdt.core.IType

Packages that use IType
Package
Description
org.eclipse.jdt.core
The Java model is the set of classes that model the objects associated with creating, editing, and building a Java program.
org.eclipse.jdt.core.eval
Provides support for the evaluation of code snippets in a scrapbook or inside the debugger.
org.eclipse.jdt.core.refactoring.descriptors
Application programming interface to access Java refactorings provided by JDT.
org.eclipse.jdt.core.search
Provides support for searching the workspace Java elements that match a particular description.
org.eclipse.jdt.debug.ui.launchConfigurations
Provides an implementation launch configuration tabs for local and remote Java applications.
org.eclipse.jdt.junit
Application programming interfaces for interaction with the Eclipse Java development tools JUnit support.
org.eclipse.jdt.junit.wizards
Application programming interfaces to implement wizards to create new JUnit testcases.
org.eclipse.jdt.ui
Application programming interfaces for interaction with the Eclipse Java User Interface.
org.eclipse.jdt.ui.jarpackager
Provides classes and interfaces to generate a JAR file.
org.eclipse.jdt.ui.refactoring
Application programming interfaces for rename refactorings.
org.eclipse.jdt.ui.text.java
Application programming interfaces for interaction with the Eclipse Java User Interface.
org.eclipse.jdt.ui.wizards
Application programming interfaces for interaction with the Eclipse Java User Interface wizards.

## Uses of IType in org.eclipse.jdt.core

Methods in org.eclipse.jdt.core that return IType
Modifier and Type
Method
Description
`IType`
ICompilationUnit.`createType(String contents, IJavaElement sibling, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor)`
Creates and returns a type in this compilation unit with the given contents.
`IType`
IType.`createType(String contents, IJavaElement sibling, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor)`
Creates and returns a type in this type with the given contents.
`IType`
ITypeRoot.`findPrimaryType()`
Finds the primary type of this Java type root (that is, the type with the same name as the compilation unit, or the type of a class file), or `null` if no such a type exists.
`IType`
IWorkingCopy.`findPrimaryType()`
Deprecated.
Use `ITypeRoot.findPrimaryType()` instead.
`IType`
IJavaProject.`findType(String fullyQualifiedName)`
Returns the first type (excluding secondary types) found following this project's classpath with the given fully qualified name or `null` if none is found.
`IType`
IJavaProject.`findType(String packageName, String typeQualifiedName)`
Returns the first type (excluding secondary types) found following this project's classpath with the given package name and type qualified name or `null` if none is found.
`IType`
IJavaProject.`findType(String packageName, String typeQualifiedName, org.eclipse.core.runtime.IProgressMonitor progressMonitor)`
Same functionality as `IJavaProject.findType(String, String)` but also looks for secondary types if the given name does not match a compilation unit name.
`IType`
IJavaProject.`findType(String packageName, String typeQualifiedName, WorkingCopyOwner owner)`
Returns the first type (excluding secondary types) found following this project's classpath with the given package name and type qualified name or `null` if none is found.
`IType`
IJavaProject.`findType(String packageName, String typeQualifiedName, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor progressMonitor)`
Same functionality as `IJavaProject.findType(String, String, WorkingCopyOwner)` but also looks for secondary types if the given name does not match a compilation unit name.
`IType`
IJavaProject.`findType(String fullyQualifiedName, org.eclipse.core.runtime.IProgressMonitor progressMonitor)`
Same functionality as `IJavaProject.findType(String)` but also looks for secondary types if the given name does not match a compilation unit name.
`IType`
IJavaProject.`findType(String fullyQualifiedName, WorkingCopyOwner owner)`
Returns the first type (excluding secondary types) found following this project's classpath with the given fully qualified name or `null` if none is found.
`IType`
IJavaProject.`findType(String fullyQualifiedName, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor progressMonitor)`
Same functionality as `IJavaProject.findType(String, WorkingCopyOwner)` but also looks for secondary types if the given name does not match a compilation unit name.
`IType[]`
ITypeHierarchy.`getAllClasses()`
Returns all classes in this type hierarchy's graph, in no particular order.
`IType[]`
ITypeHierarchy.`getAllInterfaces()`
Returns all interfaces in this type hierarchy's graph, in no particular order.
`IType[]`
ITypeHierarchy.`getAllSubtypes(IType type)`
Returns all resolved subtypes (direct and indirect) of the given type, in no particular order, limited to the types in this type hierarchy's graph.
`IType[]`
ITypeHierarchy.`getAllSuperclasses(IType type)`
Returns all resolved superclasses of the given class, in bottom-up order.
`IType[]`
ITypeHierarchy.`getAllSuperInterfaces(IType type)`
Returns all resolved superinterfaces (direct and indirect) of the given type.
`IType[]`
ITypeHierarchy.`getAllSupertypes(IType type)`
Returns all resolved supertypes of the given type, in bottom-up order.
`IType[]`
ICompilationUnit.`getAllTypes()`
Returns all types declared in this compilation unit in the order in which they appear in the source.
`IType[]`
ITypeHierarchy.`getAllTypes()`
Returns all types in this type hierarchy's graph, in no particular order.
`IType`
IMember.`getDeclaringType()`
Returns the type in which this member is declared, or `null` if this member is not declared in a type (for example, a top-level type).
`IType[]`
ITypeHierarchy.`getExtendingInterfaces(IType type)`
Returns all interfaces resolved to extend the given interface, in no particular order, limited to the interfaces in this hierarchy's graph.
`IType[]`
ITypeHierarchy.`getImplementingClasses(IType type)`
Returns all classes resolved to implement the given interface, in no particular order, limited to the classes in this type hierarchy's graph.
`IType[]`
ITypeHierarchy.`getRootClasses()`
Returns all classes in the graph which have no resolved superclass, in no particular order.
`IType[]`
ITypeHierarchy.`getRootInterfaces()`
Returns all interfaces in the graph which have no resolved superinterfaces, in no particular order.
`IType[]`
ITypeHierarchy.`getSubclasses(IType type)`
Returns the direct resolved subclasses of the given class, in no particular order, limited to the classes in this type hierarchy's graph.
`IType[]`
ITypeHierarchy.`getSubtypes(IType type)`
Returns the direct resolved subtypes of the given type, in no particular order, limited to the types in this type hierarchy's graph.
`IType`
ITypeHierarchy.`getSuperclass(IType type)`
Returns the resolved superclass of the given class, or `null` if the given class has no superclass, the superclass could not be resolved, or if the given type is an interface.
`IType[]`
ITypeHierarchy.`getSuperInterfaces(IType type)`
Returns the direct resolved interfaces that the given type implements or extends, in no particular order, limited to the interfaces in this type hierarchy's graph.
`IType[]`
ITypeHierarchy.`getSupertypes(IType type)`
Returns the resolved supertypes of the given type, in no particular order, limited to the types in this type hierarchy's graph.
`IType`
IClassFile.`getType()`
Deprecated.
should only be used as `IOrdinaryClassFile.getType()`.
`IType`
ICompilationUnit.`getType(String name)`
Returns the top-level type declared in this compilation unit with the given simple type name.
`IType`
IMember.`getType(String name, int occurrenceCount)`
Returns the local or anonymous type declared in this source member with the given simple name and/or with the specified position relative to the order they are defined in the source.
`IType`
IOrdinaryClassFile.`getType()`
Returns the type contained in this class file.
`IType`
IType.`getType(String name)`
Returns the member type declared in this type with the given simple name.
`IType`
ITypeHierarchy.`getType()`
Returns the type this hierarchy was computed for.
`IType[]`
ICompilationUnit.`getTypes()`
Returns the top-level types declared in this compilation unit in the order in which they appear in the source.
`IType[]`
IType.`getTypes()`
Returns the immediate member types declared by this type.
Methods in org.eclipse.jdt.core with parameters of type IType
Modifier and Type
Method
Description
`boolean`
ITypeHierarchy.`contains(IType type)`
Returns whether the given type is part of this hierarchy.
`IType[]`
ITypeHierarchy.`getAllSubtypes(IType type)`
Returns all resolved subtypes (direct and indirect) of the given type, in no particular order, limited to the types in this type hierarchy's graph.
`IType[]`
ITypeHierarchy.`getAllSuperclasses(IType type)`
Returns all resolved superclasses of the given class, in bottom-up order.
`IType[]`
ITypeHierarchy.`getAllSuperInterfaces(IType type)`
Returns all resolved superinterfaces (direct and indirect) of the given type.
`IType[]`
ITypeHierarchy.`getAllSupertypes(IType type)`
Returns all resolved supertypes of the given type, in bottom-up order.
`int`
ITypeHierarchy.`getCachedFlags(IType type)`
Return the flags associated with the given type (would be equivalent to `IMember.getFlags()`), or `-1` if this information wasn't cached on the hierarchy during its computation.
`IType[]`
ITypeHierarchy.`getExtendingInterfaces(IType type)`
Returns all interfaces resolved to extend the given interface, in no particular order, limited to the interfaces in this hierarchy's graph.
`IType[]`
ITypeHierarchy.`getImplementingClasses(IType type)`
Returns all classes resolved to implement the given interface, in no particular order, limited to the classes in this type hierarchy's graph.
`IType[]`
ITypeHierarchy.`getSubclasses(IType type)`
Returns the direct resolved subclasses of the given class, in no particular order, limited to the classes in this type hierarchy's graph.
`IType[]`
ITypeHierarchy.`getSubtypes(IType type)`
Returns the direct resolved subtypes of the given type, in no particular order, limited to the types in this type hierarchy's graph.
`IType`
ITypeHierarchy.`getSuperclass(IType type)`
Returns the resolved superclass of the given class, or `null` if the given class has no superclass, the superclass could not be resolved, or if the given type is an interface.
`IType[]`
ITypeHierarchy.`getSuperInterfaces(IType type)`
Returns the direct resolved interfaces that the given type implements or extends, in no particular order, limited to the interfaces in this type hierarchy's graph.
`IType[]`
ITypeHierarchy.`getSupertypes(IType type)`
Returns the resolved supertypes of the given type, in no particular order, limited to the types in this type hierarchy's graph.
`ITypeHierarchy`
IJavaProject.`newTypeHierarchy(IType type, IRegion region, org.eclipse.core.runtime.IProgressMonitor monitor)`
Creates and returns a type hierarchy for the given type considering subtypes in the specified region.
`ITypeHierarchy`
IJavaProject.`newTypeHierarchy(IType type, IRegion region, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor)`
Creates and returns a type hierarchy for the given type considering subtypes in the specified region and considering types in the working copies with the given owner.

## Uses of IType in org.eclipse.jdt.core.eval

Methods in org.eclipse.jdt.core.eval with parameters of type IType
Modifier and Type
Method
Description
`void`
IEvaluationContext.`evaluateCodeSnippet(String codeSnippet, String[] localVariableTypeNames, String[] localVariableNames, int[] localVariableModifiers, IType declaringType, boolean isStatic, boolean isConstructorCall, ICodeSnippetRequestor requestor, org.eclipse.core.runtime.IProgressMonitor progressMonitor)`
Evaluates the given code snippet in the context of a suspended thread.

## Uses of IType in org.eclipse.jdt.core.refactoring.descriptors

Methods in org.eclipse.jdt.core.refactoring.descriptors that return IType
Modifier and Type
Method
Description
`IType`
ExtractClassDescriptor.`getType()`
Returns the type from which the fields are moved
Methods in org.eclipse.jdt.core.refactoring.descriptors with parameters of type IType
Modifier and Type
Method
Description
`static ExtractClassDescriptor.Field[]`
ExtractClassDescriptor.`getFields(IType type)`
Creates `ExtractClassDescriptor.Field` objects for all instance fields of the type
`void`
MoveStaticMembersDescriptor.`setDestinationType(IType type)`
Sets the destination type of the move operation.
`void`
UseSupertypeDescriptor.`setSubtype(IType type)`
Sets the subtype of the refactoring.
`void`
UseSupertypeDescriptor.`setSupertype(IType type)`
Sets the supertype of the refactoring.
`void`
ExtractClassDescriptor.`setType(IType type)`
Sets the type to extract class from

## Uses of IType in org.eclipse.jdt.core.search

Methods in org.eclipse.jdt.core.search that return IType
Modifier and Type
Method
Description
`abstract IType`
TypeNameMatch.`getType()`
Returns a java model type handle.
Methods in org.eclipse.jdt.core.search with parameters of type IType
Modifier and Type
Method
Description
`static IJavaSearchScope`
SearchEngine.`createHierarchyScope(IType type)`
Returns a Java search scope limited to the hierarchy of the given type.
`static IJavaSearchScope`
SearchEngine.`createHierarchyScope(IType type, WorkingCopyOwner owner)`
Returns a Java search scope limited to the hierarchy of the given type.
`static IJavaSearchScope`
SearchEngine.`createStrictHierarchyScope(IJavaProject project, IType type, boolean onlySubtypes, boolean includeFocusType, WorkingCopyOwner owner)`
Returns a Java search scope limited to the hierarchy of the given type and to a given project.
`static TypeNameMatch`
SearchEngine.`createTypeNameMatch(IType type, int modifiers)`
Create a type name match on a given type with specific modifiers.

## Uses of IType in org.eclipse.jdt.debug.ui.launchConfigurations

Methods in org.eclipse.jdt.debug.ui.launchConfigurations that return IType
Modifier and Type
Method
Description
`protected IType`
JavaLaunchShortcut.`chooseType(IType[] types, String title)`
Prompts the user to select a type from the given types.
`protected IType[]`
JavaAppletLaunchShortcut.`findTypes(Object[] elements, org.eclipse.jface.operation.IRunnableContext context)`
`protected IType[]`
JavaApplicationLaunchShortcut.`findTypes(Object[] elements, org.eclipse.jface.operation.IRunnableContext context)`
`protected abstract IType[]`
JavaLaunchShortcut.`findTypes(Object[] elements, org.eclipse.jface.operation.IRunnableContext context)`
Finds and returns the types in the given collection of elements that can be launched.
Methods in org.eclipse.jdt.debug.ui.launchConfigurations with parameters of type IType
Modifier and Type
Method
Description
`protected IType`
JavaLaunchShortcut.`chooseType(IType[] types, String title)`
Prompts the user to select a type from the given types.
`protected org.eclipse.debug.core.ILaunchConfiguration`
JavaAppletLaunchShortcut.`createConfiguration(IType type)`
`protected org.eclipse.debug.core.ILaunchConfiguration`
JavaApplicationLaunchShortcut.`createConfiguration(IType type)`
`protected abstract org.eclipse.debug.core.ILaunchConfiguration`
JavaLaunchShortcut.`createConfiguration(IType type)`
Creates and returns a new configuration based on the specified type.
`protected org.eclipse.debug.core.ILaunchConfiguration`
JavaLaunchShortcut.`findLaunchConfiguration(IType type, org.eclipse.debug.core.ILaunchConfigurationType configType)`
Finds and returns an existing configuration to re-launch for the given type, or `null` if there is no existing configuration.
`protected void`
JavaLaunchShortcut.`launch(IType type, String mode)`
Launches the given type in the specified mode.

## Uses of IType in org.eclipse.jdt.junit

Methods in org.eclipse.jdt.junit that return IType
Modifier and Type
Method
Description
`static IType[]`
JUnitCore.`findTestTypes(IJavaElement container, org.eclipse.core.runtime.IProgressMonitor monitor)`
Finds types that contain JUnit tests in the given container.

## Uses of IType in org.eclipse.jdt.junit.wizards

Methods in org.eclipse.jdt.junit.wizards that return IType
Modifier and Type
Method
Description
`IType`
NewTestCaseWizardPageOne.`getClassUnderTest()`
Returns the class to be tested.
Methods in org.eclipse.jdt.junit.wizards with parameters of type IType
Modifier and Type
Method
Description
`protected void`
NewTestCaseWizardPageOne.`createTypeMembers(IType type, NewTypeWizardPage.ImportsManager imports, org.eclipse.core.runtime.IProgressMonitor monitor)`
`protected void`
NewTestSuiteWizardPage.`createTypeMembers(IType type, NewTypeWizardPage.ImportsManager imports, org.eclipse.core.runtime.IProgressMonitor monitor)`
`void`
NewTestCaseWizardPageTwo.`setClassUnderTest(IType classUnderTest)`
Sets the class under test.

## Uses of IType in org.eclipse.jdt.ui

Methods in org.eclipse.jdt.ui that return IType
Modifier and Type
Method
Description
`IType`
ITypeHierarchyViewPart.`getInput()`
Deprecated.
use getInputElement instead
Methods in org.eclipse.jdt.ui with parameters of type IType
Modifier and Type
Method
Description
`protected int`
OverrideIndicatorLabelDecorator.`findInHierarchy(IType type, ITypeHierarchy hierarchy, String name, String[] paramTypes)`
Deprecated.
Not used anymore.
`static void`
JavaElementLabels.`getTypeLabel(IType type, long flags, StringBuffer buf)`
Appends the label for a type to a `StringBuffer`.
`static void`
JavaElementLabels.`getTypeLabel(IType type, long flags, org.eclipse.jface.viewers.StyledString result)`
Appends the label for a type to a `StyledString`.
`void`
ITypeHierarchyViewPart.`setInput(IType type)`
Deprecated.
use setInputElement instead

## Uses of IType in org.eclipse.jdt.ui.jarpackager

Methods in org.eclipse.jdt.ui.jarpackager that return IType
Modifier and Type
Method
Description
`IType`
JarPackageData.`getManifestMainClass()`
Gets the manifest's main class.
Methods in org.eclipse.jdt.ui.jarpackager with parameters of type IType
Modifier and Type
Method
Description
`void`
JarPackageData.`setManifestMainClass(IType manifestMainClass)`
Set the manifest's main class.

## Uses of IType in org.eclipse.jdt.ui.refactoring

Methods in org.eclipse.jdt.ui.refactoring with parameters of type IType
Modifier and Type
Method
Description
`static RenameSupport`
RenameSupport.`create(IType type, String newName, int flags)`
Creates a new rename support for the given `IType`.

## Uses of IType in org.eclipse.jdt.ui.text.java

Methods in org.eclipse.jdt.ui.text.java that return IType
Modifier and Type
Method
Description
`IType`
JavaContentAssistInvocationContext.`getExpectedType()`
Returns the expected type if any, `null` otherwise.

## Uses of IType in org.eclipse.jdt.ui.wizards

Methods in org.eclipse.jdt.ui.wizards that return IType
Modifier and Type
Method
Description
`protected IType`
NewTypeWizardPage.`chooseEnclosingType()`
Opens a selection dialog that allows to select an enclosing type.
`protected IType`
NewTypeWizardPage.`chooseSuperClass()`
Opens a selection dialog that allows to select a super class.
`IType`
NewTypeWizardPage.`getCreatedType()`
Returns the created type or `null` is the type has not been created yet.
`IType`
NewTypeWizardPage.`getEnclosingType()`
Returns the enclosing type corresponding to the current input.
Methods in org.eclipse.jdt.ui.wizards with parameters of type IType
Modifier and Type
Method
Description
`boolean`
NewTypeWizardPage.`addSuperInterface(String superInterface, IType type)`
Adds a super interface to the end of the list and selects it if it is not in the list yet.
`protected IMethod[]`
NewTypeWizardPage.`createInheritedMethods(IType type, boolean doConstructors, boolean doUnimplementedMethods, NewTypeWizardPage.ImportsManager imports, org.eclipse.core.runtime.IProgressMonitor monitor)`
Creates the bodies of all unimplemented methods and constructors and adds them to the type.
`protected IMethod`
NewTypeWizardPage.`createMainMethod(IType type, NewTypeWizardPage.ImportsManager imports)`
Creates the stub for 'public static void main(String[] args)' method
`protected void`
NewAnnotationWizardPage.`createTypeMembers(IType newType, NewTypeWizardPage.ImportsManager imports, org.eclipse.core.runtime.IProgressMonitor monitor)`
`protected void`
NewClassWizardPage.`createTypeMembers(IType type, NewTypeWizardPage.ImportsManager imports, org.eclipse.core.runtime.IProgressMonitor monitor)`
`protected void`
NewRecordWizardPage.`createTypeMembers(IType type, NewTypeWizardPage.ImportsManager imports, org.eclipse.core.runtime.IProgressMonitor monitor)`
`protected void`
NewTypeWizardPage.`createTypeMembers(IType newType, NewTypeWizardPage.ImportsManager imports, org.eclipse.core.runtime.IProgressMonitor monitor)`
Hook method that gets called from `createType` to support adding of unanticipated methods, fields, and inner types to the created type.
`void`
NewTypeWizardPage.`setEnclosingType(IType type, boolean canBeModified)`
Sets the enclosing type.