From eb3250a2fa4a3a141cd8a1e552b8f3bbd8ea1726 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 26 Mar 2012 21:57:24 +0200 Subject: Finished work on @Accessors --- test/transform/resource/before/Accessors.java | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 test/transform/resource/before/Accessors.java (limited to 'test/transform/resource/before') 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 -- cgit