Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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();
    }
}