public boolean compatibleWith(MoveAttributeRefactoring ref) { if(ref.getMovedAttribute().getClassName().equals(this.movedOperation.getClassName()) && ref.getOriginalAttribute().getClassName().equals(this.originalOperation.getClassName())) { List<String> originalOperationVariables = this.originalOperation.getAllVariables(); List<String> movedOperationVariables = this.movedOperation.getAllVariables(); return originalOperationVariables.contains(ref.getOriginalAttribute().getName()) && movedOperationVariables.contains(ref.getMovedAttribute().getName()); } return false; } }
} else if (r instanceof MoveAttributeRefactoring) { MoveAttributeRefactoring ref = (MoveAttributeRefactoring) r; String attrName = ref.getMovedAttribute().getName(); rs.add(new RefactoringRelationship(r.getRefactoringType(), ref.getSourceClassName() + "#" + attrName, ref.getTargetClassName() + "#" + attrName)); } else {
} else if (r instanceof MoveAttributeRefactoring) { MoveAttributeRefactoring ref = (MoveAttributeRefactoring) r; String attrName = ref.getMovedAttribute().getName(); rs.add(new RefactoringRelationship(refactoringTypeOf(r), ref.getSourceClassName() + "#" + attrName, ref.getTargetClassName() + "#" + attrName)); } else if (r instanceof MoveClassFolderRefactoring) {
} else if (r instanceof MoveAttributeRefactoring) { MoveAttributeRefactoring ref = (MoveAttributeRefactoring) r; String attrName = ref.getMovedAttribute().getName(); rs.add(new RefactoringRelationship(r.getRefactoringType(), ref.getSourceClassName() + "#" + attrName, ref.getTargetClassName() + "#" + attrName)); } else {