| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 12 | 4 | 4 | 0.976 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 12 | 104 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ClassLoaderReferenceImpl.java |
| 2 | 12 | 70 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ClassObjectReferenceImpl.java |
| 3 | 12 | 514 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ObjectReferenceImpl.java |
| 4 | 12 | 73 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/StringReferenceImpl.java |
| ||||
/**
* @return Reads JDWP representation and returns new instance.
*/
public static ClassLoaderReferenceImpl read(MirrorImpl target, DataInputStream in) throws IOException {
VirtualMachineImpl vmImpl = target.virtualMachineImpl();
JdwpClassLoaderID ID = new JdwpClassLoaderID(vmImpl);
ID.read(in);
if (target.fVerboseWriter != null)
target.fVerboseWriter.println("classLoaderReference", ID.value()); //$NON-NLS-1$
if (ID.isNull())
return null;
ClassLoaderReferenceImpl mirror = new ClassLoaderReferenceImpl(vmImpl, ID);
return mirror;
}
|
| ||||
/**
* @return Reads JDWP representation and returns new instance.
*/
public static ClassObjectReferenceImpl read(MirrorImpl target, DataInputStream in) throws IOException {
VirtualMachineImpl vmImpl = target.virtualMachineImpl();
JdwpClassObjectID ID = new JdwpClassObjectID(vmImpl);
ID.read(in);
if (target.fVerboseWriter != null)
target.fVerboseWriter.println("classObjectReference", ID.value()); //$NON-NLS-1$
if (ID.isNull())
return null;
ClassObjectReferenceImpl mirror = new ClassObjectReferenceImpl(vmImpl, ID);
return mirror;
}
|
| ||||
/**
* @return Reads JDWP representation and returns new instance.
*/
public static ObjectReferenceImpl readObjectRefWithoutTag(MirrorImpl target, DataInputStream in) throws IOException {
VirtualMachineImpl vmImpl = target.virtualMachineImpl();
JdwpObjectID ID = new JdwpObjectID(vmImpl);
ID.read(in);
if (target.fVerboseWriter != null)
target.fVerboseWriter.println("objectReference", ID.value()); //$NON-NLS-1$
if (ID.isNull())
return null;
ObjectReferenceImpl mirror = new ObjectReferenceImpl(vmImpl, ID);
return mirror;
}
|
| ||||
/**
* @return Reads JDWP representation and returns new instance.
*/
public static StringReferenceImpl read(MirrorImpl target, DataInputStream in) throws IOException {
VirtualMachineImpl vmImpl = target.virtualMachineImpl();
JdwpStringID ID = new JdwpStringID(vmImpl);
ID.read(in);
if (target.fVerboseWriter != null)
target.fVerboseWriter.println("stringReference", ID.value()); //$NON-NLS-1$
if (ID.isNull())
return null;
StringReferenceImpl mirror = new StringReferenceImpl(vmImpl, ID);
return mirror;
}
|
| |||
/**
* @return Reads JDWP representation and returns new instance.
*/
public static [[#variable599fc6e0]] [[#variable599fc620]](MirrorImpl target, DataInputStream in) throws IOException {
VirtualMachineImpl vmImpl = target.virtualMachineImpl();
[[#variable599fc5a0]] ID = new [[#variable599fc5a0]](vmImpl);
ID.read(in);
if (target.fVerboseWriter != null)
target.fVerboseWriter.println( [[#variable599fc540]], ID.value()); //$NON-NLS-1$
if (ID.isNull())
return null;
[[#variable599fc6e0]] mirror = new [[#variable599fc6e0]](vmImpl, ID);
return mirror;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#599fc6e0]] | StringReferenceImpl |
| 1 | 2 | [[#599fc6e0]] | ObjectReferenceImpl |
| 1 | 3 | [[#599fc6e0]] | ClassObjectReferenceImpl |
| 1 | 4 | [[#599fc6e0]] | ClassLoaderReferenceImpl |
| 2 | 1 | [[#599fc620]] | read |
| 2 | 2 | [[#599fc620]] | readObjectRefWithoutTag |
| 2 | 3 | [[#599fc620]] | read |
| 2 | 4 | [[#599fc620]] | read |
| 3 | 1 | [[#599fc5a0]] | JdwpStringID |
| 3 | 2 | [[#599fc5a0]] | JdwpObjectID |
| 3 | 3 | [[#599fc5a0]] | JdwpClassObjectID |
| 3 | 4 | [[#599fc5a0]] | JdwpClassLoaderID |
| 4 | 1 | [[#599fc540]] | "stringReference" |
| 4 | 2 | [[#599fc540]] | "objectReference" |
| 4 | 3 | [[#599fc540]] | "classObjectReference" |
| 4 | 4 | [[#599fc540]] | "classLoaderReference" |