public class Antlr4Extension extends FormatExtension implements HasBuiltinDelimiterForLicense
| Modifier and Type | Class and Description |
|---|---|
class |
Antlr4Extension.Antlr4FormatterConfig |
FormatExtension.ClangFormatConfig, FormatExtension.EclipseWtpConfig, FormatExtension.LicenseHeaderConfig, FormatExtension.NpmStepConfig<T extends FormatExtension.NpmStepConfig<?>>, FormatExtension.PrettierConfigsteps, target, targetExclude| Constructor and Description |
|---|
Antlr4Extension(SpotlessExtension rootExtension) |
| Modifier and Type | Method and Description |
|---|---|
Antlr4Extension.Antlr4FormatterConfig |
antlr4Formatter() |
Antlr4Extension.Antlr4FormatterConfig |
antlr4Formatter(String version) |
FormatExtension.LicenseHeaderConfig |
licenseHeader(String licenseHeader) |
FormatExtension.LicenseHeaderConfig |
licenseHeaderFile(Object licenseHeaderFile) |
protected void |
setupTask(SpotlessTask task)
Sets up a format task according to the values in this extension.
|
addStep, bumpThisNumberIfACustomStepChanges, clangFormat, clangFormat, clearSteps, createIndependentApplyTask, custom, custom, eclipseWtp, eclipseWtp, encoding, endWithNewline, getEncoding, getExistingStepIdx, getLineEndings, getProject, getRatchetFrom, ignoreErrorForPath, ignoreErrorForStep, indentWithSpaces, indentWithSpaces, indentWithTabs, indentWithTabs, licenseHeader, licenseHeaderFile, noDefaultTargetException, parseTarget, prettier, prettier, prettier, provisioner, ratchetFrom, replace, replaceRegex, replaceStep, setEncoding, setEncoding, setLineEndings, setRatchetFrom, target, targetExclude, toggleOffOn, toggleOffOn, toggleOffOnDisable, toggleOffOnRegex, trimTrailingWhitespace, withinBlocks, withinBlocks, withinBlocksRegex, withinBlocksRegex@Inject public Antlr4Extension(SpotlessExtension rootExtension)
public Antlr4Extension.Antlr4FormatterConfig antlr4Formatter()
public Antlr4Extension.Antlr4FormatterConfig antlr4Formatter(String version)
protected void setupTask(SpotlessTask task)
FormatExtensionSets up a format task according to the values in this extension.
setupTask in class FormatExtensionpublic FormatExtension.LicenseHeaderConfig licenseHeader(String licenseHeader)
licenseHeader in interface HasBuiltinDelimiterForLicenselicenseHeader - Content that should be at the top of every file.public FormatExtension.LicenseHeaderConfig licenseHeaderFile(Object licenseHeaderFile)
licenseHeaderFile in interface HasBuiltinDelimiterForLicenselicenseHeaderFile - Content that should be at the top of every file.