diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-19 16:24:10 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-19 16:24:10 +0200 |
commit | ff306fa5d97a09d69332c76a33596bb053222855 (patch) | |
tree | 00124b2190b36f13381d9513717e558aacbad973 /src/lombok/Setter.java | |
parent | e56ab6c2457531c0ce8556097f945b6e7946f6f2 (diff) | |
download | lombok-ff306fa5d97a09d69332c76a33596bb053222855.tar.gz lombok-ff306fa5d97a09d69332c76a33596bb053222855.tar.bz2 lombok-ff306fa5d97a09d69332c76a33596bb053222855.zip |
Added initial support for the @Data annotation. Currently produces getters and setters only,
not yet a constructor, toString, hashCode, or equals.
HandleGetter and HandleSetter have been updated to handle static (theoretic; you can't put annotations on static fields normally).
You can now make AnnotationValue objects using just an annotationNode and a target type, as well as check if a given annotationNode is likely to represent a target annotation type. This is in Javac and Eclipse classes.
HandleGetter and HandleSetter can now be asked to make a getter/setter, and will grab access level off of a Getter/Setter annotation, if present.
Diffstat (limited to 'src/lombok/Setter.java')
-rw-r--r-- | src/lombok/Setter.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lombok/Setter.java b/src/lombok/Setter.java index fc6a311b..acd1d180 100644 --- a/src/lombok/Setter.java +++ b/src/lombok/Setter.java @@ -8,5 +8,7 @@ import java.lang.annotation.Target; @Target(ElementType.FIELD) @Retention(RetentionPolicy.SOURCE) public @interface Setter { - AccessLevel value() default lombok.AccessLevel.PUBLIC; + lombok.AccessLevel DEFAULT_ACCESS_LEVEL = lombok.AccessLevel.PUBLIC; + + lombok.AccessLevel value() default lombok.AccessLevel.PUBLIC; } |