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.
|
Modifier and Type | Interface and 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 |
IPackageBinding
A package binding represents a named or unnamed package.
|
interface |
ITypeBinding
A type binding represents 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).
|
Modifier and Type | Method and Description |
---|---|
IBinding[] |
ASTParser.createBindings(IJavaElement[] elements,
IProgressMonitor monitor)
Creates bindings for a batch of Java elements.
|
IBinding[] |
ASTRequestor.createBindings(String[] bindingKeys)
Resolves bindings for the given binding keys.
|
IBinding[] |
FileASTRequestor.createBindings(String[] bindingKeys)
Resolves bindings for the given binding keys.
|
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 |
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 |
ImportDeclaration.resolveBinding()
Resolves and returns the binding for the package, type, field, or
method named in this import declaration.
|
IBinding |
MemberRef.resolveBinding()
Resolves and returns the binding for the entity referred to by
this member reference.
|
IBinding |
MethodRef.resolveBinding()
Resolves and returns the binding for the entity referred to by
this method reference.
|
IBinding |
Name.resolveBinding()
Resolves and returns the binding for the entity referred to by this name.
|
Modifier and Type | Method and 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.
|
Modifier and Type | Method and 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.
|
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.