public class FixReplacementInterpreter
extends java.lang.Object
FixReplacement
s.Constructor and Description |
---|
FixReplacementInterpreter(FileContentUtil fileContentUtil) |
Modifier and Type | Method and Description |
---|---|
java.util.List<TreeModification> |
toTreeModifications(org.eclipse.jgit.lib.Repository repository,
ProjectState projectState,
org.eclipse.jgit.lib.ObjectId patchSetCommitId,
java.util.List<FixReplacement> fixReplacements)
Transforms the given
FixReplacement s into TreeModification s. |
@Inject public FixReplacementInterpreter(FileContentUtil fileContentUtil)
public java.util.List<TreeModification> toTreeModifications(org.eclipse.jgit.lib.Repository repository, ProjectState projectState, org.eclipse.jgit.lib.ObjectId patchSetCommitId, java.util.List<FixReplacement> fixReplacements) throws ResourceNotFoundException, java.io.IOException, ResourceConflictException
FixReplacement
s into TreeModification
s.repository
- the affected Git repositoryprojectState
- the affected projectpatchSetCommitId
- the patch set which should be modifiedfixReplacements
- the replacements which should be appliedTreeModification
s representing the given replacementsResourceNotFoundException
- if a file to which one of the replacements refers doesn't
existResourceConflictException
- if the replacements can't be transformed into TreeModification
sjava.io.IOException