Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
20 | 2 | 6 | 0.978 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 20 | 1637 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaModelManager.java |
2 | 20 | 1662 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaModelManager.java |
| ||||
/** * Returns the name of the variables for which an CP variable initializer is registered through an extension point */ public static String[] getRegisteredVariableNames() { Plugin jdtCorePlugin = JavaCore.getPlugin(); if (jdtCorePlugin == null) return null; ArrayList variableList = new ArrayList(5); IExtensionPoint extension = Platform.getExtensionRegistry().getExtensionPoint(JavaCore.PLUGIN_ID, JavaModelManager.CPVARIABLE_INITIALIZER_EXTPOINT_ID); if (extension != null) { IExtension[] extensions = extension.getExtensions(); for (int i = 0; i < extensions.length; i++) { IConfigurationElement [] configElements = extensions[i].getConfigurationElements(); for (int j = 0; j < configElements.length; j++) { String varAttribute = configElements[j].getAttribute("variable"); //$NON-NLS-1$ if (varAttribute != null) variableList.add(varAttribute); } } } String[] variableNames = new String[variableList.size()]; variableList.toArray(variableNames); return variableNames; } |
| ||||
/** * Returns the name of the container IDs for which an CP container initializer is registered through an extension point */ public static String[] getRegisteredContainerIDs() { Plugin jdtCorePlugin = JavaCore.getPlugin(); if (jdtCorePlugin == null) return null; ArrayList containerIDList = new ArrayList(5); IExtensionPoint extension = Platform.getExtensionRegistry().getExtensionPoint(JavaCore.PLUGIN_ID, JavaModelManager.CPCONTAINER_INITIALIZER_EXTPOINT_ID); if (extension != null) { IExtension[] extensions = extension.getExtensions(); for (int i = 0; i < extensions.length; i++) { IConfigurationElement [] configElements = extensions[i].getConfigurationElements(); for (int j = 0; j < configElements.length; j++) { String idAttribute = configElements[j].getAttribute("id"); //$NON-NLS-1$ if (idAttribute != null) containerIDList.add(idAttribute); } } } String[] containerIDs = new String[containerIDList.size()]; containerIDList.toArray(containerIDs); return containerIDs; } |
| |||
/** * Returns the name of the variables for which an CP variable initializer is registered through an extension point */ /** * Returns the name of the container IDs for which an CP container initializer is registered through an extension point */ public static String[] [[#variableb25b7e60]]() { Plugin jdtCorePlugin = JavaCore.getPlugin(); if (jdtCorePlugin == null) return null; ArrayList [[#variableb25b7dc0]]= new ArrayList(5); IExtensionPoint extension = Platform.getExtensionRegistry().getExtensionPoint(JavaCore.PLUGIN_ID, JavaModelManager. [[#variableb25b6240]]); if (extension != null) { IExtension[] extensions = extension.getExtensions(); for (int i = 0; i < extensions.length; i++) { IConfigurationElement[] configElements = extensions[i].getConfigurationElements(); for (int j = 0; j < configElements.length; j++) { String [[#variableb25b61e0]]= configElements[j].getAttribute( [[#variableb25b6340]]); //$NON-NLS-1$ if ( [[#variableb25b61e0]]!= null) [[#variableb25b7dc0]].add( [[#variableb25b61e0]]); } } } String[] [[#variableb25b7e00]]= new String[ [[#variableb25b7dc0]].size()]; [[#variableb25b7dc0]].toArray( [[#variableb25b7e00]]); return [[#variableb25b7e00]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b25b7e60]] | getRegisteredVariableNames |
1 | 2 | [[#b25b7e60]] | getRegisteredContainerIDs |
2 | 1 | [[#b25b7dc0]] | variableList |
2 | 2 | [[#b25b7dc0]] | containerIDList |
3 | 1 | [[#b25b6240]] | CPVARIABLE_INITIALIZER_EXTPOINT_ID |
3 | 2 | [[#b25b6240]] | CPCONTAINER_INITIALIZER_EXTPOINT_ID |
4 | 1 | [[#b25b61e0]] | varAttribute |
4 | 2 | [[#b25b61e0]] | idAttribute |
5 | 1 | [[#b25b6340]] | "variable" |
5 | 2 | [[#b25b6340]] | "id" |
6 | 1 | [[#b25b7e00]] | variableNames |
6 | 2 | [[#b25b7e00]] | containerIDs |