| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 31 | 2 | 1 | 0.998 | class_body_declarations[4] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 31 | 76 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryField.java |
| 2 | 31 | 138 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceField.java |
| ||||
/* (non-Javadoc)
* @see org.eclipse.jdt.core.IField#isEnumConstant()
*/
public boolean isEnumConstant() throws JavaModelException {
return Flags.isEnum(getFlags());
}
/* (non-Javadoc)
* @see org.eclipse.jdt.core.IField#isResolved()
*/
public boolean isResolved() {
return false;
}
public JavaElement resolved(Binding binding) {
SourceRefElement resolvedHandle = new ResolvedBinaryField(this.parent, this.name, new String(binding.computeUniqueKey()));
resolvedHandle.occurrenceCount = this.occurrenceCount;
return resolvedHandle;
}
/*
* @private Debugging purposes
*/
protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo) {
buffer.append(this.tabString(tab));
if (info == null) {
toStringName(buffer);
buffer.append(" (not open)"); //$NON-NLS-1$
}
else if (info == NO_INFO) {
toStringName(buffer);
}
else {
try {
buffer.append(Signature.toString(this.getTypeSignature()));
buffer.append(" "); //$NON-NLS-1$
toStringName(buffer);
} catch (JavaModelException e) {
buffer.append("<JavaModelException in toString of " + getElementName()); //$NON-NLS-1$
}
}
}
|
| ||||
/* (non-Javadoc)
* @see org.eclipse.jdt.core.IField#isEnumConstant()
*/
public boolean isEnumConstant() throws JavaModelException {
return Flags.isEnum(getFlags());
}
/* (non-Javadoc)
* @see org.eclipse.jdt.core.IField#isResolved()
*/
public boolean isResolved() {
return false;
}
public JavaElement resolved(Binding binding) {
SourceRefElement resolvedHandle = new ResolvedSourceField(this.parent, this.name, new String(binding.computeUniqueKey()));
resolvedHandle.occurrenceCount = this.occurrenceCount;
return resolvedHandle;
}
/**
* @private Debugging purposes
*/
protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo) {
buffer.append(this.tabString(tab));
if (info == null) {
toStringName(buffer);
buffer.append(" (not open)"); //$NON-NLS-1$
}
else if (info == NO_INFO) {
toStringName(buffer);
}
else {
try {
buffer.append(Signature.toString(this.getTypeSignature()));
buffer.append(" "); //$NON-NLS-1$
toStringName(buffer);
} catch (JavaModelException e) {
buffer.append("<JavaModelException in toString of " + getElementName()); //$NON-NLS-1$
}
}
}
|
| |||
/* (non-Javadoc)
* @see org.eclipse.jdt.core.IField#isEnumConstant()
*/
public boolean isEnumConstant() throws JavaModelException {
return Flags.isEnum(getFlags());
}
/* (non-Javadoc)
* @see org.eclipse.jdt.core.IField#isResolved()
*/
public boolean isResolved() {
return false;
}
public JavaElement resolved(Binding binding) {
SourceRefElement resolvedHandle = new [[#variableba55eea0]](this.parent, this.name, new String(binding.computeUniqueKey()));
resolvedHandle.occurrenceCount = this.occurrenceCount;
return resolvedHandle;
}
/*
* @private Debugging purposes
*/
/**
* @private Debugging purposes
*/
protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo) {
buffer.append(this.tabString(tab));
if (info == null) {
toStringName(buffer);
buffer.append(" (not open)"); //$NON-NLS-1$
}
else
if (info == NO_INFO) {
toStringName(buffer);
}
else {
try {
buffer.append(Signature.toString(this.getTypeSignature()));
buffer.append(" "); //$NON-NLS-1$
toStringName(buffer);
}
catch (JavaModelException e) {
buffer.append("<JavaModelException in toString of " + getElementName()); //$NON-NLS-1$
}
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#ba55eea0]] | ResolvedBinaryField |
| 1 | 2 | [[#ba55eea0]] | ResolvedSourceField |