title: Java: extending Object class
body: <p>I'm writing (well, completing) an "extension" of Java which will help role programming.<br>
  I translate my code to Java code with javacc. My compilers add to every declared class some code. Here's an example to be clearer:  </p>
  
  <pre><code>MyClass extends String implements ObjectWithRoles { //implements... is added
      /*Added by me */
      public setRole(...){...}
      public ...
      /*Ends of stuff added*/
      ...//myClass stuff
  }
  </code></pre>
  
  <p>It adds Implements.. and the necessary methods to EVERY SINGLE CLASS  you declare. Quite rough, isnt'it?  </p>
  
  <p>It will be better if I write my methods in one class and all class extends that.. but.. if class already extends another class (just like the example)?  </p>
  
  <p>I don't want to create a sort of wrapper that manage roles because i don't want that the programmer has to know much more than Java, few new reserved words and their use.  </p>
  
  <p>My idea was to extends java.lang.Object.. but you can't. (right?)<br>
  Other ideas?  </p>
  
  <p>I'm new here, but I follow this site so thank you for reading and all the answers you give! (I apologize for english, I'm italian)</p>