com.hn.doc.xyj.parse.MethodParse Maven / Gradle / Ivy
package com.hn.doc.xyj.parse;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* 描述: 实体类解析
*
* @author fei
* 2020-01-10 11:49
*/
@Data
public class MethodParse {
/**
* 方法名
*/
private String name;
/**
* 方法描述
*/
private String description;
/**
* 方法参数
*/
private List params;
public void addParam(String name, String content) {
if (params == null) {
params = new ArrayList<>();
}
Param param = new Param();
param.setName(name);
param.setContent(content);
params.add(param);
}
public MethodParse.Param createParam() {
return new MethodParse.Param();
}
@Data
public class Param {
private String name;
private String content;
private String type;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy