Package com.diffplug.spotless.generic
Class PipeStepPair.Builder
- java.lang.Object
-
- com.diffplug.spotless.generic.PipeStepPair.Builder
-
- Enclosing class:
- PipeStepPair
public static class PipeStepPair.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PipeStepPair
buildPair()
Returns a pair of steps which captures in the first part, then returns in the second.FormatterStep
buildStepWhichAppliesSubSteps(Path rootPath, Collection<? extends FormatterStep> steps)
Returns a single step which will apply the given steps only within the blocks selected by the regex / openClose pair.PipeStepPair.Builder
openClose(String open, String close)
Defines the opening and closing markers.PipeStepPair.Builder
regex(String regex)
Defines the pipe via regex.PipeStepPair.Builder
regex(Pattern regex)
Defines the pipe via regex.
-
-
-
Method Detail
-
openClose
public PipeStepPair.Builder openClose(String open, String close)
Defines the opening and closing markers.
-
regex
public PipeStepPair.Builder regex(String regex)
Defines the pipe via regex. Must have *exactly one* capturing group.
-
regex
public PipeStepPair.Builder regex(Pattern regex)
Defines the pipe via regex. Must have *exactly one* capturing group.
-
buildPair
public PipeStepPair buildPair()
Returns a pair of steps which captures in the first part, then returns in the second.
-
buildStepWhichAppliesSubSteps
public FormatterStep buildStepWhichAppliesSubSteps(Path rootPath, Collection<? extends FormatterStep> steps)
Returns a single step which will apply the given steps only within the blocks selected by the regex / openClose pair.
-
-