project lombok - spice up your java
project lombok allows you to annotate classes and so have boiler plate code generated on the fly when they are compiled by eclipse or javac. the source file isn't changed, the methods are in the generated .class file. so you can annotate a class as @Data and it will have all getters, setters, a toString, hashCode and equals methods. Or you can annotate a field as @Setter or @Getter etc.
see the video at the site: http://projectlombok.org/index.html
to technically understand how this is done, read:
i think this mechanism can be used to create many useful a-la lisp macros for making classes a bit more DSL.
We will contact you as soon as possible.