Class ResolvedSourceMethod

All Implemented Interfaces:
IAnnotatable, IJavaElement, IMember, IMethod, IParent, ISourceManipulation, ISourceReference, org.eclipse.core.runtime.IAdaptable
Direct Known Subclasses:
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.
  • Constructor Details

  • 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 SourceMethod
      Returns:
      the binding key for this method
      See Also:
      IBinding.getKey(), BindingKey, IMethod.isResolved()
    • 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 SourceMethod
      Returns:
      whether this method represents a resolved method.
    • toStringInfo

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

      public JavaElement unresolved()
      Overrides:
      unresolved in class JavaElement