Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
41 | 3 | 4 | 0.977 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 41 | 11 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/event/ThreadDeathEventImpl.java |
2 | 41 | 11 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/event/ThreadStartEventImpl.java |
3 | 41 | 11 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/event/VMStartEventImpl.java |
| ||||
/******************************************************************************* * Copyright (c) 2000, 2005 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.jdi.internal.event; import java.io.DataInputStream; import java.io.IOException; import org.eclipse.jdi.internal.MirrorImpl; import org.eclipse.jdi.internal.ThreadReferenceImpl; import org.eclipse.jdi.internal.VirtualMachineImpl; import org.eclipse.jdi.internal.request.RequestID; import com.sun.jdi.event.ThreadDeathEvent; /** * this class implements the corresponding interfaces * declared by the JDI specification. See the com.sun.jdi package * for more information. * */ public class ThreadDeathEventImpl extends EventImpl implements ThreadDeathEvent { /** Jdwp Event Kind. */ public static final byte EVENT_KIND = EVENT_THREAD_DEATH; /** * Creates new ThreadDeathEventImpl. */ private ThreadDeathEventImpl(VirtualMachineImpl vmImpl, RequestID requestID) { super("ThreadDeathEvent", vmImpl, requestID); //$NON-NLS-1$ } /** * @return Creates, reads and returns new EventImpl, of which requestID has already been read. */ public static ThreadDeathEventImpl read(MirrorImpl target, RequestID requestID, DataInputStream dataInStream) throws IOException { VirtualMachineImpl vmImpl = target.virtualMachineImpl(); ThreadDeathEventImpl event = new ThreadDeathEventImpl(vmImpl, requestID); event.fThreadRef = ThreadReferenceImpl.read(target, dataInStream); return event; } } |
| ||||
/******************************************************************************* * Copyright (c) 2000, 2005 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.jdi.internal.event; import java.io.DataInputStream; import java.io.IOException; import org.eclipse.jdi.internal.MirrorImpl; import org.eclipse.jdi.internal.ThreadReferenceImpl; import org.eclipse.jdi.internal.VirtualMachineImpl; import org.eclipse.jdi.internal.request.RequestID; import com.sun.jdi.event.ThreadStartEvent; /** * this class implements the corresponding interfaces * declared by the JDI specification. See the com.sun.jdi package * for more information. * */ public class ThreadStartEventImpl extends EventImpl implements ThreadStartEvent { /** Jdwp Event Kind. */ public static final byte EVENT_KIND = EVENT_THREAD_START; /** * Creates new ThreadDeathEventImpl. */ private ThreadStartEventImpl(VirtualMachineImpl vmImpl, RequestID requestID) { super("ThreadStartEvent", vmImpl, requestID); //$NON-NLS-1$ } /** * @return Creates, reads and returns new EventImpl, of which requestID has already been read. */ public static ThreadStartEventImpl read(MirrorImpl target, RequestID requestID, DataInputStream dataInStream) throws IOException { VirtualMachineImpl vmImpl = target.virtualMachineImpl(); ThreadStartEventImpl event = new ThreadStartEventImpl(vmImpl, requestID); event.fThreadRef = ThreadReferenceImpl.read(target, dataInStream); return event; } } |
| ||||
/******************************************************************************* * Copyright (c) 2000, 2005 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.jdi.internal.event; import java.io.DataInputStream; import java.io.IOException; import org.eclipse.jdi.internal.MirrorImpl; import org.eclipse.jdi.internal.ThreadReferenceImpl; import org.eclipse.jdi.internal.VirtualMachineImpl; import org.eclipse.jdi.internal.request.RequestID; import com.sun.jdi.event.VMStartEvent; /** * this class implements the corresponding interfaces * declared by the JDI specification. See the com.sun.jdi package * for more information. * */ public class VMStartEventImpl extends EventImpl implements VMStartEvent { /** Jdwp Event Kind. */ public static final byte EVENT_KIND = EVENT_VM_START; /** * Creates new VMStartEventImpl. */ private VMStartEventImpl(VirtualMachineImpl vmImpl, RequestID requestID) { super("VMStartEvent", vmImpl, requestID); //$NON-NLS-1$ } /** * @return Creates, reads and returns new EventImpl, of which requestID has already been read. */ public static VMStartEventImpl read(MirrorImpl target, RequestID requestID, DataInputStream dataInStream) throws IOException { VirtualMachineImpl vmImpl = target.virtualMachineImpl(); VMStartEventImpl event = new VMStartEventImpl(vmImpl, requestID); event.fThreadRef = ThreadReferenceImpl.read(target, dataInStream); return event; } } |
| |||
/******************************************************************************* * Copyright (c) 2000, 2005 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.jdi.internal.event; import java.io.DataInputStream; import java.io.IOException; import org.eclipse.jdi.internal.MirrorImpl; import org.eclipse.jdi.internal.ThreadReferenceImpl; import org.eclipse.jdi.internal.VirtualMachineImpl; import org.eclipse.jdi.internal.request.RequestID; import com.sun.jdi.event. [[#variablebd0cf7c0]]; /** * this class implements the corresponding interfaces * declared by the JDI specification. See the com.sun.jdi package * for more information. * */ public class [[#variablebd0cf720]]extends EventImpl implements [[#variablebd0cf7c0]]{ /** Jdwp Event Kind. */ public static final byte EVENT_KIND = [[#variablebd0cf6c0]]; /** * Creates new ThreadDeathEventImpl. */ /** * Creates new VMStartEventImpl. */ private [[#variablebd0cf720]](VirtualMachineImpl vmImpl, RequestID requestID) { super( [[#variablebd0cf660]], vmImpl, requestID); //$NON-NLS-1$ } /** * @return Creates, reads and returns new EventImpl, of which requestID has already been read. */ public static [[#variablebd0cf720]] read(MirrorImpl target, RequestID requestID, DataInputStream dataInStream) throws IOException { VirtualMachineImpl vmImpl = target.virtualMachineImpl(); [[#variablebd0cf720]] event = new [[#variablebd0cf720]](vmImpl, requestID); event.fThreadRef = ThreadReferenceImpl.read(target, dataInStream); return event; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bd0cf7c0]] | ThreadDeathEvent |
1 | 2 | [[#bd0cf7c0]] | ThreadStartEvent |
1 | 3 | [[#bd0cf7c0]] | VMStartEvent |
2 | 1 | [[#bd0cf720]] | ThreadDeathEventImpl |
2 | 2 | [[#bd0cf720]] | ThreadStartEventImpl |
2 | 3 | [[#bd0cf720]] | VMStartEventImpl |
3 | 1 | [[#bd0cf6c0]] | EVENT_THREAD_DEATH |
3 | 2 | [[#bd0cf6c0]] | EVENT_THREAD_START |
3 | 3 | [[#bd0cf6c0]] | EVENT_VM_START |
4 | 1 | [[#bd0cf660]] | "ThreadDeathEvent" |
4 | 2 | [[#bd0cf660]] | "ThreadStartEvent" |
4 | 3 | [[#bd0cf660]] | "VMStartEvent" |