Interface RecipePrinter


@Incubating(since="8.12.1") public interface RecipePrinter
  • Method Summary

    Modifier and Type
    Method
    Description
    The consumer to print the recipe tree to, for instance () -> System.out::println.
    default CharSequence
    printRecipe(org.openrewrite.config.RecipeDescriptor rd, String prefix)
    Internal method to print a recipe tree.
    default void
    printTree(org.openrewrite.Recipe recipe)
    Print the recipe tree for a recipe to consumer().
  • Method Details

    • consumer

      Consumer<CharSequence> consumer()
      The consumer to print the recipe tree to, for instance () -> System.out::println.
      Returns:
      the consumer
    • printTree

      default void printTree(org.openrewrite.Recipe recipe)
      Print the recipe tree for a recipe to consumer().
      Parameters:
      recipe - the recipe to print
    • printRecipe

      default CharSequence printRecipe(org.openrewrite.config.RecipeDescriptor rd, String prefix)
      Internal method to print a recipe tree. This is used recursively to print the tree. Not intended for external use.
      Parameters:
      rd - the recipe descriptor
      prefix - the indentation prefix