private static String asString(IMethodBinding method) { StringBuffer result= new StringBuffer(); result.append(method.getDeclaringClass().getName()); result.append(':'); result.append(method.getName()); result.append('('); ITypeBinding[] parameters= method.getParameterTypes(); int lastComma= parameters.length - 1; for (int i= 0; i < parameters.length; i++) { ITypeBinding parameter= parameters[i]; result.append(parameter.getName()); if (i < lastComma) result.append(", "); } result.append(')'); return result.toString();
public static String asString(IBinding binding){ if (binding instanceof IMethodBinding) return asString((IMethodBinding)binding); else if (binding instanceof ITypeBinding) return asString((ITypeBinding)binding); else if (binding instanceof IVariableBinding) return asString((IVariableBinding)binding); return binding.toString();
	private static String asString(IMethodBinding method) {		StringBuffer result= new StringBuffer();		result.append(method.getDeclaringClass().getName());		result.append(':');		result.append(method.getName());		result.append('(');		ITypeBinding[] parameters= method.getParameterTypes();		int lastComma= parameters.length - 1;		for (int i= 0; i < parameters.length; i++) {			ITypeBinding parameter= parameters[i];			result.append(parameter.getName());			if (i < lastComma)				result.append(", "); //$NON-NLS-1$		}		result.append(')');		return result.toString();	}