Uses of Interface
org.eclipse.jdt.core.dom.ITypeBinding
Package
Description
The Java DOM/AST is the set of classes that model the source code of a Java program
as a structured document.
The Java DOM/AST rewrite is the set of classes that are used to make changes to an existing DOM/AST tree.
Provides a set of tools and utilities for manipulating .class files and Java model elements.
Application programming interfaces for Eclipse Java User Interface specific
actions.
Application programming interfaces for interaction
with the Eclipse Java User Interface wizards.
-
Uses of ITypeBinding in org.eclipse.jdt.core.dom
Modifier and TypeMethodDescriptionITypeBinding.createArrayType
(int dimension) Answer an array type binding using the receiver and the given dimension.IAnnotationBinding.getAnnotationType()
Returns the type of the annotation.ITypeBinding.getBound()
Returns the bound of this wildcard type if it has one.ITypeBinding.getComponentType()
Returns the binding representing the component type of this array type, ornull
if this is not an array type binding.IMethodBinding.getDeclaredReceiverType()
Returns the type of this method's receiver ornull
if there is no receiver declared explicitly.ITypeBinding.getDeclaredTypes()
Returns a list of type bindings representing all the types declared as members of this class, interface, or enum type.IMethodBinding.getDeclaringClass()
Returns the type binding representing the class or interface that declares this method or constructor.ITypeBinding.getDeclaringClass()
Returns the type binding representing the class, interface, or enum that declares this binding.IVariableBinding.getDeclaringClass()
Returns the type binding representing the class or interface that declares this field.ITypeBinding.getElementType()
Returns the binding representing the element type of this array type, ornull
if this is not an array type binding.ITypeBinding.getErasure()
Returns the erasure of this type binding.IMethodBinding.getExceptionTypes()
Returns a list of type bindings representing the types of the exceptions thrown by this method or constructor.ITypeBinding.getGenericTypeOfWildcardType()
Returns the generic type associated with this wildcard type, if it has one.IModuleBinding.getImplementations
(ITypeBinding service) Returns the implementations that implement the given service in this module.ITypeBinding.getInterfaces()
Returns a list of type bindings representing the direct superinterfaces of the class, interface, or enum type represented by this type binding.IMethodBinding.getParameterTypes()
Returns a list of type bindings representing the formal parameter types, in declaration order, of this method or constructor.IMethodBinding.getReturnType()
Returns the binding for the return type of this method.IModuleBinding.getServices()
Returns the services provided by this module.ITypeBinding.getSuperclass()
Returns the type binding for the superclass of the type represented by this class binding.IVariableBinding.getType()
Returns the binding for the type of this field or local variable.IMethodBinding.getTypeArguments()
Returns the type arguments of this generic method instance, or the empty list for other method bindings.ITypeBinding.getTypeArguments()
Returns the type arguments of this generic type instance, or the empty list for other type bindings.ITypeBinding.getTypeBounds()
Returns the upper type bounds of this type variable, wildcard, capture, or intersectionType.ITypeBinding.getTypeDeclaration()
Returns the binding for the type declaration corresponding to this type binding.IMethodBinding.getTypeParameters()
Returns the type parameters of this method or constructor binding.ITypeBinding.getTypeParameters()
Returns the type parameters of this class or interface type binding.IModuleBinding.getUses()
Returns the services used by this module.ITypeBinding.getWildcard()
Returns the corresponding wildcard binding of this capture binding.ImplicitTypeDeclaration.internalResolveBinding()
final ITypeBinding
AbstractTypeDeclaration.resolveBinding()
Resolves and returns the binding for the type declared in this type declaration.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.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.AST.resolveWellKnownType
(String name) Returns the type binding for a "well known" type.Modifier and TypeMethodDescriptionIModuleBinding.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
Modifier and TypeMethodDescriptionImportRewrite.addImport
(ITypeBinding binding) Adds a new import to the rewriter's record and returns a type reference that can be used in the code.ImportRewrite.addImport
(ITypeBinding binding, AST ast) Adds a new import to the rewriter's record and returns aType
that can be used in the code.ImportRewrite.addImport
(ITypeBinding binding, AST ast, ImportRewrite.ImportRewriteContext context) Adds a new import to the rewriter's record and returns aType
that can be used in the code.ImportRewrite.addImport
(ITypeBinding binding, AST ast, ImportRewrite.ImportRewriteContext context, ImportRewrite.TypeLocation location) Adds a new import to the rewriter's record and returns aType
that can be used in the code.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.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
Modifier and TypeMethodDescriptionstatic 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
Modifier and TypeMethodDescriptionstatic 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
Modifier and TypeMethodDescriptionNewTypeWizardPage.ImportsManager.addImport
(ITypeBinding typeBinding) Adds a new import declaration that is sorted in the existing imports.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.Modifier and TypeMethodDescriptionvoid
NewTypeWizardPage.setSuperInterfacesList
(List<ITypeBinding> interfaceBindings, boolean canBeModified) Sets the super interfaces.