Class Antlr4
- java.lang.Object
-
- com.diffplug.spotless.maven.FormatterFactory
-
- com.diffplug.spotless.maven.antlr4.Antlr4
-
public class Antlr4 extends FormatterFactory
AFormatterFactory
implementation that corresponds to<antlr4>...</antlr4>
configuration element.It defines a formatter for ANTLR4 source files that can execute both language agnostic (e.g.
LicenseHeader
) and anltr4-specific (e.g.Antlr4Formatter
) steps.
-
-
Constructor Summary
Constructors Constructor Description Antlr4()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAntlr4Formatter(Antlr4Formatter antlr4Formatter)
java.util.Set<java.lang.String>
defaultIncludes(org.apache.maven.project.MavenProject project)
java.lang.String
licenseHeaderDelimiter()
-
Methods inherited from class com.diffplug.spotless.maven.FormatterFactory
addEclipseWtp, addEndWithNewline, addIndent, addJsr223, addLicenseHeader, addNativeCmd, addPrettier, addReplace, addReplaceRegex, addStepFactory, addToggleOffOn, addTrimTrailingWhitespace, excludes, includes, newFormatter
-
-
-
-
Method Detail
-
defaultIncludes
public java.util.Set<java.lang.String> defaultIncludes(org.apache.maven.project.MavenProject project)
- Specified by:
defaultIncludes
in classFormatterFactory
-
licenseHeaderDelimiter
public java.lang.String licenseHeaderDelimiter()
- Specified by:
licenseHeaderDelimiter
in classFormatterFactory
-
addAntlr4Formatter
public void addAntlr4Formatter(Antlr4Formatter antlr4Formatter)
-
-