|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.core.dom.ASTNode
org.eclipse.jdt.core.dom.MemberRef
public class MemberRef
AST node for a member reference within a doc comment
(Javadoc
). The principal uses of these are in "@see" and "@link"
tag elements, for references to field members (and occasionally to method
and constructor members).
MemberRef: [ Name ] # Identifier
Javadoc
Field Summary | |
---|---|
static ChildPropertyDescriptor |
NAME_PROPERTY
The "name" structural property of this node type. |
static ChildPropertyDescriptor |
QUALIFIER_PROPERTY
The "qualifier" structural property of this node type. |
Method Summary | |
---|---|
SimpleName |
getName()
Returns the name of the referenced member. |
Name |
getQualifier()
Returns the qualifier of this member reference, or null if there is none. |
static java.util.List |
propertyDescriptors(int apiLevel)
Returns a list of structural property descriptors for this node type. |
IBinding |
resolveBinding()
Resolves and returns the binding for the entity referred to by this member reference. |
void |
setName(SimpleName name)
Sets the name of the referenced member to the given name. |
void |
setQualifier(Name name)
Sets or clears the qualifier of this member reference. |
Methods inherited from class org.eclipse.jdt.core.dom.ASTNode |
---|
accept, copySubtree, copySubtrees, delete, equals, getAST, getFlags, getLength, getLocationInParent, getNodeType, getParent, getProperty, getRoot, getStartPosition, getStructuralProperty, hashCode, nodeClassForType, properties, setFlags, setProperty, setSourceRange, setStructuralProperty, structuralPropertiesForType, subtreeBytes, subtreeMatch, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ChildPropertyDescriptor QUALIFIER_PROPERTY
public static final ChildPropertyDescriptor NAME_PROPERTY
Method Detail |
---|
public static java.util.List propertyDescriptors(int apiLevel)
apiLevel
- the API level; one of the AST.JLS* constants
StructuralPropertyDescriptor
)public Name getQualifier()
null
if there is none.
null
if there is nonepublic void setQualifier(Name name)
name
- the qualifier name node, or null
if
there is none
java.lang.IllegalArgumentException
- if:
public SimpleName getName()
public void setName(SimpleName name)
name
- the new member name node
java.lang.IllegalArgumentException
- if:
null
public final IBinding resolveBinding()
Note that bindings are generally unavailable unless requested when the AST is being built.
null
if the binding cannot be
resolved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |