| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 26 | 4 | 5 | 0.957 | class_body_declarations[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 18 | 220 | plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaExceptionBreakpoint.java |
| 2 | 18 | 260 | plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaExceptionBreakpoint.java |
| 3 | 26 | 271 | plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaWatchpoint.java |
| 4 | 26 | 302 | plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaWatchpoint.java |
| ||||
/**
* @see IJavaExceptionBreakpoint#isCaught()
*/
public boolean isCaught() throws CoreException {
return ensureMarker().getAttribute(CAUGHT, false);
}
/**
* @see IJavaExceptionBreakpoint#setCaught(boolean)
*/
public void setCaught(boolean caught) throws CoreException {
if (caught == isCaught()) {
return;
}
setAttribute(CAUGHT, caught);
if (caught && !isEnabled()) {
setEnabled(true);
}
else if ( !(caught || isUncaught())) {
setEnabled(false);
}
recreate();
}
|
| ||||
/**
* @see IJavaExceptionBreakpoint#isUncaught()
*/
public boolean isUncaught() throws CoreException {
return ensureMarker().getAttribute(UNCAUGHT, false);
}
/**
* @see IJavaExceptionBreakpoint#setUncaught(boolean)
*/
public void setUncaught(boolean uncaught) throws CoreException {
if (uncaught == isUncaught()) {
return;
}
setAttribute(UNCAUGHT, uncaught);
if (uncaught && !isEnabled()) {
setEnabled(true);
}
else if ( !(uncaught || isCaught())) {
setEnabled(false);
}
recreate();
}
|
| ||||
/**
* @see org.eclipse.debug.core.model.IWatchpoint#isAccess()
*/
public boolean isAccess() throws CoreException {
return ensureMarker().getAttribute(ACCESS, false);
}
/**
* Sets whether this breakpoint will suspend execution when its associated
* field is accessed. If true and this watchpoint is disabled, this watchpoint
* is automatically enabled. If both access and modification are false,
* this watchpoint is automatically disabled.
*
* @param access whether to suspend on field access
* @exception CoreException if unable to set the property
* on this breakpoint's underlying marker
* @see org.eclipse.debug.core.model.IWatchpoint#setAccess(boolean)
*/
public void setAccess(boolean access) throws CoreException {
if (access == isAccess()) {
return;
}
setAttribute(ACCESS, access);
if (access && !isEnabled()) {
setEnabled(true);
}
else if ( !(access || isModification())) {
setEnabled(false);
}
recreate();
}
|
| ||||
/**
* @see org.eclipse.debug.core.model.IWatchpoint#isModification()
*/
public boolean isModification() throws CoreException {
return ensureMarker().getAttribute(MODIFICATION, false);
}
/**
* Sets whether this breakpoint will suspend execution when its associated
* field is modified. If true and this watchpoint is disabled, this watchpoint
* is automatically enabled. If both access and modification are false,
* this watchpoint is automatically disabled.
*
* @param modification whether to suspend on field modification
* @exception CoreException if unable to set the property on
* this breakpoint's underlying marker
* @see org.eclipse.debug.core.model.IWatchpoint#setModification(boolean)
*/
public void setModification(boolean modification) throws CoreException {
if (modification == isModification()) {
return;
}
setAttribute(MODIFICATION, modification);
if (modification && !isEnabled()) {
setEnabled(true);
}
else if ( !(modification || isAccess())) {
setEnabled(false);
}
recreate();
}
|
| |||
/**
* @see org.eclipse.debug.core.model.IWatchpoint#isAccess()
*/
/**
* @see org.eclipse.debug.core.model.IWatchpoint#isModification()
*/
/**
* @see IJavaExceptionBreakpoint#isCaught()
*/
/**
* @see IJavaExceptionBreakpoint#isUncaught()
*/
public boolean [[#variablebc2d7960]]() throws CoreException {
return ensureMarker().getAttribute( [[#variablebc9362a0]], false);
}
/**
* Sets whether this breakpoint will suspend execution when its associated
* field is accessed. If true and this watchpoint is disabled, this watchpoint
* is automatically enabled. If both access and modification are false,
* this watchpoint is automatically disabled.
*
* @param access whether to suspend on field access
* @exception CoreException if unable to set the property
* on this breakpoint's underlying marker
* @see org.eclipse.debug.core.model.IWatchpoint#setAccess(boolean)
*/
/**
* Sets whether this breakpoint will suspend execution when its associated
* field is modified. If true and this watchpoint is disabled, this watchpoint
* is automatically enabled. If both access and modification are false,
* this watchpoint is automatically disabled.
*
* @param modification whether to suspend on field modification
* @exception CoreException if unable to set the property on
* this breakpoint's underlying marker
* @see org.eclipse.debug.core.model.IWatchpoint#setModification(boolean)
*/
/**
* @see IJavaExceptionBreakpoint#setCaught(boolean)
*/
/**
* @see IJavaExceptionBreakpoint#setUncaught(boolean)
*/
public void [[#variablebc936260]](boolean [[#variablebc2d76e0]]) throws CoreException {
if ( [[#variablebc2d76e0]]== [[#variablebc2d7960]]()) {
return;
}
setAttribute( [[#variablebc9362a0]], [[#variablebc2d76e0]]);
if ( [[#variablebc2d76e0]]&& !isEnabled()) {
setEnabled(true);
}
else
if ( !( [[#variablebc2d76e0]]|| [[#variablebc2d78c0]]())) {
setEnabled(false);
}
recreate();
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#bc2d7960]] | isAccess |
| 1 | 2 | [[#bc2d7960]] | isModification |
| 1 | 3 | [[#bc2d7960]] | isCaught |
| 1 | 4 | [[#bc2d7960]] | isUncaught |
| 2 | 1 | [[#bc9362a0]] | ACCESS |
| 2 | 2 | [[#bc9362a0]] | MODIFICATION |
| 2 | 3 | [[#bc9362a0]] | CAUGHT |
| 2 | 4 | [[#bc9362a0]] | UNCAUGHT |
| 3 | 1 | [[#bc936260]] | setAccess |
| 3 | 2 | [[#bc936260]] | setModification |
| 3 | 3 | [[#bc936260]] | setCaught |
| 3 | 4 | [[#bc936260]] | setUncaught |
| 4 | 1 | [[#bc2d76e0]] | access |
| 4 | 2 | [[#bc2d76e0]] | modification |
| 4 | 3 | [[#bc2d76e0]] | caught |
| 4 | 4 | [[#bc2d76e0]] | uncaught |
| 5 | 1 | [[#bc2d78c0]] | isModification |
| 5 | 2 | [[#bc2d78c0]] | isAccess |
| 5 | 3 | [[#bc2d78c0]] | isUncaught |
| 5 | 4 | [[#bc2d78c0]] | isCaught |