refdiff.core.io.SourceFileSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of refdiff-core Show documentation
Show all versions of refdiff-core Show documentation
An automated tool to detect refactorings in version histories
package refdiff.core.io;
import java.io.IOException;
import java.nio.file.Path;
import java.util.List;
import java.util.Optional;
public abstract class SourceFileSet {
private List sourceFiles;
public SourceFileSet(List sourceFiles) {
this.sourceFiles = sourceFiles;
}
public List getSourceFiles() {
return sourceFiles;
}
public abstract String readContent(SourceFile sourceFile) throws IOException;
public Optional getBasePath() {
return Optional.empty();
}
public abstract String describeLocation(SourceFile sourceFile);
public void materializeAt(Path folder) throws IOException {
throw new UnsupportedOperationException();
}
public void materializeAtBase(Path baseFolder) throws IOException {
throw new UnsupportedOperationException();
}
}