Package org.openrewrite.config
Class CompositeRecipe
java.lang.Object
org.openrewrite.Recipe
org.openrewrite.config.CompositeRecipe
- All Implemented Interfaces:
Cloneable
A recipe that exists only to wrap other recipes.
Anonymous recipe classes aren't serializable/deserializable so use this, or another named type, instead
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openrewrite.Recipe
Recipe.Builder, Recipe.DelegatingRecipe -
Field Summary
Fields inherited from class org.openrewrite.Recipe
contributors, examples, PANIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA human-readable description for the recipe, consisting of one or more full sentences ending with a period.A human-readable display name for the recipe, initial capped with no period.A list of recipes that run, source file by source file, after this recipe.Methods inherited from class org.openrewrite.Recipe
addDataTable, builder, buildRecipeList, causesAnotherCycle, clone, createRecipeDescriptor, equals, getContributors, getDescriptor, getExamples, getInstanceName, getInstanceNameSuffix, getJacksonPolymorphicTypeTag, getMaintainers, getName, getTags, getVisitor, hashCode, maxCycles, noop, run, run, run, validate, validate, validateAll, validateAll
-
Constructor Details
-
CompositeRecipe
public CompositeRecipe()
-
-
Method Details
-
getDisplayName
Description copied from class:RecipeA human-readable display name for the recipe, initial capped with no period. For example, "Find text". The display name can be assumed to be rendered in documentation and other places where markdown is understood, so it is possible to use stylistic markers like backticks to indicate types. For example, "Find uses of `java.util.List`".- Specified by:
getDisplayNamein classRecipe- Returns:
- The display name.
-
getDescription
Description copied from class:RecipeA human-readable description for the recipe, consisting of one or more full sentences ending with a period."Find methods by pattern." is an example. The description can be assumed to be rendered in documentation and other places where markdown is understood, so it is possible to use stylistic markers like backticks to indicate types. For example, "Find uses of `java.util.List`.".
- Specified by:
getDescriptionin classRecipe- Returns:
- The display name.
-
getEstimatedEffortPerOccurrence
- Overrides:
getEstimatedEffortPerOccurrencein classRecipe- Returns:
- An estimated effort were a developer to fix manually instead of using this recipe.
-
getRecipeList
Description copied from class:RecipeA list of recipes that run, source file by source file, after this recipe. This method is guaranteed to be called only once per cycle.When creating a recipe with a fixed recipe list, either override this method or
Recipe.buildRecipeList(RecipeList)but ideally not both, as their default implementations are interconnected.- Overrides:
getRecipeListin classRecipe- Returns:
- The list of recipes to run.
-
getDataTableDescriptors
- Overrides:
getDataTableDescriptorsin classRecipe
-