Package org.openrewrite.text
Class ChangeText
java.lang.Object
org.openrewrite.Recipe
org.openrewrite.text.ChangeText
- All Implemented Interfaces:
Cloneable
-
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.Since most instance names will be constructed withRecipe.getDisplayName()followed by some further descriptive text about the recipe's options, this method provides a convenient way to just specify the option descriptive text.getTags()A set of strings used for categorizing related recipes.A recipe can optionally encapsulate a visitor that performs operations on a set of source files.Methods inherited from class org.openrewrite.Recipe
addDataTable, builder, buildRecipeList, causesAnotherCycle, clone, createRecipeDescriptor, equals, getContributors, getDataTableDescriptors, getDescriptor, getEstimatedEffortPerOccurrence, getExamples, getInstanceName, getJacksonPolymorphicTypeTag, getMaintainers, getName, getRecipeList, hashCode, maxCycles, noop, run, run, run, validate, validate, validateAll, validateAll
-
Constructor Details
-
ChangeText
public ChangeText()
-
-
Method Details
-
getTags
Description copied from class:RecipeA set of strings used for categorizing related recipes. For example "testing", "junit", "spring". Any individual tag should consist of a single word, all lowercase. -
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.
-
getInstanceNameSuffix
Description copied from class:RecipeSince most instance names will be constructed withRecipe.getDisplayName()followed by some further descriptive text about the recipe's options, this method provides a convenient way to just specify the option descriptive text. WhenRecipe.getInstanceName()is overridden, this method has no effect. Generally either override this method orRecipe.getInstanceName()if you want to customize the instance name text.- Overrides:
getInstanceNameSuffixin classRecipe- Returns:
- A suffix to append to the display name of a recipe.
-
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.
-
getVisitor
Description copied from class:RecipeA recipe can optionally encapsulate a visitor that performs operations on a set of source files. Subclasses of the recipe may override this method to provide an instance of a visitor that will be used when the recipe is executed.- Overrides:
getVisitorin classRecipe- Returns:
- A tree visitor that will perform operations associated with the recipe.
-