Class MigrateCorsModuleDescriptor

java.lang.Object
org.openrewrite.Recipe
org.openrewrite.ScanningRecipe<com.atlassian.platform.recipes.rest.tov2.MigrateCorsModuleDescriptor.ProjectShapeAccumulator>
com.atlassian.platform.recipes.rest.tov2.MigrateCorsModuleDescriptor
All Implemented Interfaces:
Cloneable

public class MigrateCorsModuleDescriptor extends org.openrewrite.ScanningRecipe<com.atlassian.platform.recipes.rest.tov2.MigrateCorsModuleDescriptor.ProjectShapeAccumulator>
  • Field Summary

    Fields inherited from class org.openrewrite.Recipe

    contributors, examples, PANIC
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    com.atlassian.platform.recipes.rest.tov2.MigrateCorsModuleDescriptor.ProjectShapeAccumulator
    getInitialValue(org.openrewrite.ExecutionContext ctx)
     
    org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext>
    getScanner(com.atlassian.platform.recipes.rest.tov2.MigrateCorsModuleDescriptor.ProjectShapeAccumulator acc)
    First pass is done by the recipe making no changes, but just gathering info and populating into the accumulator.
    org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext>
    getVisitor(com.atlassian.platform.recipes.rest.tov2.MigrateCorsModuleDescriptor.ProjectShapeAccumulator acc)
    Second pass is done by the recipe making changes based on info in the accumulator.

    Methods inherited from class org.openrewrite.ScanningRecipe

    generate, generate, getAccumulator, getVisitor

    Methods inherited from class org.openrewrite.Recipe

    addDataTable, causesAnotherCycle, clone, createRecipeDescriptor, equals, getContributors, getDataTableDescriptors, getDescriptor, getEstimatedEffortPerOccurrence, getExamples, 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

    • MigrateCorsModuleDescriptor

      public MigrateCorsModuleDescriptor()
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in class org.openrewrite.Recipe
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in class org.openrewrite.Recipe
    • getInitialValue

      public com.atlassian.platform.recipes.rest.tov2.MigrateCorsModuleDescriptor.ProjectShapeAccumulator getInitialValue(org.openrewrite.ExecutionContext ctx)
      Specified by:
      getInitialValue in class org.openrewrite.ScanningRecipe<com.atlassian.platform.recipes.rest.tov2.MigrateCorsModuleDescriptor.ProjectShapeAccumulator>
    • getScanner

      public org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getScanner(com.atlassian.platform.recipes.rest.tov2.MigrateCorsModuleDescriptor.ProjectShapeAccumulator acc)
      First pass is done by the recipe making no changes, but just gathering info and populating into the accumulator.
      Specified by:
      getScanner in class org.openrewrite.ScanningRecipe<com.atlassian.platform.recipes.rest.tov2.MigrateCorsModuleDescriptor.ProjectShapeAccumulator>
    • getVisitor

      public org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getVisitor(com.atlassian.platform.recipes.rest.tov2.MigrateCorsModuleDescriptor.ProjectShapeAccumulator acc)
      Second pass is done by the recipe making changes based on info in the accumulator.
      Overrides:
      getVisitor in class org.openrewrite.ScanningRecipe<com.atlassian.platform.recipes.rest.tov2.MigrateCorsModuleDescriptor.ProjectShapeAccumulator>