CloneSet41


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
60201.000class_body_declarations[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16043
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/AbstractSelectorContainer.java
26049
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/BaseSelectorContainer.java
Next
Last
Clone Instance
1
Line Count
60
Source Line
43
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/AbstractSelectorContainer.java

/**
 * Indicates whether there are any selectors here.
 * @return true if there are selectors
 */
public boolean hasSelectors() {
  return !(selectorsList.isEmpty());
}

/**
 * Gives the count of the number of selectors in this container
 * @return the number of selectors
 */
public int selectorCount() {
  return selectorsList.size();
}

/**
 * Returns the set of selectors as an array.
 * @param p the current project
 * @return an array of selectors
 */
public FileSelector[] getSelectors(Project p) {
  FileSelector[] result = new FileSelector[selectorsList.size()];
  selectorsList.copyInto(result);
  return result;
}

/**
 * Returns an enumerator for accessing the set of selectors.
 * @return an enumerator for the selectors
 */
public Enumeration selectorElements() {
  return selectorsList.elements();
}

/**
 * Convert the Selectors within this container to a string. This will
 * just be a helper class for the subclasses that put their own name
 * around the contents listed here.
 *
 * @return comma separated list of Selectors contained in this one
 */
public String toString() {
  StringBuffer buf = new StringBuffer();
  Enumeration e = selectorElements();
  if (e.hasMoreElements()) {
    while (e.hasMoreElements()) {
      buf.append(e.nextElement().toString());
      if (e.hasMoreElements()) {
        buf.append(", ");
      }
    }
  }
  return buf.toString();
}

/**
 * Add a new selector into this container.
 *
 * @param selector the new selector to add
 */
public void appendSelector(FileSelector selector) {
  selectorsList.addElement(selector);
}


First
Previous
Clone Instance
2
Line Count
60
Source Line
49
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/BaseSelectorContainer.java

/**
 * Indicates whether there are any selectors here.
 * @return true if there are selectors
 */
public boolean hasSelectors() {
  return !(selectorsList.isEmpty());
}

/**
 * Gives the count of the number of selectors in this container
 * @return the number of selectors
 */
public int selectorCount() {
  return selectorsList.size();
}

/**
 * Returns the set of selectors as an array.
 * @param p the current project
 * @return an array of selectors
 */
public FileSelector[] getSelectors(Project p) {
  FileSelector[] result = new FileSelector[selectorsList.size()];
  selectorsList.copyInto(result);
  return result;
}

/**
 * Returns an enumerator for accessing the set of selectors.
 * @return an enumerator for the selectors
 */
public Enumeration selectorElements() {
  return selectorsList.elements();
}

/**
 * Convert the Selectors within this container to a string. This will
 * just be a helper class for the subclasses that put their own name
 * around the contents listed here.
 *
 * @return comma separated list of Selectors contained in this one
 */
public String toString() {
  StringBuffer buf = new StringBuffer();
  Enumeration e = selectorElements();
  if (e.hasMoreElements()) {
    while (e.hasMoreElements()) {
      buf.append(e.nextElement().toString());
      if (e.hasMoreElements()) {
        buf.append(", ");
      }
    }
  }
  return buf.toString();
}

/**
 * Add a new selector into this container.
 *
 * @param selector the new selector to add
 */
public void appendSelector(FileSelector selector) {
  selectorsList.addElement(selector);
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
     * Indicates whether there are any selectors here.
     * @return true if there are selectors
     */
public boolean hasSelectors() {
  return !(selectorsList.isEmpty());
}

/**
     * Gives the count of the number of selectors in this container
     * @return the number of selectors
     */
public int selectorCount() {
  return selectorsList.size();
}

/**
     * Returns the set of selectors as an array.
     * @param p the current project
     * @return an array of selectors
     */
public FileSelector[] getSelectors(Project p) {
  FileSelector[] result = new FileSelector[selectorsList.size()];
  selectorsList.copyInto(result);
  return result;
}

/**
     * Returns an enumerator for accessing the set of selectors.
     * @return an enumerator for the selectors
     */
public Enumeration selectorElements() {
  return selectorsList.elements();
}

/**
     * Convert the Selectors within this container to a string. This will
     * just be a helper class for the subclasses that put their own name
     * around the contents listed here.
     *
     * @return comma separated list of Selectors contained in this one
     */
public String toString() {
  StringBuffer buf = new StringBuffer();
  Enumeration e = selectorElements();
  if (e.hasMoreElements()) {
    while (e.hasMoreElements()) {
      buf.append(e.nextElement().toString());
      if (e.hasMoreElements()) {
        buf.append(", ");
      }
    }
  }
  return buf.toString();
}

/**
     * Add a new selector into this container.
     *
     * @param selector the new selector to add
     */
public void appendSelector(FileSelector selector) {
  selectorsList.addElement(selector);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None