aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2012-03-26 21:57:24 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2012-03-26 21:57:24 +0200
commiteb3250a2fa4a3a141cd8a1e552b8f3bbd8ea1726 (patch)
treea17c502fb3eea1e99dea1c55cb3a41359464028e /test/transform/resource/before
parenta514af4dcdd87cdae64e87b9d8a8d1a489a8e474 (diff)
downloadlombok-eb3250a2fa4a3a141cd8a1e552b8f3bbd8ea1726.tar.gz
lombok-eb3250a2fa4a3a141cd8a1e552b8f3bbd8ea1726.tar.bz2
lombok-eb3250a2fa4a3a141cd8a1e552b8f3bbd8ea1726.zip
Finished work on @Accessors
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/Accessors.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/test/transform/resource/before/Accessors.java b/test/transform/resource/before/Accessors.java
new file mode 100644
index 00000000..18547620
--- /dev/null
+++ b/test/transform/resource/before/Accessors.java
@@ -0,0 +1,38 @@
+class AccessorsFluent {
+ @lombok.Getter @lombok.Setter @lombok.experimental.Accessors(fluent=true)
+ private String fieldName = "";
+}
+
+@lombok.experimental.Accessors(fluent=true)
+@lombok.Getter
+class AccessorsFluentOnClass {
+ @lombok.Setter private String fieldName = "";
+ @lombok.experimental.Accessors private String otherFieldWithOverride = "";
+}
+
+class AccessorsChain {
+ @lombok.Setter @lombok.experimental.Accessors(chain=true) private boolean isRunning;
+}
+
+@lombok.experimental.Accessors(prefix="f")
+class AccessorsPrefix {
+ @lombok.Setter private String fieldName;
+ @lombok.Setter private String fActualField;
+}
+
+@lombok.experimental.Accessors(prefix={"f", ""})
+class AccessorsPrefix2 {
+ @lombok.Setter private String fieldName;
+ @lombok.Setter private String fActualField;
+}
+
+@lombok.experimental.Accessors(prefix="f")
+@lombok.ToString
+@lombok.EqualsAndHashCode
+class AccessorsPrefix3 {
+ private String fName;
+
+ private String getName() {
+ return fName;
+ }
+} \ No newline at end of file