Package org.openrewrite.test
Class AdHocRecipe
java.lang.Object
org.openrewrite.Recipe
org.openrewrite.test.AdHocRecipe
- All Implemented Interfaces:
Cloneable
public class AdHocRecipe
extends org.openrewrite.Recipe
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openrewrite.Recipe
org.openrewrite.Recipe.DelegatingRecipe -
Field Summary
Fields inherited from class org.openrewrite.Recipe
contributors, examples, PANIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanList<org.openrewrite.Maintainer>getName()org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> intwithGenerator(Supplier<Collection<org.openrewrite.SourceFile>> generator) Methods inherited from class org.openrewrite.Recipe
addDataTable, clone, createRecipeDescriptor, equals, getContributors, getDataTableDescriptors, getDescriptor, getEstimatedEffortPerOccurrence, getExamples, getInstanceName, getInstanceNameSuffix, getJacksonPolymorphicTypeTag, getRecipeList, getTags, hashCode, noop, run, run, run, setContributors, setExamples, validate, validate, validateAll, validateAll
-
Constructor Details
-
AdHocRecipe
public AdHocRecipe()
-
-
Method Details
-
withGenerator
public AdHocScanningRecipe withGenerator(Supplier<Collection<org.openrewrite.SourceFile>> generator) -
getDisplayName
- Specified by:
getDisplayNamein classorg.openrewrite.Recipe
-
getDescription
- Specified by:
getDescriptionin classorg.openrewrite.Recipe
-
getName
- Overrides:
getNamein classorg.openrewrite.Recipe
-
causesAnotherCycle
public boolean causesAnotherCycle()- Overrides:
causesAnotherCyclein classorg.openrewrite.Recipe
-
maxCycles
public int maxCycles()- Overrides:
maxCyclesin classorg.openrewrite.Recipe
-
getMaintainers
- Overrides:
getMaintainersin classorg.openrewrite.Recipe
-
getVisitor
public org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getVisitor()- Overrides:
getVisitorin classorg.openrewrite.Recipe
-