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 -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.platform.recipes.rest.tov2.MigrateCorsModuleDescriptor.ProjectShapeAccumulatorgetInitialValue(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, getVisitorMethods 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
-
Constructor Details
-
MigrateCorsModuleDescriptor
public MigrateCorsModuleDescriptor()
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayNamein classorg.openrewrite.Recipe
-
getDescription
- Specified by:
getDescriptionin classorg.openrewrite.Recipe
-
getInitialValue
public com.atlassian.platform.recipes.rest.tov2.MigrateCorsModuleDescriptor.ProjectShapeAccumulator getInitialValue(org.openrewrite.ExecutionContext ctx) - Specified by:
getInitialValuein classorg.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:
getScannerin classorg.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:
getVisitorin classorg.openrewrite.ScanningRecipe<com.atlassian.platform.recipes.rest.tov2.MigrateCorsModuleDescriptor.ProjectShapeAccumulator>
-