Override method - Class variable
<p>let me say first that I did try to Google this, but I'm not really sure what I'm looking  for. I understand I could use a setter method, but is there a way to access the fields directly?</p>

<pre><code>List&lt;String&gt; token = new ArrayList&lt;String&gt;();
List&lt;String&gt; lemma = new ArrayList&lt;String&gt;();
List&lt;String&gt; pos   = new ArrayList&lt;String&gt;();

tt.setHandler(new TokenHandler&lt;String&gt;() {
   @Override
   public void token(final String token, final String pos, final String lemma) {
      this.token.add(token); // cannot be resolved or is not a field
      this.lemma.add(lemma); // cannot be resolved or is not a field
      this.pos.add(pos);     // cannot be resolved or is not a field
   }
});
</code></pre>

<p>Can you help me?!</p>

<p>Thanks!</p>

<p>Bob</p>
