Uses of Interface
org.eclipse.jdt.core.IType
Package
Description
The Java model is the set of classes that model the
objects associated with creating, editing, and building a Java program.
Provides support for the evaluation of code snippets
in a scrapbook or inside the debugger.
Application programming interface to access Java refactorings provided by JDT.
Provides support for searching the workspace Java
elements that match a particular description.
Provides an implementation launch configuration tabs for local and remote Java applications.
Application programming interfaces for interaction
with the Eclipse Java development tools JUnit support.
Application programming interfaces to implement wizards to create new JUnit testcases.
Application programming interfaces for interaction
with the Eclipse Java User Interface.
Provides classes and interfaces to generate a JAR file.
Application programming interfaces for rename refactorings.
Application programming interfaces for interaction
with the Eclipse Java User Interface.
Application programming interfaces for interaction
with the Eclipse Java User Interface wizards.
-
Uses of IType in org.eclipse.jdt.core
Modifier and TypeMethodDescriptionICompilationUnit.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.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.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), ornull
if no such a type exists.IWorkingCopy.findPrimaryType()
Deprecated.Returns the first type (excluding secondary types) found following this project's classpath with the given fully qualified name ornull
if none is found.Returns the first type (excluding secondary types) found following this project's classpath with the given package name and type qualified name ornull
if none is found.IJavaProject.findType
(String packageName, String typeQualifiedName, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Same functionality asIJavaProject.findType(String, String)
but also looks for secondary types if the given name does not match a compilation unit name.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 ornull
if none is found.IJavaProject.findType
(String packageName, String typeQualifiedName, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Same functionality asIJavaProject.findType(String, String, WorkingCopyOwner)
but also looks for secondary types if the given name does not match a compilation unit name.IJavaProject.findType
(String fullyQualifiedName, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Same functionality asIJavaProject.findType(String)
but also looks for secondary types if the given name does not match a compilation unit name.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 ornull
if none is found.IJavaProject.findType
(String fullyQualifiedName, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Same functionality asIJavaProject.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.IMember.getDeclaringType()
Returns the type in which this member is declared, ornull
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.ITypeHierarchy.getSuperclass
(IType type) Returns the resolved superclass of the given class, ornull
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.IClassFile.getType()
Deprecated.should only be used asIOrdinaryClassFile.getType()
.Returns the top-level type declared in this compilation unit with the given simple type name.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.IOrdinaryClassFile.getType()
Returns the type contained in this class file.Returns the member type declared in this type with the given simple name.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.Modifier and TypeMethodDescriptionboolean
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 toIMember.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.ITypeHierarchy.getSuperclass
(IType type) Returns the resolved superclass of the given class, ornull
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.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.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
Modifier and TypeMethodDescriptionvoid
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
Modifier and TypeMethodDescriptionExtractClassDescriptor.getType()
Returns the type from which the fields are movedModifier and TypeMethodDescriptionstatic ExtractClassDescriptor.Field[]
CreatesExtractClassDescriptor.Field
objects for all instance fields of the typevoid
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
Sets the type to extract class from -
Uses of IType in org.eclipse.jdt.core.search
Modifier and TypeMethodDescriptionabstract IType
TypeNameMatch.getType()
Returns a java model type handle.Modifier and TypeMethodDescriptionstatic 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
Modifier and TypeMethodDescriptionprotected 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.Modifier and TypeMethodDescriptionprotected 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, ornull
if there is no existing configuration.protected void
Launches the given type in the specified mode. -
Uses of IType in org.eclipse.jdt.junit
Modifier and TypeMethodDescriptionstatic 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
Modifier and TypeMethodDescriptionNewTestCaseWizardPageOne.getClassUnderTest()
Returns the class to be tested.Modifier and TypeMethodDescriptionprotected 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
Modifier and TypeMethodDescriptionITypeHierarchyViewPart.getInput()
Deprecated.use getInputElement insteadModifier and TypeMethodDescriptionprotected 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 aStringBuffer
.static void
JavaElementLabels.getTypeLabel
(IType type, long flags, org.eclipse.jface.viewers.StyledString result) Appends the label for a type to aStyledString
.void
Deprecated.use setInputElement instead -
Uses of IType in org.eclipse.jdt.ui.jarpackager
Modifier and TypeMethodDescriptionJarPackageData.getManifestMainClass()
Gets the manifest's main class.Modifier and TypeMethodDescriptionvoid
JarPackageData.setManifestMainClass
(IType manifestMainClass) Set the manifest's main class. -
Uses of IType in org.eclipse.jdt.ui.refactoring
Modifier and TypeMethodDescriptionstatic RenameSupport
Creates a new rename support for the givenIType
. -
Uses of IType in org.eclipse.jdt.ui.text.java
Modifier and TypeMethodDescriptionJavaContentAssistInvocationContext.getExpectedType()
Returns the expected type if any,null
otherwise. -
Uses of IType in org.eclipse.jdt.ui.wizards
Modifier and TypeMethodDescriptionprotected 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.NewTypeWizardPage.getCreatedType()
Returns the created type ornull
is the type has not been created yet.NewTypeWizardPage.getEnclosingType()
Returns the enclosing type corresponding to the current input.Modifier and TypeMethodDescriptionboolean
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)' methodprotected 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 fromcreateType
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.
ITypeRoot.findPrimaryType()
instead.