templates.getterSettert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JavaForger Show documentation
Show all versions of JavaForger Show documentation
JavaForger can create source code from templates using existing java classes as input.
<#list fields as field>
/**
* Gets the ${field.name.lowerSpace} of the {@link ${class.name}}.
*
* @return {@link ${field.nonPrimitiveType}}
*/
public ${field.type} ${field.getter}() {
return ${field.name};
}
/**
* Sets the ${field.name.lowerSpace} of the {@link ${class.name}}.
*
* @param ${field.name} The input {@link ${field.nonPrimitiveType}}.
*/
public void ${field.setter}(${field.type} ${field.name}) {
this.${field.name} = ${field.name};
}
#list>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy