Package org.openrewrite.jenkins
Class AddJellyXmlDeclaration
java.lang.Object
org.openrewrite.Recipe
org.openrewrite.jenkins.AddJellyXmlDeclaration
- All Implemented Interfaces:
Cloneable
public class AddJellyXmlDeclaration
extends org.openrewrite.Recipe
Recipe to add an XML declaration to Jelly files.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openrewrite.Recipe
org.openrewrite.Recipe.Builder, org.openrewrite.Recipe.DelegatingRecipe -
Field Summary
Fields inherited from class org.openrewrite.Recipe
contributors, examples, PANIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the description of the recipe.Returns the display name of the recipe.org.openrewrite.text.PlainTextVisitor<org.openrewrite.ExecutionContext>Returns a visitor that adds the XML declaration to Jelly files.Methods inherited from class org.openrewrite.Recipe
addDataTable, builder, buildRecipeList, causesAnotherCycle, clone, createRecipeDescriptor, equals, getContributors, getDataTableDescriptors, getDescriptor, getEstimatedEffortPerOccurrence, getExamples, getInstanceName, getInstanceNameSuffix, getJacksonPolymorphicTypeTag, getMaintainers, getName, getRecipeList, getTags, hashCode, maxCycles, noop, run, run, run, setContributors, setExamples, validate, validate, validateAll, validateAll
-
Constructor Details
-
AddJellyXmlDeclaration
public AddJellyXmlDeclaration()
-
-
Method Details
-
getDisplayName
Returns the display name of the recipe.- Specified by:
getDisplayNamein classorg.openrewrite.Recipe- Returns:
- the display name of the recipe
-
getDescription
Returns the description of the recipe.- Specified by:
getDescriptionin classorg.openrewrite.Recipe- Returns:
- the description of the recipe
-
getVisitor
public org.openrewrite.text.PlainTextVisitor<org.openrewrite.ExecutionContext> getVisitor()Returns a visitor that adds the XML declaration to Jelly files.- Overrides:
getVisitorin classorg.openrewrite.Recipe- Returns:
- a PlainTextVisitor that adds the XML declaration
-