com.zengtengpeng.autoCode.config.BuildJavaConfig Maven / Gradle / Ivy
package com.zengtengpeng.autoCode.config;
import com.zengtengpeng.autoCode.bean.BuildJavaField;
import com.zengtengpeng.autoCode.bean.BuildJavaMethod;
import java.util.ArrayList;
import java.util.List;
/**
* 构建java文件需要的配置
*/
public class BuildJavaConfig {
/**
* 需要导入的类
*/
private List imports=new ArrayList<>();
/**
* 需要继承的类(如果是接口则有多个)
*/
private List extend;
/**
* 需要实现的接口
*/
private List implement=new ArrayList<>();
/**
* 注解 带上@符号
*/
private List annotations;
/**
* 注释
*/
private String remark;
/**
* 是否使用默认的一些导入类,以及继承,实现
*/
private Boolean defaultRealize=true;
/**
* 方法
*/
private List buildJavaMethods=new ArrayList<>();
/**
* 字段
*/
private List buildJavaFields=new ArrayList<>();
/**
* 拼装好之后的内容
*/
private StringBuffer content=new StringBuffer();
public StringBuffer getContent() {
return content;
}
public void setContent(StringBuffer content) {
this.content = content;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Boolean getDefaultRealize() {
return defaultRealize;
}
public void setDefaultRealize(Boolean defaultRealize) {
this.defaultRealize = defaultRealize;
}
public List getBuildJavaMethods() {
return buildJavaMethods;
}
public void setBuildJavaMethods(List buildJavaMethods) {
this.buildJavaMethods = buildJavaMethods;
}
public List getBuildJavaFields() {
return buildJavaFields;
}
public void setBuildJavaFields(List buildJavaFields) {
this.buildJavaFields = buildJavaFields;
}
public List getAnnotations() {
return annotations;
}
public void setAnnotations(List annotations) {
this.annotations = annotations;
}
public List getImports() {
return imports;
}
public void setImports(List imports) {
this.imports = imports;
}
public List getExtend() {
return extend;
}
public void setExtend(List extend) {
this.extend = extend;
}
public List getImplement() {
return implement;
}
public void setImplement(List implement) {
this.implement = implement;
}
}