akshattandon / projectlombok

Automatically exported from code.google.com/p/projectlombok
0 stars 0 forks source link

Add aliases to @Getter @Setter #790

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice to have aliases in @Getter and @Setter

In my case it would be handy in multilingual project
For example:

@Getter(aliases={"ключ"}) private long key;

As a shortcut for:

private long key;

public long getKey() { return key; }

public long ключ() { return key; }

//or maybe like this: (or both) [or configurable]

public long getКлюч() { return key; } // javabean style

//both should work, but its pain to type "getКлюч" changing kb layout every 
time.

I'm using jruby (multilingual DSL) where both styles accessible as property 
this way: object.ключ
In groovy only javabean-style accessible as property.

Labels: -Type-Enhancement

Original issue reported on code.google.com by g...@inbox.ru on 19 Feb 2015 at 9:04

GoogleCodeExporter commented 9 years ago
Standalone @Aliases would be handy too for methods

Original comment by g...@inbox.ru on 19 Feb 2015 at 9:12