Class HeaderFormatApplierImpl
- java.lang.Object
-
- net.kyori.indra.licenser.spotless.internal.HeaderFormatApplierImpl
-
- All Implemented Interfaces:
HeaderFormatApplier
public class HeaderFormatApplierImpl extends java.lang.Object implements HeaderFormatApplier
-
-
Constructor Summary
Constructors Constructor Description HeaderFormatApplierImpl(org.gradle.api.provider.Property<HeaderFormat> format)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcustom(@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.voiddoubleSlash()Set the header format to use a double-slash prefix.voidprefix(@NotNull java.lang.String prefix)A header format containing only a prefix for body lines.voidstarSlash()Set the header format to use star-slash, or C-style format.
-
-
-
Constructor Detail
-
HeaderFormatApplierImpl
public HeaderFormatApplierImpl(org.gradle.api.provider.Property<HeaderFormat> format)
-
-
Method Detail
-
starSlash
public void starSlash()
Description copied from interface:HeaderFormatApplierSet the header format to use star-slash, or C-style format.- Specified by:
starSlashin interfaceHeaderFormatApplier
-
doubleSlash
public void doubleSlash()
Description copied from interface:HeaderFormatApplierSet the header format to use a double-slash prefix.- Specified by:
doubleSlashin interfaceHeaderFormatApplier
-
prefix
public void prefix(@NotNull @NotNull java.lang.String prefix)Description copied from interface:HeaderFormatApplierA header format containing only a prefix for body lines.- Specified by:
prefixin interfaceHeaderFormatApplier- 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:HeaderFormatApplierSet a custom header format.Any parameters may be null, but a null parameter will be of limited use.
- Specified by:
customin interfaceHeaderFormatApplier- Parameters:
begin- text to put at the beginning of the header blocklinePrefix- text to put at the beginning of every linelineSuffix- text to put at the end of every lineend- text to put at the end of the header block
-
-