| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 26 | 5 | 6 | 0.962 | compilation_unit |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 26 | 11 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/scripting/ExtractInterfaceRefactoringContribution.java |
| 2 | 26 | 11 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/scripting/ExtractSupertypeRefactoringContribution.java |
| 3 | 26 | 11 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/scripting/MoveMethodRefactoringContribution.java |
| 4 | 26 | 11 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/scripting/MoveStaticMembersRefactoringContribution.java |
| 5 | 26 | 11 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/scripting/PullUpRefactoringContribution.java |
| ||||
/*******************************************************************************
* Copyright (c) 2005, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.corext.refactoring.scripting;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.ltk.core.refactoring.Refactoring;
import org.eclipse.ltk.core.refactoring.RefactoringDescriptor;
import org.eclipse.jdt.internal.corext.refactoring.JavaRefactoringContribution;
import org.eclipse.jdt.internal.corext.refactoring.structure.ExtractInterfaceProcessor;
import org.eclipse.jdt.internal.corext.refactoring.structure.ExtractInterfaceRefactoring;
/**
* Refactoring contribution for the extract interface refactoring.
*
* @since 3.2
*/
public final class ExtractInterfaceRefactoringContribution extends JavaRefactoringContribution {
/**
* {@inheritDoc}
*/
public final Refactoring createRefactoring( final RefactoringDescriptor descriptor) throws CoreException {
return new ExtractInterfaceRefactoring(new ExtractInterfaceProcessor(null, null));
}
}
|
| ||||
/*******************************************************************************
* Copyright (c) 2005, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.corext.refactoring.scripting;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.ltk.core.refactoring.Refactoring;
import org.eclipse.ltk.core.refactoring.RefactoringDescriptor;
import org.eclipse.jdt.internal.corext.refactoring.JavaRefactoringContribution;
import org.eclipse.jdt.internal.corext.refactoring.structure.ExtractSupertypeProcessor;
import org.eclipse.jdt.internal.corext.refactoring.structure.ExtractSupertypeRefactoring;
/**
* Refactoring contribution for the extract supertype refactoring.
*
* @since 3.2
*/
public final class ExtractSupertypeRefactoringContribution extends JavaRefactoringContribution {
/**
* {@inheritDoc}
*/
public final Refactoring createRefactoring( final RefactoringDescriptor descriptor) throws CoreException {
return new ExtractSupertypeRefactoring(new ExtractSupertypeProcessor(null, null));
}
}
|
| ||||
/*******************************************************************************
* Copyright (c) 2005, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.corext.refactoring.scripting;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.ltk.core.refactoring.Refactoring;
import org.eclipse.ltk.core.refactoring.RefactoringDescriptor;
import org.eclipse.jdt.internal.corext.refactoring.JavaRefactoringContribution;
import org.eclipse.jdt.internal.corext.refactoring.structure.MoveInstanceMethodProcessor;
import org.eclipse.jdt.internal.corext.refactoring.structure.MoveInstanceMethodRefactoring;
/**
* Refactoring contribution for the move method refactoring.
*
* @since 3.2
*/
public final class MoveMethodRefactoringContribution extends JavaRefactoringContribution {
/**
* {@inheritDoc}
*/
public Refactoring createRefactoring( final RefactoringDescriptor descriptor) throws CoreException {
return new MoveInstanceMethodRefactoring(new MoveInstanceMethodProcessor(null, null));
}
}
|
| ||||
/*******************************************************************************
* Copyright (c) 2005, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.corext.refactoring.scripting;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.ltk.core.refactoring.Refactoring;
import org.eclipse.ltk.core.refactoring.RefactoringDescriptor;
import org.eclipse.jdt.internal.corext.refactoring.JavaRefactoringContribution;
import org.eclipse.jdt.internal.corext.refactoring.structure.JavaMoveRefactoring;
import org.eclipse.jdt.internal.corext.refactoring.structure.MoveStaticMembersProcessor;
/**
* Refactoring contribution for the move static members refactoring.
*
* @since 3.2
*/
public final class MoveStaticMembersRefactoringContribution extends JavaRefactoringContribution {
/**
* {@inheritDoc}
*/
public Refactoring createRefactoring( final RefactoringDescriptor descriptor) throws CoreException {
return new JavaMoveRefactoring(new MoveStaticMembersProcessor(null, null));
}
}
|
| ||||
/*******************************************************************************
* Copyright (c) 2005, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.corext.refactoring.scripting;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.ltk.core.refactoring.Refactoring;
import org.eclipse.ltk.core.refactoring.RefactoringDescriptor;
import org.eclipse.jdt.internal.corext.refactoring.JavaRefactoringContribution;
import org.eclipse.jdt.internal.corext.refactoring.structure.PullUpRefactoring;
import org.eclipse.jdt.internal.corext.refactoring.structure.PullUpRefactoringProcessor;
/**
* Refactoring contribution for the pull up refactoring.
*
* @since 3.2
*/
public final class PullUpRefactoringContribution extends JavaRefactoringContribution {
/**
* {@inheritDoc}
*/
public final Refactoring createRefactoring( final RefactoringDescriptor descriptor) throws CoreException {
return new PullUpRefactoring(new PullUpRefactoringProcessor(null, null));
}
}
|
| |||
/*******************************************************************************
* Copyright (c) 2005, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.corext.refactoring.scripting;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.ltk.core.refactoring.Refactoring;
import org.eclipse.ltk.core.refactoring.RefactoringDescriptor;
import org.eclipse.jdt.internal.corext.refactoring.JavaRefactoringContribution;
import org.eclipse.jdt.internal.corext.refactoring.structure. [[#variable97f7a0e0]];
import org.eclipse.jdt.internal.corext.refactoring.structure. [[#variable97f7a080]];
/**
* Refactoring contribution for the extract interface refactoring.
*
* @since 3.2
*/
/**
* Refactoring contribution for the extract supertype refactoring.
*
* @since 3.2
*/
/**
* Refactoring contribution for the move method refactoring.
*
* @since 3.2
*/
/**
* Refactoring contribution for the move static members refactoring.
*
* @since 3.2
*/
/**
* Refactoring contribution for the pull up refactoring.
*
* @since 3.2
*/
public final class [[#variable97f7a040]]extends JavaRefactoringContribution {
[[#variable59b79b40]]Refactoring createRefactoring( final RefactoringDescriptor descriptor) throws CoreException {
return new [[#variable59b79b00]](new [[#variable59b791e0]](null, null));
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#97f7a0e0]] | ExtractInterfaceProcessor |
| 1 | 2 | [[#97f7a0e0]] | ExtractSupertypeProcessor |
| 1 | 3 | [[#97f7a0e0]] | MoveInstanceMethodProcessor |
| 1 | 4 | [[#97f7a0e0]] | JavaMoveRefactoring |
| 1 | 5 | [[#97f7a0e0]] | PullUpRefactoring |
| 2 | 1 | [[#97f7a080]] | ExtractInterfaceRefactoring |
| 2 | 2 | [[#97f7a080]] | ExtractSupertypeRefactoring |
| 2 | 3 | [[#97f7a080]] | MoveInstanceMethodRefactoring |
| 2 | 4 | [[#97f7a080]] | MoveStaticMembersProcessor |
| 2 | 5 | [[#97f7a080]] | PullUpRefactoringProcessor |
| 3 | 1 | [[#97f7a040]] | ExtractInterfaceRefactoringContribution |
| 3 | 2 | [[#97f7a040]] | ExtractSupertypeRefactoringContribution |
| 3 | 3 | [[#97f7a040]] | MoveMethodRefactoringContribution |
| 3 | 4 | [[#97f7a040]] | MoveStaticMembersRefactoringContribution |
| 3 | 5 | [[#97f7a040]] | PullUpRefactoringContribution |
| 4 | 1 | [[#59b79b40]] | /**
* {@inheritDoc}
*/
public final |
| 4 | 2 | [[#59b79b40]] | /**
* {@inheritDoc}
*/
public final |
| 4 | 3 | [[#59b79b40]] | /**
* {@inheritDoc}
*/
public |
| 4 | 4 | [[#59b79b40]] | /**
* {@inheritDoc}
*/
public |
| 4 | 5 | [[#59b79b40]] | /**
* {@inheritDoc}
*/
public final |
| 5 | 1 | [[#59b79b00]] | ExtractInterfaceRefactoring |
| 5 | 2 | [[#59b79b00]] | ExtractSupertypeRefactoring |
| 5 | 3 | [[#59b79b00]] | MoveInstanceMethodRefactoring |
| 5 | 4 | [[#59b79b00]] | JavaMoveRefactoring |
| 5 | 5 | [[#59b79b00]] | PullUpRefactoring |
| 6 | 1 | [[#59b791e0]] | ExtractInterfaceProcessor |
| 6 | 2 | [[#59b791e0]] | ExtractSupertypeProcessor |
| 6 | 3 | [[#59b791e0]] | MoveInstanceMethodProcessor |
| 6 | 4 | [[#59b791e0]] | MoveStaticMembersProcessor |
| 6 | 5 | [[#59b791e0]] | PullUpRefactoringProcessor |