Package org.openrewrite.maven
Class ChangeParentPom
java.lang.Object
org.openrewrite.Recipe
org.openrewrite.ScanningRecipe<ChangeParentPom.Accumulator>
org.openrewrite.maven.ChangeParentPom
- All Implemented Interfaces:
Cloneable
-
Nested Class Summary
Nested ClassesNested 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
ConstructorsConstructorDescriptionChangeParentPom(String oldGroupId, @Nullable String newGroupId, String oldArtifactId, @Nullable String newArtifactId, String newVersion, @Nullable String oldRelativePath, @Nullable String newRelativePath, @Nullable String versionPattern, @Nullable Boolean allowVersionDowngrades) Deprecated.ChangeParentPom(String oldGroupId, @Nullable String newGroupId, String oldArtifactId, @Nullable String newArtifactId, String newVersion, @Nullable String oldRelativePath, @Nullable String newRelativePath, @Nullable String versionPattern, @Nullable Boolean allowVersionDowngrades, @Nullable List<String> except) -
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends org.openrewrite.SourceFile> generate(ChangeParentPom.Accumulator acc, org.openrewrite.ExecutionContext ctx) getInitialValue(org.openrewrite.ExecutionContext ctx) org.openrewrite.TreeVisitor<?, org.openrewrite.ExecutionContext> org.openrewrite.TreeVisitor<?, org.openrewrite.ExecutionContext> org.openrewrite.Validated<Object> validate()Methods inherited from class org.openrewrite.ScanningRecipe
clone, generate, getAccumulator, getVisitorMethods inherited from class org.openrewrite.Recipe
addDataTable, builder, buildRecipeList, causesAnotherCycle, createRecipeDescriptor, equals, getContributors, getDataTableDescriptors, getDescription, getDescriptor, getDisplayName, getEstimatedEffortPerOccurrence, getExamples, getInstanceName, getJacksonPolymorphicTypeTag, getMaintainers, getName, getRecipeList, getTags, hashCode, maxCycles, noop, onComplete, run, run, run, setContributors, setExamples, validate, validateAll, validateAll, withOptions
-
Constructor Details
-
ChangeParentPom
@Deprecated public ChangeParentPom(String oldGroupId, @Nullable String newGroupId, String oldArtifactId, @Nullable String newArtifactId, String newVersion, @Nullable String oldRelativePath, @Nullable String newRelativePath, @Nullable String versionPattern, @Nullable Boolean allowVersionDowngrades) Deprecated. -
ChangeParentPom
public ChangeParentPom(String oldGroupId, @Nullable String newGroupId, String oldArtifactId, @Nullable String newArtifactId, String newVersion, @Nullable String oldRelativePath, @Nullable String newRelativePath, @Nullable String versionPattern, @Nullable Boolean allowVersionDowngrades, @Nullable List<String> except)
-
-
Method Details
-
getInstanceNameSuffix
- Overrides:
getInstanceNameSuffixin classorg.openrewrite.Recipe
-
validate
- Overrides:
validatein classorg.openrewrite.Recipe
-
getInitialValue
- Specified by:
getInitialValuein classorg.openrewrite.ScanningRecipe<ChangeParentPom.Accumulator>
-
getScanner
public org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getScanner(ChangeParentPom.Accumulator acc) - Specified by:
getScannerin classorg.openrewrite.ScanningRecipe<ChangeParentPom.Accumulator>
-
generate
public Collection<? extends org.openrewrite.SourceFile> generate(ChangeParentPom.Accumulator acc, org.openrewrite.ExecutionContext ctx) - Overrides:
generatein classorg.openrewrite.ScanningRecipe<ChangeParentPom.Accumulator>
-
getVisitor
public org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getVisitor(ChangeParentPom.Accumulator acc) - Overrides:
getVisitorin classorg.openrewrite.ScanningRecipe<ChangeParentPom.Accumulator>
-