From ff306fa5d97a09d69332c76a33596bb053222855 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Fri, 19 Jun 2009 16:24:10 +0200 Subject: 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. --- src/lombok/Setter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lombok/Setter.java') 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; } -- cgit