# Uses of Interface
org.eclipse.jdt.core.dom.ITypeBinding

Packages that use ITypeBinding
Package
Description
org.eclipse.jdt.core.dom
The Java DOM/AST is the set of classes that model the source code of a Java program as a structured document.
org.eclipse.jdt.core.dom.rewrite
The Java DOM/AST rewrite is the set of classes that are used to make changes to an existing DOM/AST tree.
org.eclipse.jdt.core.util
Provides a set of tools and utilities for manipulating .class files and Java model elements.
org.eclipse.jdt.ui.actions
Application programming interfaces for Eclipse Java User Interface specific actions.
org.eclipse.jdt.ui.wizards
Application programming interfaces for interaction with the Eclipse Java User Interface wizards.

## Uses of ITypeBinding in org.eclipse.jdt.core.dom

Methods in org.eclipse.jdt.core.dom that return ITypeBinding
Modifier and Type
Method
Description
`ITypeBinding`
ITypeBinding.`createArrayType(int dimension)`
Answer an array type binding using the receiver and the given dimension.
`ITypeBinding`
IAnnotationBinding.`getAnnotationType()`
Returns the type of the annotation.
`ITypeBinding`
ITypeBinding.`getBound()`
Returns the bound of this wildcard type if it has one.
`ITypeBinding`
ITypeBinding.`getComponentType()`
Returns the binding representing the component type of this array type, or `null` if this is not an array type binding.
`ITypeBinding`
IMethodBinding.`getDeclaredReceiverType()`
Returns the type of this method's receiver or `null` if there is no receiver declared explicitly.
`ITypeBinding[]`
ITypeBinding.`getDeclaredTypes()`
Returns a list of type bindings representing all the types declared as members of this class, interface, or enum type.
`ITypeBinding`
IMethodBinding.`getDeclaringClass()`
Returns the type binding representing the class or interface that declares this method or constructor.
`ITypeBinding`
ITypeBinding.`getDeclaringClass()`
Returns the type binding representing the class, interface, or enum that declares this binding.
`ITypeBinding`
IVariableBinding.`getDeclaringClass()`
Returns the type binding representing the class or interface that declares this field.
`ITypeBinding`
ITypeBinding.`getElementType()`
Returns the binding representing the element type of this array type, or `null` if this is not an array type binding.
`ITypeBinding`
ITypeBinding.`getErasure()`
Returns the erasure of this type binding.
`ITypeBinding[]`
IMethodBinding.`getExceptionTypes()`
Returns a list of type bindings representing the types of the exceptions thrown by this method or constructor.
`ITypeBinding`
ITypeBinding.`getGenericTypeOfWildcardType()`
Returns the generic type associated with this wildcard type, if it has one.
`ITypeBinding[]`
IModuleBinding.`getImplementations(ITypeBinding service)`
Returns the implementations that implement the given service in this module.
`ITypeBinding[]`
ITypeBinding.`getInterfaces()`
Returns a list of type bindings representing the direct superinterfaces of the class, interface, or enum type represented by this type binding.
`ITypeBinding[]`
IMethodBinding.`getParameterTypes()`
Returns a list of type bindings representing the formal parameter types, in declaration order, of this method or constructor.
`ITypeBinding`
IMethodBinding.`getReturnType()`
Returns the binding for the return type of this method.
`ITypeBinding[]`
IModuleBinding.`getServices()`
Returns the services provided by this module.
`ITypeBinding`
ITypeBinding.`getSuperclass()`
Returns the type binding for the superclass of the type represented by this class binding.
`ITypeBinding`
IVariableBinding.`getType()`
Returns the binding for the type of this field or local variable.
`ITypeBinding[]`
IMethodBinding.`getTypeArguments()`
Returns the type arguments of this generic method instance, or the empty list for other method bindings.
`ITypeBinding[]`
ITypeBinding.`getTypeArguments()`
Returns the type arguments of this generic type instance, or the empty list for other type bindings.
`ITypeBinding[]`
ITypeBinding.`getTypeBounds()`
Returns the upper type bounds of this type variable, wildcard, capture, or intersectionType.
`ITypeBinding`
ITypeBinding.`getTypeDeclaration()`
Returns the binding for the type declaration corresponding to this type binding.
`ITypeBinding[]`
IMethodBinding.`getTypeParameters()`
Returns the type parameters of this method or constructor binding.
`ITypeBinding[]`
ITypeBinding.`getTypeParameters()`
Returns the type parameters of this class or interface type binding.
`ITypeBinding[]`
IModuleBinding.`getUses()`
Returns the services used by this module.
`ITypeBinding`
ITypeBinding.`getWildcard()`
Returns the corresponding wildcard binding of this capture binding.
`final ITypeBinding`
AbstractTypeDeclaration.`resolveBinding()`
Resolves and returns the binding for the type declared in this type declaration.
`ITypeBinding`
AnonymousClassDeclaration.`resolveBinding()`
Resolves and returns the binding for the anonymous class declared in this declaration.
`final ITypeBinding`
Type.`resolveBinding()`
Resolves and returns the binding for this type.
`ITypeBinding`
TypeDeclarationStatement.`resolveBinding()`
Resolves and returns the binding for the class or interface declared in this type declaration statement.
`final ITypeBinding`
TypeParameter.`resolveBinding()`
Resolves and returns the binding for this type parameter.
`final ITypeBinding`
Expression.`resolveTypeBinding()`
Resolves and returns the binding for the type of this expression.
`ITypeBinding`
AST.`resolveWellKnownType(String name)`
Returns the type binding for a "well known" type.
Methods in org.eclipse.jdt.core.dom with parameters of type ITypeBinding
Modifier and Type
Method
Description
`ITypeBinding[]`
IModuleBinding.`getImplementations(ITypeBinding service)`
Returns the implementations that implement the given service in this module.
`boolean`
ITypeBinding.`isAssignmentCompatible(ITypeBinding variableType)`
Returns whether an expression of this type can be assigned to a variable of the given type, as specified in section 5.2 of The Java Language Specification, Third Edition (JLS3).
`boolean`
ITypeBinding.`isCastCompatible(ITypeBinding type)`
Returns whether this type is cast compatible with the given type, as specified in section 5.5 of The Java Language Specification, Third Edition (JLS3).
`boolean`
ITypeBinding.`isSubTypeCompatible(ITypeBinding type)`
Returns whether this type is subtype compatible with the given type, as specified in section 4.10 of The Java Language Specification, Third Edition (JLS3).

