| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 15 | 4 | 1 | 0.996 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 15 | 124 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageFragment.java |
| 2 | 15 | 399 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageFragment.java |
| 3 | 15 | 57 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceRefElement.java |
| 4 | 15 | 237 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceRefElement.java |
| ||||
/**
* @see ISourceManipulation
*/
public void copy(IJavaElement container, IJavaElement sibling, String rename, boolean force, IProgressMonitor monitor) throws JavaModelException {
if (container == null) {
throw new IllegalArgumentException(Messages.operation_nullContainer);
}
IJavaElement[] elements = new IJavaElement[] {
this
};
IJavaElement[] containers = new IJavaElement[] {
container
};
IJavaElement[] siblings = null;
if (sibling != null) {
siblings = new IJavaElement[] {
sibling
};
}
String[] renamings = null;
if (rename != null) {
renamings = new String[] {
rename
};
}
getJavaModel().copy(elements, containers, siblings, renamings, force, monitor);
}
|
| ||||
/**
* @see ISourceManipulation#move(IJavaElement, IJavaElement, String, boolean, IProgressMonitor)
*/
public void move(IJavaElement container, IJavaElement sibling, String rename, boolean force, IProgressMonitor monitor) throws JavaModelException {
if (container == null) {
throw new IllegalArgumentException(Messages.operation_nullContainer);
}
IJavaElement[] elements = new IJavaElement[] {
this
};
IJavaElement[] containers = new IJavaElement[] {
container
};
IJavaElement[] siblings = null;
if (sibling != null) {
siblings = new IJavaElement[] {
sibling
};
}
String[] renamings = null;
if (rename != null) {
renamings = new String[] {
rename
};
}
getJavaModel().move(elements, containers, siblings, renamings, force, monitor);
}
|
| ||||
/**
* @see ISourceManipulation
*/
public void copy(IJavaElement container, IJavaElement sibling, String rename, boolean force, IProgressMonitor monitor) throws JavaModelException {
if (container == null) {
throw new IllegalArgumentException(Messages.operation_nullContainer);
}
IJavaElement[] elements = new IJavaElement[] {
this
};
IJavaElement[] containers = new IJavaElement[] {
container
};
IJavaElement[] siblings = null;
if (sibling != null) {
siblings = new IJavaElement[] {
sibling
};
}
String[] renamings = null;
if (rename != null) {
renamings = new String[] {
rename
};
}
getJavaModel().copy(elements, containers, siblings, renamings, force, monitor);
}
|
| ||||
/**
* @see ISourceManipulation
*/
public void move(IJavaElement container, IJavaElement sibling, String rename, boolean force, IProgressMonitor monitor) throws JavaModelException {
if (container == null) {
throw new IllegalArgumentException(Messages.operation_nullContainer);
}
IJavaElement[] elements = new IJavaElement[] {
this
};
IJavaElement[] containers = new IJavaElement[] {
container
};
IJavaElement[] siblings = null;
if (sibling != null) {
siblings = new IJavaElement[] {
sibling
};
}
String[] renamings = null;
if (rename != null) {
renamings = new String[] {
rename
};
}
getJavaModel().move(elements, containers, siblings, renamings, force, monitor);
}
|
| |||
/**
* @see ISourceManipulation
*/
/**
* @see ISourceManipulation#move(IJavaElement, IJavaElement, String, boolean, IProgressMonitor)
*/
public void [[#variableb4301ee0]](IJavaElement container, IJavaElement sibling, String rename, boolean force, IProgressMonitor monitor) throws JavaModelException {
if (container == null) {
throw new IllegalArgumentException(Messages.operation_nullContainer);
}
IJavaElement[] elements = new IJavaElement[] {
this
};
IJavaElement[] containers = new IJavaElement[] {
container
};
IJavaElement[] siblings = null;
if (sibling != null) {
siblings = new IJavaElement[] {
sibling
};
}
String[] renamings = null;
if (rename != null) {
renamings = new String[] {
rename
};
}
getJavaModel(). [[#variableb4301ee0]](elements, containers, siblings, renamings, force, monitor);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b4301ee0]] | copy |
| 1 | 2 | [[#b4301ee0]] | move |
| 1 | 3 | [[#b4301ee0]] | copy |
| 1 | 4 | [[#b4301ee0]] | move |