|
||||||||||
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.MethodRef
public class MethodRef
AST node for a method or constructor reference within a doc comment
(Javadoc
). The principal uses of these are in "@see" and "@link"
tag elements, for references to method and constructor members.
MethodRef: [ Name ] # Identifier ( [ MethodRefParameter | { , MethodRefParameter } ] )
Javadoc
Field Summary | |
---|---|
static ChildPropertyDescriptor |
NAME_PROPERTY
The "name" structural property of this node type. |
static ChildListPropertyDescriptor |
PARAMETERS_PROPERTY
The "parameters" 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 method or constructor. |
Name |
getQualifier()
Returns the qualifier of this method reference, or null if there is none. |
java.util.List |
parameters()
Returns the live ordered list of method parameter references for this method reference. |
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 method reference. |
void |
setName(SimpleName name)
Sets the name of the referenced method or constructor to the given name. |
void |
setQualifier(Name name)
Sets or clears the qualifier of this method 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
public static final ChildListPropertyDescriptor PARAMETERS_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 method or constructor name node
java.lang.IllegalArgumentException
- if:
null
public java.util.List parameters()
MethodRefParameter
)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 |