Annotation Type ToStringPlugin.Enhance


  • @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.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean includeSyntheticFields
      Determines if synthetic fields should be included in the string representation.
      ToStringPlugin.Enhance.Prefix prefix
      Determines the prefix to be used for the string representation prior to adding field values.
    • Element Detail

      • prefix

        ToStringPlugin.Enhance.Prefix prefix
        Determines the prefix to be used for the string representation prior to adding field values.
        Returns:
        The prefix to use.
        Default:
        net.bytebuddy.build.ToStringPlugin.Enhance.Prefix.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