Package com.diffplug.spotless.generic
Class FenceStep
java.lang.Object
com.diffplug.spotless.generic.FenceStep
-
Method Summary
Modifier and TypeMethodDescriptionapplyWithin
(List<FormatterStep> steps) Returns a step which will apply the given steps only within the blocks selected by the regex / openClose pair.static String
static String
static String
static FenceStep
Declares the name of the step.Defines the opening and closing markers.preserveWithin
(List<FormatterStep> steps) Returns a step which will apply the given steps but preserve the content selected by the regex / openClose pair.Defines the pipe via regex.Defines the pipe via regex.
-
Method Details
-
named
Declares the name of the step. -
defaultToggleName
-
defaultToggleOff
-
defaultToggleOn
-
openClose
Defines the opening and closing markers. -
regex
Defines the pipe via regex. Must have *exactly one* capturing group. -
regex
Defines the pipe via regex. Must have *exactly one* capturing group. -
preserveWithin
Returns a step which will apply the given steps but preserve the content selected by the regex / openClose pair. -
applyWithin
Returns a step which will apply the given steps only within the blocks selected by the regex / openClose pair. Linting within the substeps is not supported.
-