org.refactoringminer.astDiff.actions.model.MoveIn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of refactoring-miner Show documentation
Show all versions of refactoring-miner Show documentation
RefactoringMiner is a library/API written in Java that can detect refactorings applied in the history of a Java project.
package org.refactoringminer.astDiff.actions.model;
import com.github.gumtreediff.actions.model.TreeAddition;
import com.github.gumtreediff.tree.Tree;
/**
* @author Pourya Alikhani Fard [email protected]
*/
public class MoveIn extends TreeAddition {
private String srcFile;
public MoveIn(Tree node, Tree parent, String srcFile, int pos) {
super(node, parent, pos);
this.srcFile = srcFile;
}
public String getSrcFile() {
return srcFile;
}
@Override
public String getName() {
return "M";
}
@Override
public String toString() {
return "Moved from File: " + getSrcFile();
}
}