Package org.openrewrite.java
Class ReorderMethodArguments
java.lang.Object
org.openrewrite.Recipe
org.openrewrite.java.ReorderMethodArguments
- All Implemented Interfaces:
Cloneable
public class ReorderMethodArguments
extends org.openrewrite.Recipe
This recipe finds method invocations matching the given method pattern and reorders the arguments based on the ordered
array of parameter names.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.openrewrite.Recipe
contributors, examples, NOOP, PANIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JavaVisitor<org.openrewrite.ExecutionContext>JavaVisitor<org.openrewrite.ExecutionContext>Methods inherited from class org.openrewrite.Recipe
addApplicableTest, addApplicableTest, addDataTable, addSingleSourceApplicableTest, addSingleSourceApplicableTest, causesAnotherCycle, clone, createRecipeDescriptor, doNext, equals, getApplicableTest, getApplicableTests, getContributors, getDataTableDescriptors, getDescriptor, getEstimatedEffortPerOccurrence, getExamples, getJacksonPolymorphicTypeTag, getLanguages, getMaintainers, getName, getRecipeList, getSingleSourceApplicableTests, getTags, hashCode, noop, run, run, run, run, setContributors, setExamples, validate, validate, validateAll, validateAll, visit
-
Constructor Details
-
ReorderMethodArguments
public ReorderMethodArguments()
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayNamein classorg.openrewrite.Recipe
-
getDescription
- Overrides:
getDescriptionin classorg.openrewrite.Recipe
-
getSingleSourceApplicableTest
- Overrides:
getSingleSourceApplicableTestin classorg.openrewrite.Recipe
-
getVisitor
- Overrides:
getVisitorin classorg.openrewrite.Recipe
-