Klasse ResolvedBinaryMethod

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

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

    • ResolvedBinaryMethod

      public ResolvedBinaryMethod(JavaElement parent, String name, String[] parameterTypes, String uniqueKey)
      The parameter type signatures are expected to be dot-based.
  • 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 BinaryMember
      Gibt zurück:
      the binding key for this method
      Siehe auch:
    • getKey

      public String getKey(boolean forceOpen) throws JavaModelException
      Setzt außer Kraft:
      getKey in Klasse BinaryMethod
      Löst aus:
      JavaModelException
      Siehe auch:
      • Ungültige Referenz
        org.eclipse.jdt.internal.compiler.lookup.Binding#computeUniqueKey()
    • 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 BinaryMethod
      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 BinaryMethod
      Parameter:
      showResolvedInfo - TODO
    • unresolved

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