Annotation Interface ToStringPlugin.Enhance

Enclosing class:
ToStringPlugin

@Documented @Target(TYPE) @Retention(RUNTIME) public static @interface ToStringPlugin.Enhance
Instructs the ToStringPlugin to generate a Object.toString() method for the annotated class unless this method is already declared explicitly.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    A strategy for defining a prefix.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    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 includeSyntheticFields
      Determines if synthetic fields should be included in the string representation.
      Returns:
      true if synthetic fields should be included.
      Default:
      false