Package com.microsoft.java.debug
Class BindingUtils
java.lang.Object
com.microsoft.java.debug.BindingUtils
Utility methods around working with JDT Bindings.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetMethodName(org.eclipse.jdt.core.dom.IMethodBinding binding, boolean fromKey) Return the method name from the binding using either theIBinding.getKey()orIMethodBinding.getName().static StringtoSignature(org.eclipse.jdt.core.dom.IMethodBinding binding) Returns the method signature of the method represented by the binding including the synthetic outer locals.
-
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 theIBinding.getKey()orIMethodBinding.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
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.
-