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

org.refactoringminer.astDiff.actions.model.MoveIn Maven / Gradle / Ivy

Go to download

RefactoringMiner is a library/API written in Java that can detect refactorings applied in the history of a Java project.

There is a newer version: 3.0.9
Show newest version
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();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy