aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/Setter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/lombok/Setter.java')
-rw-r--r--src/core/lombok/Setter.java24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/core/lombok/Setter.java b/src/core/lombok/Setter.java
index 6e0485c2..8c78bbb3 100644
--- a/src/core/lombok/Setter.java
+++ b/src/core/lombok/Setter.java
@@ -1,5 +1,5 @@
/*
- * Copyright © 2009-2010 Reinier Zwitserloot and Roel Spilker.
+ * Copyright © 2009-2010 Reinier Zwitserloot, Roel Spilker and Robbert Jan Grootjans.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -55,4 +55,24 @@ public @interface Setter {
* If you want your setter to be non-public, you can specify an alternate access level here.
*/
lombok.AccessLevel value() default lombok.AccessLevel.PUBLIC;
-}
+
+ /**
+ * If you want your setter method to have additional annotations, you can specify them here.
+ * If the {@code @Setter} is put on a type, {@code onMethod} may not be specified.
+ */
+ AnyAnnotation[] onMethod() default {};
+
+ /**
+ * If you want the parameter of your setter to have additional annotations, you can specify them here.
+ * If the {@code @Setter} is put on a type, {@code onParam} may not be specified.
+ */
+ AnyAnnotation[] onParam() default {};
+
+ /**
+ * Placeholder annotation to enable the placement of annotations on the setter method or its parameter.
+ * @deprecated Don't use this annotation, since we might remove it.
+ */
+ @Deprecated
+ @Retention(RetentionPolicy.SOURCE)
+ @interface AnyAnnotation {}
+} \ No newline at end of file