Package org.openrewrite
Class FindLstProvenance
- All Implemented Interfaces:
Cloneable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.openrewrite.Recipe
contributors, examples, PANIC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA human-readable description for the recipe, consisting of one or more full sentences ending with a period.A human-readable display name for the recipe, initial capped with no period.A visitor that is called for each source file in the repository in an initial pass.Methods inherited from class org.openrewrite.ScanningRecipe
generate, generate, getAccumulator, getVisitor, getVisitor
Methods inherited from class org.openrewrite.Recipe
addDataTable, causesAnotherCycle, clone, createRecipeDescriptor, equals, getContributors, getDataTableDescriptors, getDescriptor, getEstimatedEffortPerOccurrence, getExamples, getJacksonPolymorphicTypeTag, getMaintainers, getName, getRecipeList, getTags, hashCode, maxCycles, noop, run, run, run, validate, validate, validateAll, validateAll
-
Constructor Details
-
FindLstProvenance
public FindLstProvenance()
-
-
Method Details
-
getDisplayName
Description copied from class:Recipe
A human-readable display name for the recipe, initial capped with no period. For example, "Find text". The display name can be assumed to be rendered in documentation and other places where markdown is understood, so it is possible to use stylistic markers like backticks to indicate types. For example, "Find uses of `java.util.List`".- Specified by:
getDisplayName
in classRecipe
- Returns:
- The display name.
-
getDescription
Description copied from class:Recipe
A human-readable description for the recipe, consisting of one or more full sentences ending with a period."Find methods by pattern." is an example. The description can be assumed to be rendered in documentation and other places where markdown is understood, so it is possible to use stylistic markers like backticks to indicate types. For example, "Find uses of `java.util.List`.".
- Specified by:
getDescription
in classRecipe
- Returns:
- The display name.
-
getInitialValue
- Specified by:
getInitialValue
in classScanningRecipe<FindLstProvenance.Accumulator>
- Returns:
- The initial value of the accumulator before any source files have been iterated over.
-
getScanner
Description copied from class:ScanningRecipe
A visitor that is called for each source file in the repository in an initial pass. Scanning data should be accumulated toacc
. The first source file to visit will receive anacc
value that is supplied byScanningRecipe.getInitialValue(ExecutionContext)
.
Any changes that the scanning visitor makes to the source file will be discarded.- Specified by:
getScanner
in classScanningRecipe<FindLstProvenance.Accumulator>
- Parameters:
acc
- The accumulated scanning data.- Returns:
- A visitor that is called to collect scanning data on each source file.
-