gr.uom.java.xmi.decomposition.replacement.MethodInvocationReplacement 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 gr.uom.java.xmi.decomposition.replacement;
import gr.uom.java.xmi.decomposition.OperationInvocation;
public class MethodInvocationReplacement extends Replacement {
private OperationInvocation invokedOperationBefore;
private OperationInvocation invokedOperationAfter;
public MethodInvocationReplacement(String before, String after,
OperationInvocation invokedOperationBefore, OperationInvocation invokedOperationAfter,
ReplacementType type) {
super(before, after, type);
this.invokedOperationBefore = invokedOperationBefore;
this.invokedOperationAfter = invokedOperationAfter;
}
public OperationInvocation getInvokedOperationBefore() {
return invokedOperationBefore;
}
public OperationInvocation getInvokedOperationAfter() {
return invokedOperationAfter;
}
public boolean differentExpressionNameAndArguments() {
return invokedOperationBefore.differentExpressionNameAndArguments(invokedOperationAfter);
}
}