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
-
Field Summary
Fields inherited from class org.openrewrite.Recipe
contributors, examples, NOOP, PANIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected @Nullable org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getName()protected @Nullable org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> protected List<org.openrewrite.SourceFile>Methods inherited from class org.openrewrite.Recipe
addApplicableTest, addApplicableTest, addDataTable, addSingleSourceApplicableTest, addSingleSourceApplicableTest, clone, createRecipeDescriptor, doNext, equals, getApplicableTests, getContributors, getDataTableDescriptors, getDescription, getDescriptor, getEstimatedEffortPerOccurrence, getExamples, getJacksonPolymorphicTypeTag, getLanguages, getMaintainers, getRecipeList, getSingleSourceApplicableTests, getTags, hashCode, noop, run, run, run, run, setContributors, setExamples, validate, validate, validateAll, validateAll
-
Constructor Details
-
AdHocRecipe
public AdHocRecipe()
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayNamein classorg.openrewrite.Recipe
-
getName
- Overrides:
getNamein classorg.openrewrite.Recipe
-
causesAnotherCycle
public boolean causesAnotherCycle()- Overrides:
causesAnotherCyclein classorg.openrewrite.Recipe
-
visit
protected List<org.openrewrite.SourceFile> visit(List<org.openrewrite.SourceFile> before, org.openrewrite.ExecutionContext ctx) - Overrides:
visitin classorg.openrewrite.Recipe
-
getVisitor
public org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getVisitor()- Overrides:
getVisitorin classorg.openrewrite.Recipe
-
getSingleSourceApplicableTest
@Nullable protected @Nullable org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getSingleSourceApplicableTest()- Overrides:
getSingleSourceApplicableTestin classorg.openrewrite.Recipe
-
getApplicableTest
@Nullable protected @Nullable org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getApplicableTest()- Overrides:
getApplicableTestin classorg.openrewrite.Recipe
-