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

templates.getterSettert Maven / Gradle / Ivy

Go to download

JavaForger can create source code from templates using existing java classes as input.

There is a newer version: 2.0.1
Show newest version
<#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};
  }
  




© 2015 - 2025 Weber Informatics LLC | Privacy Policy