Package io.codemodder.remediation
Interface SuccessOrReason
public interface SuccessOrReason
Represents the result of a strategy fix. Either a list of dependencies to be added, or a reason
for failure.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the dependencies to be added from a successful fix.Returns the reason for failure.boolean
Checks if the result is a success.static SuccessOrReason
static SuccessOrReason
success()
static SuccessOrReason
success
(List<DependencyGAV> dependencies)
-
Method Details
-
isSuccess
boolean isSuccess()Checks if the result is a success. -
getDependencies
List<DependencyGAV> getDependencies()Returns the dependencies to be added from a successful fix. -
getReason
String getReason()Returns the reason for failure. Throw an exception if it's not a failure. -
success
-
success
-
reason
-