Class BindingUtils

java.lang.Object
com.microsoft.java.debug.BindingUtils

public final class BindingUtils extends Object
Utility methods around working with JDT Bindings.
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getMethodName(org.eclipse.jdt.core.dom.IMethodBinding binding, boolean fromKey)
    Return the method name from the binding using either the IBinding.getKey() or IMethodBinding.getName().
    static String
    toSignature(org.eclipse.jdt.core.dom.IMethodBinding binding)
    Returns the method signature of the method represented by the binding including the synthetic outer locals.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getMethodName

      public static String getMethodName(org.eclipse.jdt.core.dom.IMethodBinding binding, boolean fromKey)
      Return the method name from the binding using either the IBinding.getKey() or IMethodBinding.getName(). The key can be used to find the name of a generated lambda method if the minding represents a lambda method.
      Parameters:
      binding - the binding to extract the name from.
      fromKey - use binging key to resolve the method name.
      Returns:
      the name of the method.
    • toSignature

      public static String toSignature(org.eclipse.jdt.core.dom.IMethodBinding binding)
      Returns the method signature of the method represented by the binding including the synthetic outer locals.
      Parameters:
      binding - the binding which the signature must be resolved for.
      Returns:
      the signature or null if the signature could not be resolved.