Klasse ResolvedSourceMethod

Alle implementierten Schnittstellen:
IAnnotatable, IJavaElement, IMember, IMethod, IParent, ISourceManipulation, ISourceReference, org.eclipse.core.runtime.IAdaptable
Bekannte direkte Unterklassen:
AssistSourceMethod

public class ResolvedSourceMethod extends SourceMethod
Handle representing a source method that is resolved. The uniqueKey contains the genericSignature of the resolved method. Use BindingKey to decode it.
  • Konstruktordetails

  • Methodendetails

    • getKey

      public String getKey()
      Beschreibung aus Schnittstelle kopiert: IMethod
      Returns the binding key for this method only if the given method is resolved. A binding key is a key that uniquely identifies this method. It allows access to:
      • generic info for parameterized methods
      • the actual return type for references to Object.getClass()
      • the actual parameter types and return type for references to signature polymorphic methods from class MethodHandle

      If the given method is not resolved, the returned key is simply the java element's key.

      Angegeben von:
      getKey in Schnittstelle IMethod
      Setzt außer Kraft:
      getKey in Klasse SourceMethod
      Gibt zurück:
      the binding key for this method
      Siehe auch:
    • isResolved

      public boolean isResolved()
      Beschreibung aus Schnittstelle kopiert: IMethod
      Returns whether this method represents a resolved method. If a method is resolved, its key contains resolved information.
      Angegeben von:
      isResolved in Schnittstelle IMethod
      Setzt außer Kraft:
      isResolved in Klasse SourceMethod
      Gibt zurück:
      whether this method represents a resolved method.
    • toStringInfo

      protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo)
      Beschreibung aus Klasse kopiert: JavaElement
      Debugging purposes
      Setzt außer Kraft:
      toStringInfo in Klasse SourceMethod
      Parameter:
      showResolvedInfo - TODO
    • unresolved

      public JavaElement unresolved()
      Setzt außer Kraft:
      unresolved in Klasse JavaElement