Here you can find the source of getMethodFullName(Method m, boolean includeClassPackage, boolean includeParametersType, boolean includeTypesPackage)
public static String getMethodFullName(Method m, boolean includeClassPackage, boolean includeParametersType, boolean includeTypesPackage)
//package com.java2s; //License from project: Apache License import java.lang.reflect.Method; public class Main { public static String getMethodFullName(Method m, boolean includeClassPackage, boolean includeParametersType, boolean includeTypesPackage) { String str;// w ww. j a v a2 s .c o m str = includeClassPackage ? m.getClass().getName() : m.getClass().getSimpleName() + "." + m.getName() + "("; if (!(m.getParameterTypes().length == 0) && includeParametersType) { for (int i = 0; i < m.getParameterTypes().length; i++) { str = str + (includeTypesPackage ? m.getParameterTypes()[i].getName() : m.getParameterTypes()[i].getSimpleName()); if (!(i == m.getParameterTypes().length - 1)) str = str + ", "; } } str = str + ")"; return str; } }