Package net.bytebuddy.build
Annotation Interface ToStringPlugin.Enhance
- Enclosing class:
- ToStringPlugin
Instructs the
ToStringPlugin
to generate a Object.toString()
method for the annotated class unless this method
is already declared explicitly.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
A strategy for defining a prefix. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Determines if synthetic fields should be included in the string representation.Determines the prefix to be used for the string representation prior to adding field values.
-
Element Details
-
prefix
Determines the prefix to be used for the string representation prior to adding field values.- Returns:
- The prefix to use.
- Default:
- SIMPLE
-
includeSyntheticFields
boolean includeSyntheticFieldsDetermines if synthetic fields should be included in the string representation.- Returns:
true
if synthetic fields should be included.
- Default:
- false
-