All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wizzardo.tools.reflection.GenericMethod Maven / Gradle / Ivy

There is a newer version: 0.23
Show newest version
package com.wizzardo.tools.reflection;

import java.lang.reflect.Method;
import java.util.List;

import static com.wizzardo.tools.reflection.Misc.join;

/**
 * Created by wizzardo on 14/03/17.
 */
public class GenericMethod {
    public final Method method;
    public final Generic returnType;
    public final List args;

    public GenericMethod(Method method, Generic returnType, List args) {
        this.method = method;
        this.returnType = returnType;
        this.args = args;
    }

    @Override
    public String toString() {
        return join(new StringBuilder(32)
                        .append(returnType)
                        .append(' ')
                        .append(method.getName())
                        .append('(')
                , args, ",")
                .append(')')
                .toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy