Klasse MethodRef

java.lang.Object
org.aspectj.org.eclipse.jdt.core.dom.ASTNode
org.aspectj.org.eclipse.jdt.core.dom.MethodRef
Alle implementierten Schnittstellen:
IDocElement

public class MethodRef extends ASTNode implements IDocElement
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 } ] )
 
Seit:
3.0
Siehe auch:
  • Felddetails

  • Methodendetails

    • propertyDescriptors

      public static List propertyDescriptors(int apiLevel)
      Returns a list of structural property descriptors for this node type. Clients must not modify the result.
      Parameter:
      apiLevel - the API level; one of the AST.JLS* constants
      Gibt zurück:
      a list of property descriptors (element type: StructuralPropertyDescriptor)
      Seit:
      3.0
    • getQualifier

      public Name getQualifier()
      Returns the qualifier of this method reference, or null if there is none.
      Gibt zurück:
      the qualifier name node, or null if there is none
    • setQualifier

      public void setQualifier(Name name)
      Sets or clears the qualifier of this method reference.
      Parameter:
      name - the qualifier name node, or null if there is none
      Löst aus:
      IllegalArgumentException - if:
      • the node belongs to a different AST
      • the node already has a parent
    • getName

      public SimpleName getName()
      Returns the name of the referenced method or constructor.
      Gibt zurück:
      the method or constructor name node
    • setName

      public void setName(SimpleName name)
      Sets the name of the referenced method or constructor to the given name.
      Parameter:
      name - the new method or constructor name node
      Löst aus:
      IllegalArgumentException - if:
      • the name is null
      • the node belongs to a different AST
      • the node already has a parent
    • parameters

      public List parameters()
      Returns the live ordered list of method parameter references for this method reference.
      Gibt zurück:
      the live list of method parameter references (element type: MethodRefParameter)
    • resolveBinding

      public final IBinding resolveBinding()
      Resolves and returns the binding for the entity referred to by this method reference.

      Note that bindings are generally unavailable unless requested when the AST is being built.

      Gibt zurück:
      the binding, or null if the binding cannot be resolved