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

com.hframework.generator.vm.po.vm Maven / Gradle / Ivy

##第一部分:传入参数
#set($map=$MAP)
#set($classDef = $map.get("CLASS"))
##模板内容
package $classDef.classPackage;

#foreach($importClass in $classDef.importClassList)
import $importClass;
#end

$!classDef.annotation
public $classDef.type $classDef.className $!classDef.superClassStr $!classDef.implementsStr {
#if($classDef.useLogger)
    private static final Logger logger = LoggerFactory.getLogger(${classDef.className}.class);
#end

#foreach($field in $classDef.fieldList)
	$!field.fieldAnno
	private $field.type $field.name;
#end
#foreach($constructor in $classDef.constructorList)

    public ${classDef.className}($!constructor.parameterStr) {
    #foreach($codeLine in $constructor.codelnList)
    	 $!codeLine
    #end
	}
 #end
  $!classDef.extMethodStr
 #foreach($field in $classDef.fieldList)
 	//getter
 	$!fieldgetMethodAnno
	public $field.type get${field.ucName}(){
		return $field.name;
	}
	//setter
	public void set${field.ucName}(${field.type} ${field.name}){
    	this.$field.name = $field.name;
    }
#end
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy