Class ResolvedBinaryMethod

All Implemented Interfaces:
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.
  • Constructor Details

    • ResolvedBinaryMethod

      public ResolvedBinaryMethod(JavaElement parent, String name, String[] parameterTypes, String uniqueKey)
      The parameter type signatures are expected to be dot-based.
    • ResolvedBinaryMethod

      public ResolvedBinaryMethod(JavaElement parent, String name, String[] parameterTypes, String uniqueKey, int occurrenceCount)
  • Method Details

    • getKey

      public String getKey()
      Description copied from interface: 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.

      Specified by:
      getKey in interface IMethod
      Overrides:
      getKey in class BinaryMember
      Returns:
      the binding key for this method
      See Also:
    • getKey

      public String getKey(boolean forceOpen) throws JavaModelException
      Overrides:
      getKey in class BinaryMethod
      Throws:
      JavaModelException
      See Also:
      • invalid reference
        org.eclipse.jdt.internal.compiler.lookup.Binding#computeUniqueKey()
    • isResolved

      public boolean isResolved()
      Description copied from interface: IMethod
      Returns whether this method represents a resolved method. If a method is resolved, its key contains resolved information.
      Specified by:
      isResolved in interface IMethod
      Overrides:
      isResolved in class BinaryMethod
      Returns:
      whether this method represents a resolved method.
    • toStringInfo

      protected void toStringInfo(int tab, StringBuilder buffer, Object info, boolean showResolvedInfo)
      Description copied from class: JavaElement
      Debugging purposes
      Overrides:
      toStringInfo in class BinaryMethod
      Parameters:
      showResolvedInfo - TODO
    • unresolved

      public BinaryMethod unresolved()
      Overrides:
      unresolved in class JavaElement