Package org.openrewrite.test
Interface RecipePrinter
@Incubating(since="8.12.1")
public interface RecipePrinter
-
Method Summary
Modifier and TypeMethodDescriptionconsumer()The consumer to print the recipe tree to, for instance() -> System.out::println.default CharSequenceprintRecipe(org.openrewrite.config.RecipeDescriptor rd, String prefix) Internal method to print a recipe tree.default voidprintTree(org.openrewrite.Recipe recipe) Print the recipe tree for a recipe toconsumer().
-
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 toconsumer().- Parameters:
recipe- the recipe to print
-
printRecipe
Internal method to print a recipe tree. This is used recursively to print the tree. Not intended for external use.- Parameters:
rd- the recipe descriptorprefix- the indentation prefix
-