## Uses of ITypeBinding in org.eclipse.jdt.core.dom.rewrite

Methods in org.eclipse.jdt.core.dom.rewrite with parameters of type ITypeBinding
Modifier and Type
Method
Description
`String`
ImportRewrite.`addImport(ITypeBinding binding)`
Adds a new import to the rewriter's record and returns a type reference that can be used in the code.
`Type`
ImportRewrite.`addImport(ITypeBinding binding, AST ast)`
Adds a new import to the rewriter's record and returns a `Type` that can be used in the code.
`Type`
ImportRewrite.`addImport(ITypeBinding binding, AST ast, ImportRewrite.ImportRewriteContext context)`
Adds a new import to the rewriter's record and returns a `Type` that can be used in the code.
`Type`
ImportRewrite.`addImport(ITypeBinding binding, AST ast, ImportRewrite.ImportRewriteContext context, ImportRewrite.TypeLocation location)`
Adds a new import to the rewriter's record and returns a `Type` that can be used in the code.
`String`
ImportRewrite.`addImport(ITypeBinding binding, ImportRewrite.ImportRewriteContext context)`
Adds a new import to the rewriter's record and returns a type reference that can be used in the code.
`IAnnotationBinding[]`
ImportRewrite.ImportRewriteContext.`removeRedundantTypeAnnotations(IAnnotationBinding[] annotations, ImportRewrite.TypeLocation location, ITypeBinding type)`
This method can be overridden in subclasses to remove annotations that are redundant, e.g. because of NonNullByDefault.

## Uses of ITypeBinding in org.eclipse.jdt.core.util

Methods in org.eclipse.jdt.core.util with parameters of type ITypeBinding
Modifier and Type
Method
Description
`static String`
ExternalAnnotationUtil.`extractGenericTypeParametersSignature(ITypeBinding type)`
Answer the signature of all type parameters of this type in class file format.
`static String`
ExternalAnnotationUtil.`extractGenericTypeSignature(ITypeBinding type)`
Answer the given types's signature in class file format.
`static org.eclipse.core.resources.IFile`
ExternalAnnotationUtil.`getAnnotationFile(IJavaProject project, ITypeBinding type, org.eclipse.core.runtime.IProgressMonitor monitor)`
Answer the external annotation file corresponding to the given type as seen from the given project.

## Uses of ITypeBinding in org.eclipse.jdt.ui.actions

Methods in org.eclipse.jdt.ui.actions with parameters of type ITypeBinding
Modifier and Type
Method
Description
`static org.eclipse.core.resources.IWorkspaceRunnable`
AddUnimplementedConstructorsAction.`createRunnable(CompilationUnit astRoot, ITypeBinding type, IMethodBinding[] constructorsToOverride, int insertPos, boolean createComments, int visibility, boolean omitSuper)`
Returns a runnable that creates the constructor stubs.
`static org.eclipse.core.resources.IWorkspaceRunnable`
OverrideMethodsAction.`createRunnable(CompilationUnit astRoot, ITypeBinding type, IMethodBinding[] methodToOverride, int insertPos, boolean createComments)`
Returns a runnable that creates the method stubs for overridden methods.

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

Methods in org.eclipse.jdt.ui.wizards with parameters of type ITypeBinding
Modifier and Type
Method
Description
`String`
NewTypeWizardPage.ImportsManager.`addImport(ITypeBinding typeBinding)`
Adds a new import declaration that is sorted in the existing imports.
`String`
NewTypeWizardPage.ImportsManager.`addImport(ITypeBinding typeBinding, int insertPosition)`
Adds a new import declaration that is sorted in the existing imports.
`void`
NewTypeWizardPage.`setSuperClass(ITypeBinding type, boolean canBeModified)`
Sets the super class name.
Method parameters in org.eclipse.jdt.ui.wizards with type arguments of type ITypeBinding
Modifier and Type
Method
Description
`void`
NewTypeWizardPage.`setSuperInterfacesList(List<ITypeBinding> interfaceBindings, boolean canBeModified)`
Sets the super interfaces.