All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.refactoringminer.astDiff.actions.ProjectASTDiff Maven / Gradle / Ivy

package org.refactoringminer.astDiff.actions;

import org.refactoringminer.api.Refactoring;

import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class ProjectASTDiff {
	private final Set diffSet = new LinkedHashSet<>();
	private Map fileContentsBefore;
	private Map fileContentsAfter;
	private List refactorings;

	public ProjectASTDiff(Map fileContentsBefore, Map fileContentsAfter) {
		this.fileContentsBefore = fileContentsBefore;
		this.fileContentsAfter = fileContentsAfter;
	}

	public Map getFileContentsBefore() {
		return fileContentsBefore;
	}

	public Map getFileContentsAfter() {
		return fileContentsAfter;
	}

	public Set getDiffSet() {
		return diffSet;
	}

	public void addASTDiff(ASTDiff diff) {
		diffSet.add(diff);
	}

	public void setRefactorings(List refactorings) {this.refactorings = refactorings;}

	public List getRefactorings() { return refactorings;}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy