title: Generate "special" getters and setters using Eclipse Templates
body: <p>I´m trying to do a template that given some attributes generate "special" getters and setters for all the fields.</p>
  
  <p>For example,</p>
  
  <pre><code>public class MyBean {
  
      private int numeric;
  }
  </code></pre>
  
  <p>Generate this:</p>
  
  <pre><code>  public int getNumeric() {
      return numeric;
    }
  
    public void setNumeric(final int newNumeric) {
      this.numeric = newNumeric;
    }
  </code></pre>
  
  <p>I check that the default Eclipse template use the variable ${body_statement} to generate the setters and the getters, I think that I need to change this variable but I didn´t find the expression of this variable.</p>
  
  <p>I try to use the following template but it doesn´t work correctly (I had to manually write the type and the field).</p>
  
  <pre><code>private ${type} get${field}() {return ${field};}
  
  private void set${field}(final ${type} ${field}) {this.${field} = ${field};}
  </code></pre>
  
  <p>Anyone have an idea?</p>
  
  <p>Thanks.</p>