PROPOSAL: Auto-assignment Parameters
rssh at gradsoft.com.ua
rssh at gradsoft.com.ua
Wed Mar 25 11:32:03 PDT 2009
> @GenerateFullConstructor
> @GenerateEqualsAndHashCode
> @GenerateToString(JsonToStringGenerator.class)
> public class Foo {
> @GenerateGetter
> private final int x;
> @GenerateGetter
> private final int y;
> @GenerateGetter
> private final String foo;
> }
>
You can't do this without extensions methods or some mechanisms,
which would allow you to generate code in file, where annotation
is situated. So, this is impossible in Java7
More information about the coin-dev
mailing list