Class PipeStepPair.Builder

    • Method Detail

      • regex

        public PipeStepPair.Builder regex​(String 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.