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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns 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

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AddJellyXmlDeclaration

      public AddJellyXmlDeclaration()
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Returns the display name of the recipe.
      Specified by:
      getDisplayName in class org.openrewrite.Recipe
      Returns:
      the display name of the recipe
    • getDescription

      public String getDescription()
      Returns the description of the recipe.
      Specified by:
      getDescription in class org.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:
      getVisitor in class org.openrewrite.Recipe
      Returns:
      a PlainTextVisitor that adds the XML declaration