diff options
author | Jan Rieke <rieke@subshell.com> | 2017-02-10 17:02:29 +0100 |
---|---|---|
committer | Jan Rieke <rieke@subshell.com> | 2017-02-15 13:54:00 +0100 |
commit | f46aa53e8c592f562ef5dc21e65e9c74c98a8ecc (patch) | |
tree | 80935b53e558b8aa9a9dd25a829212ffc886a091 /src/core/lombok/Builder.java | |
parent | 5f02accc064cc05c822c7c93c6b972b1ca387b4f (diff) | |
download | lombok-f46aa53e8c592f562ef5dc21e65e9c74c98a8ecc.tar.gz lombok-f46aa53e8c592f562ef5dc21e65e9c74c98a8ecc.tar.bz2 lombok-f46aa53e8c592f562ef5dc21e65e9c74c98a8ecc.zip |
builder-based constructors for type @Builders [Eclipse]
Diffstat (limited to 'src/core/lombok/Builder.java')
-rw-r--r-- | src/core/lombok/Builder.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/core/lombok/Builder.java b/src/core/lombok/Builder.java index 7a965486..855e96e8 100644 --- a/src/core/lombok/Builder.java +++ b/src/core/lombok/Builder.java @@ -123,6 +123,23 @@ public @interface Builder { String builderClassName() default ""; /** + * If true, the generated builder class will extend the builder of the + * superclass. In this way, the builder will also contain methods for fields + * from the superclass. Note that both this builder and the superclass' + * builder must be a type {@code @Builder}; this feature does neither work + * for constructor nor method {@code @Builder}s. + */ + boolean inherit() default false; + + /** + * Name of the builder class in the superclass. Only relevant if + * {@code inherit = true} (see {@link #inherit()}). + * + * Default {@code (SuperclassTypeName)Builder}. + */ + String superclassBuilderClassName() default ""; + + /** * If true, generate an instance method to obtain a builder that is initialized with the values of this instance. * Legal only if {@code @Builder} is used on a constructor, on the type itself, or on a static method that returns * an instance of the declaring type. |