Class HeaderFormatApplierImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void custom​(@Nullable java.lang.String begin, @Nullable java.lang.String linePrefix, @Nullable java.lang.String lineSuffix, @Nullable java.lang.String end)
      Set a custom header format.
      void doubleSlash()
      Set the header format to use a double-slash prefix.
      void prefix​(@NotNull java.lang.String prefix)
      A header format containing only a prefix for body lines.
      void starSlash()
      Set the header format to use star-slash, or C-style format.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HeaderFormatApplierImpl

        public HeaderFormatApplierImpl​(org.gradle.api.provider.Property<HeaderFormat> format)
    • Method Detail

      • prefix

        public void prefix​(@NotNull
                           @NotNull java.lang.String prefix)
        Description copied from interface: HeaderFormatApplier
        A header format containing only a prefix for body lines.
        Specified by:
        prefix in interface HeaderFormatApplier
        Parameters:
        prefix - the prefix (no space-padding will be added)
      • custom

        public void custom​(@Nullable
                           @Nullable java.lang.String begin,
                           @Nullable
                           @Nullable java.lang.String linePrefix,
                           @Nullable
                           @Nullable java.lang.String lineSuffix,
                           @Nullable
                           @Nullable java.lang.String end)
        Description copied from interface: HeaderFormatApplier
        Set a custom header format.

        Any parameters may be null, but a null parameter will be of limited use.

        Specified by:
        custom in interface HeaderFormatApplier
        Parameters:
        begin - text to put at the beginning of the header block
        linePrefix - text to put at the beginning of every line
        lineSuffix - text to put at the end of every line
        end - text to put at the end of the header block