Class MigrateMainMethodToInstanceMain
java.lang.Object
org.openrewrite.Recipe
org.openrewrite.ScanningRecipe<Set<org.openrewrite.java.tree.JavaType.FullyQualified>>
org.openrewrite.java.migrate.lang.MigrateMainMethodToInstanceMain
- All Implemented Interfaces:
Cloneable
public class MigrateMainMethodToInstanceMain
extends org.openrewrite.ScanningRecipe<Set<org.openrewrite.java.tree.JavaType.FullyQualified>>
-
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 TypeMethodDescriptionSet<org.openrewrite.java.tree.JavaType.FullyQualified> getInitialValue(org.openrewrite.ExecutionContext ctx) org.openrewrite.TreeVisitor<?, org.openrewrite.ExecutionContext> getScanner(Set<org.openrewrite.java.tree.JavaType.FullyQualified> referencedMains) org.openrewrite.TreeVisitor<?, org.openrewrite.ExecutionContext> getVisitor(Set<org.openrewrite.java.tree.JavaType.FullyQualified> referencedMains) Methods inherited from class org.openrewrite.ScanningRecipe
clone, generate, generate, getAccumulator, getVisitorMethods inherited from class org.openrewrite.Recipe
addDataTable, aggregateDataTableDescriptors, builder, buildRecipeList, causesAnotherCycle, createRecipeDescriptor, equals, getContributors, getDataTableDescriptors, getDescription, getDescriptor, getDisplayName, getEstimatedEffortPerOccurrence, getExamples, getInstanceName, getInstanceNameSuffix, getJacksonPolymorphicTypeTag, getMaintainers, getName, getRecipeList, getTags, hashCode, maxCycles, noop, onComplete, run, run, run, setContributors, setExamples, validate, validate, validateAll, validateAll, withOptions
-
Constructor Details
-
MigrateMainMethodToInstanceMain
public MigrateMainMethodToInstanceMain()
-
-
Method Details
-
getInitialValue
public Set<org.openrewrite.java.tree.JavaType.FullyQualified> getInitialValue(org.openrewrite.ExecutionContext ctx) - Specified by:
getInitialValuein classorg.openrewrite.ScanningRecipe<Set<org.openrewrite.java.tree.JavaType.FullyQualified>>
-
getScanner
public org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getScanner(Set<org.openrewrite.java.tree.JavaType.FullyQualified> referencedMains) - Specified by:
getScannerin classorg.openrewrite.ScanningRecipe<Set<org.openrewrite.java.tree.JavaType.FullyQualified>>
-
getVisitor
public org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getVisitor(Set<org.openrewrite.java.tree.JavaType.FullyQualified> referencedMains) - Overrides:
getVisitorin classorg.openrewrite.ScanningRecipe<Set<org.openrewrite.java.tree.JavaType.FullyQualified>>
-