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

Packages that use IBinding
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.

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

Subinterfaces of IBinding in org.eclipse.jdt.core.dom
Modifier and Type
Interface
Description
`interface`
`IAnnotationBinding`
Represents a resolved annotation.
`interface`
`IMemberValuePairBinding`
Represents a resolved instance of an annotation's member value pair.
`interface`
`IMethodBinding`
A method binding represents a method or constructor of a class or interface.
`interface`
`IModuleBinding`
A module binding represents a module (added in JLS9 API).
`interface`
`IPackageBinding`
A package binding represents a named or unnamed package.
`interface`
`ITypeBinding`
A type binding represents a fully-resolved type.
`interface`
`IVariableBinding`
A variable binding represents either a field of a class or interface, or a local variable declaration (including formal parameters, local variables, and exception variables).
Methods in org.eclipse.jdt.core.dom that return IBinding
Modifier and Type
Method
Description
`IBinding[]`
ASTParser.`createBindings(IJavaElement[] elements, IProgressMonitor monitor)`
Creates bindings for a batch of Java elements.
`final IBinding[]`
ASTRequestor.`createBindings(String[] bindingKeys)`
Resolves bindings for the given binding keys.
`final IBinding[]`
FileASTRequestor.`createBindings(String[] bindingKeys)`
Resolves bindings for the given binding keys.
`IBinding`
IMethodBinding.`getDeclaringMember()`
If this method binding represents a lambda expression then: If the lambda expression is declared in the body of a method, answers the binding of that declaring method.
`IBinding`
ITypeBinding.`getDeclaringMember()`
If this type binding represents a local type, possibly an anonymous class, then: If the local type is declared in the body of a method, answers the binding of that declaring method.
`IBinding`
ImportDeclaration.`resolveBinding()`
Resolves and returns the binding for the package, type, field, or method named in this import declaration.
`final IBinding`
MemberRef.`resolveBinding()`
Resolves and returns the binding for the entity referred to by this member reference.
`final IBinding`
MethodRef.`resolveBinding()`
Resolves and returns the binding for the entity referred to by this method reference.
`final IBinding`
Name.`resolveBinding()`
Resolves and returns the binding for the entity referred to by this name.
Methods in org.eclipse.jdt.core.dom with parameters of type IBinding
Modifier and Type
Method
Description
`void`
ASTRequestor.`acceptBinding(String bindingKey, IBinding binding)`
Accepts a binding corresponding to the binding key.
`void`
FileASTRequestor.`acceptBinding(String bindingKey, IBinding binding)`
Accepts a binding corresponding to the binding key.
`ASTNode`
CompilationUnit.`findDeclaringNode(IBinding binding)`
Finds the corresponding AST node in the given compilation unit from which the given binding originated.
`boolean`
IBinding.`isEqualTo(IBinding binding)`
Returns whether this binding has the same key as that of the given binding.

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

Methods in org.eclipse.jdt.core.dom.rewrite with parameters of type IBinding
Modifier and Type
Method
Description
`String`
ImportRewrite.`addStaticImport(IBinding binding)`
Adds a new static import to the rewriter's record and returns a name - single member name if import is successful, else qualified name.
`String`
ImportRewrite.`addStaticImport(IBinding binding, ImportRewrite.ImportRewriteContext context)`
Adds a new static import to the rewriter's record and returns a name - single member name if import is successful, else qualified name.