Java tutorial
//package com.java2s; import java.lang.reflect.Method; public class Main { public static String generateNameOfMethod(Class<?> providerClass, Method method) { StringBuilder buider = new StringBuilder(providerClass.getName()).append(method.getName()); Class<?>[] paramTypes = method.getParameterTypes(); for (Class<?> c : paramTypes) { buider.append(c.getName()); } return buider.toString(); } }