aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/experimental/Builder.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-06-10 23:14:23 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-06-16 13:20:54 +0200
commit648c3eeee69bede925f794b16b1f3d184359761f (patch)
treed16b94cf04a600dc30f59f8d917cb69ec4eb8877 /src/core/lombok/experimental/Builder.java
parent2d76b1d22dea1e78326ebafdb48967512183cede (diff)
downloadlombok-648c3eeee69bede925f794b16b1f3d184359761f.tar.gz
lombok-648c3eeee69bede925f794b16b1f3d184359761f.tar.bz2
lombok-648c3eeee69bede925f794b16b1f3d184359761f.zip
Eclipse Builder implementation finished. Tests need fleshing out though.
Diffstat (limited to 'src/core/lombok/experimental/Builder.java')
-rw-r--r--src/core/lombok/experimental/Builder.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/lombok/experimental/Builder.java b/src/core/lombok/experimental/Builder.java
index b6667462..5f2d1ca6 100644
--- a/src/core/lombok/experimental/Builder.java
+++ b/src/core/lombok/experimental/Builder.java
@@ -109,4 +109,13 @@ import java.lang.annotation.Target;
public @interface Builder {
/** Name of the static method that creates a new builder instance. Default: {@code builder}. */
String builderMethodName() default "builder";
+
+ /** Name of the instance method in the builder class that creates an instance of your {@code @Builder}-annotated class. */
+ String buildMethodName() default "build";
+
+ /** Name of the builder class.
+ * Default for {@code @Builder} on types and constructors: {@code (TypeName)Builder}.
+ * Default for {@code @Builder} on static methods: {@code (ReturnTypeName)Builder}.
+ */
+ String builderClassName() default "";
}