gumtree.spoon.diff.operations.MoveOperation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gumtree-spoon-ast-diff Show documentation
Show all versions of gumtree-spoon-ast-diff Show documentation
Computes the AST difference between two Spoon abstract syntax trees using the Gumtree algorithm.
package gumtree.spoon.diff.operations;
import com.github.gumtreediff.actions.model.Move;
import spoon.reflect.declaration.CtElement;
public class MoveOperation extends TreeAdditionOperation {
public MoveOperation(Move action) {
super(action);
}
@Override
public CtElement getDstNode() {
return (CtElement) getAction().getNode().getMetadata("spoon_object_dest");
}
}