Package org.openrewrite
Class Result
java.lang.Object
org.openrewrite.Result
-
Constructor Summary
ConstructorsConstructorDescriptionResult
(@Nullable SourceFile before, @Nullable SourceFile after, Collection<List<Recipe>> recipes) Result
(@Nullable SourceFile before, SourceFile after) -
Method Summary
Modifier and TypeMethodDescriptiondiff()
diff
(@Nullable Path relativeTo, PrintOutputCapture.MarkerPrinter markerPrinter) diff
(@Nullable Path relativeTo, PrintOutputCapture.MarkerPrinter markerPrinter, @Nullable Boolean ignoreAllWhitespace) Return a list of recipes that have made changes as a hierarchy of descriptors.toString()
-
Constructor Details
-
Result
public Result(@Nullable @Nullable SourceFile before, @Nullable @Nullable SourceFile after, Collection<List<Recipe>> recipes) -
Result
-
-
Method Details
-
getRecipeDescriptorsThatMadeChanges
Return a list of recipes that have made changes as a hierarchy of descriptors. The method transforms the flat, stack-based representation into descriptors where children are grouped under their common parents. -
diff
- Returns:
- Git-style patch diff representing the changes to this compilation unit.
-
diff
- Parameters:
relativeTo
- Optional relative path that is used to relativize file paths of reported differences.- Returns:
- Git-style patch diff representing the changes to this compilation unit.
-
diff
-
diff
-
diff
-
toString
-