null
if the binding does not correspond to any node in this compilation unit. This method always returns null
if bindings were not requested when this AST was built. The following table indicates the expected node type for the various different kinds of bindings:
PackageDeclaration
TypeDeclaration
or a AnonymousClassDeclaration
(for anonymous classes)VariableDeclarationFragment
in a FieldDeclaration
SingleVariableDeclaration
, or a VariableDeclarationFragment
in a VariableDeclarationStatement
or VariableDeclarationExpression
MethodDeclaration
MethodDeclaration
AnnotationTypeDeclaration
AnnotationTypeMemberDeclaration
EnumDeclaration
EnumConstantDeclaration
TypeParameter
Annotation
MemberValuePair
, or null
if it represents a default value or a single member value Each call to {@link ASTParser#createAST(org.eclipse.core.runtime.IProgressMonitor)} with a request for bindingsgives rise to separate universe of binding objects. This method always returns null
when the binding object comes from a different AST. Use findDeclaringNode(binding.getKey())
when the binding comes from a different AST.
null
if the binding does not correspond to a node in this compilation unit or if bindings were not requested when this AST was built
@see #findDeclaringNode(String)
|
|