CloneSet669


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
31210.998class_body_declarations[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13176
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryField.java
231138
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceField.java
Clone Instance
1
Line Count
31
Source Line
76
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryField.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$
                  }
               }
}


Clone Instance
2
Line Count
31
Source Line
138
Source File
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 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$
                  }
               }
}


Clone AbstractionParameter Count: 1Parameter Bindings

/* (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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#ba55eea0]]
ResolvedBinaryField 
12[[#ba55eea0]]
ResolvedSourceField