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

com.github.houbb.asm.tool.vo.MethodMeta Maven / Gradle / Ivy

package com.github.houbb.asm.tool.vo;

/**
 * 方法元信息
 * @author binbin.hou
 * @since 0.0.2
 */
public class MethodMeta {

    /**
     * 声明类
     * @since 0.0.2
     */
    private Class declaringClass;

    /**
     * 是否为静态方法
     * @since 0.0.2
     */
    private boolean statics;

    /**
     * 方法名称
     * @since 0.0.2
     */
    private String name;

    /**
     * 获取方法描述符
     * @since 0.0.2
     */
    private String descriptor;

    /**
     * 参数类型列表
     * @since 0.0.2
     */
    private Class[] paramTypes;

    public Class declaringClass() {
        return declaringClass;
    }

    public MethodMeta declaringClass(Class declaringClass) {
        this.declaringClass = declaringClass;
        return this;
    }

    public boolean statics() {
        return statics;
    }

    public MethodMeta statics(boolean statics) {
        this.statics = statics;
        return this;
    }

    public String name() {
        return name;
    }

    public MethodMeta name(String name) {
        this.name = name;
        return this;
    }

    public String descriptor() {
        return descriptor;
    }

    public MethodMeta descriptor(String descriptor) {
        this.descriptor = descriptor;
        return this;
    }

    public Class[] paramTypes() {
        return paramTypes;
    }

    public MethodMeta paramTypes(Class[] paramTypes) {
        this.paramTypes = paramTypes;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy