Package org.openrewrite
Class Result
- java.lang.Object
-
- org.openrewrite.Result
-
public class Result extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Result(@Nullable SourceFile before, @Nullable SourceFile after, java.util.Collection<java.util.Stack<Recipe>> recipes)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Stringdiff()java.lang.Stringdiff(@Nullable java.nio.file.Path relativeTo)java.util.Set<Recipe>getRecipesThatMadeChanges()Deprecated.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Result
public Result(@Nullable @Nullable SourceFile before, @Nullable @Nullable SourceFile after, java.util.Collection<java.util.Stack<Recipe>> recipes)
-
-
Method Detail
-
getRecipesThatMadeChanges
@Deprecated public java.util.Set<Recipe> getRecipesThatMadeChanges()
Deprecated.
-
diff
public java.lang.String diff()
- Returns:
- Git-style patch diff representing the changes to this compilation unit.
-
diff
public java.lang.String diff(@Nullable @Nullable java.nio.file.Path relativeTo)
- 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.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-