Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 3 | 0.972 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 345 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java |
2 | 4 | 364 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java |
| ||||
/** * Creates a new rename support for the given {@link ITypeParameter}. * * @param parameter the {@link ITypeParameter} to be renamed. * @param newName the parameter's new name. <code>null</code> is a valid value * indicating that no new name is provided. * @param flags flags controlling additional parameters. Valid flags are * <code>UPDATE_REFERENCES</code>, or <code>NONE</code>. * @return the {@link RenameSupport}. * @throws CoreException if an unexpected error occurred while creating * the {@link RenameSupport}. * @since 3.1 */ public static RenameSupport create(ITypeParameter parameter, String newName, int flags) throws CoreException { RenameTypeParameterProcessor processor = new RenameTypeParameterProcessor(parameter); processor.setUpdateReferences(updateReferences(flags)); return new RenameSupport(processor, newName, flags); } |
| ||||
/** * Creates a new rename support for the given {@link ILocalVariable}. * * @param variable the {@link ILocalVariable} to be renamed. * @param newName the variable's new name. <code>null</code> is a valid value * indicating that no new name is provided. * @param flags flags controlling additional parameters. Valid flags are * <code>UPDATE_REFERENCES</code>, or <code>NONE</code>. * @return the {@link RenameSupport}. * @throws CoreException if an unexpected error occurred while creating * the {@link RenameSupport}. * @since 3.1 */ public static RenameSupport create(ILocalVariable variable, String newName, int flags) throws CoreException { RenameLocalVariableProcessor processor = new RenameLocalVariableProcessor(variable); processor.setUpdateReferences(updateReferences(flags)); return new RenameSupport(processor, newName, flags); } |
| |||
/** * Creates a new rename support for the given {@link ITypeParameter}. * * @param parameter the {@link ITypeParameter} to be renamed. * @param newName the parameter's new name. <code>null</code> is a valid value * indicating that no new name is provided. * @param flags flags controlling additional parameters. Valid flags are * <code>UPDATE_REFERENCES</code>, or <code>NONE</code>. * @return the {@link RenameSupport}. * @throws CoreException if an unexpected error occurred while creating * the {@link RenameSupport}. * @since 3.1 */ /** * Creates a new rename support for the given {@link ILocalVariable}. * * @param variable the {@link ILocalVariable} to be renamed. * @param newName the variable's new name. <code>null</code> is a valid value * indicating that no new name is provided. * @param flags flags controlling additional parameters. Valid flags are * <code>UPDATE_REFERENCES</code>, or <code>NONE</code>. * @return the {@link RenameSupport}. * @throws CoreException if an unexpected error occurred while creating * the {@link RenameSupport}. * @since 3.1 */ public static RenameSupport create( [[#variable9d174240]] [[#variable9cef26a0]], String newName, int flags) throws CoreException { [[#variable9cef27a0]] processor = new [[#variable9cef27a0]]( [[#variable9cef26a0]]); processor.setUpdateReferences(updateReferences(flags)); return new RenameSupport(processor, newName, flags); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9d174240]] | ITypeParameter |
1 | 2 | [[#9d174240]] | ILocalVariable |
2 | 1 | [[#9cef26a0]] | parameter |
2 | 2 | [[#9cef26a0]] | variable |
3 | 1 | [[#9cef27a0]] | RenameTypeParameterProcessor |
3 | 2 | [[#9cef27a0]] | RenameLocalVariableProcessor |