Class HeaderFormatApplierImpl
java.lang.Object
net.kyori.indra.licenser.spotless.internal.HeaderFormatApplierImpl
- All Implemented Interfaces:
HeaderFormatApplier
-
Constructor Summary
ConstructorsConstructorDescriptionHeaderFormatApplierImpl(org.gradle.api.provider.Property<HeaderFormat> format) -
Method Summary
Modifier and TypeMethodDescriptionvoidcustom(@Nullable String begin, @Nullable String linePrefix, @Nullable String lineSuffix, @Nullable String end) Set a custom header format.voidSet the header format to use a double-slash prefix.voidA header format containing only a prefix for body lines.voidSet the header format to use star-slash, or C-style format.
-
Constructor Details
-
HeaderFormatApplierImpl
-
-
Method Details
-
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
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 String begin, @Nullable @Nullable String linePrefix, @Nullable @Nullable String lineSuffix, @Nullable @Nullable 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
-