CloneSet241


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25210.962class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
125397
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/DirectoryScanner.java
220435
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/DirectoryScanner.java
Next
Last
Clone Instance
1
Line Count
25
Source Line
397
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/DirectoryScanner.java

/**
 * Test whether or not a given path matches the start of a given
 * pattern up to the first "**".
 * <p>
 * This is not a general purpose test and should only be used if you
 * can live with false positives. For example, <code>pattern=**\a</code>
 * and <code>str=b</code> will yield <code>true</code>.
 *
 * @param pattern The pattern to match against. Must not be
 *                <code>null</code>.
 * @param str     The path to match, as a String. Must not be
 *                <code>null</code>.
 *
 * @return whether or not a given path matches the start of a given
 * pattern up to the first "**".
 */
protected static boolean matchPatternStart(String pattern, String str) {
  return SelectorUtils.matchPatternStart(pattern, str);
}

/**
 * Test whether or not a given path matches the start of a given
 * pattern up to the first "**".
 * <p>
 * This is not a general purpose test and should only be used if you
 * can live with false positives. For example, <code>pattern=**\a</code>
 * and <code>str=b</code> will yield <code>true</code>.
 *
 * @param pattern The pattern to match against. Must not be
 *                <code>null</code>.
 * @param str     The path to match, as a String. Must not be
 *                <code>null</code>.
 * @param isCaseSensitive Whether or not matching should be performed
 *                        case sensitively.
 *
 * @return whether or not a given path matches the start of a given
 * pattern up to the first "**".
 */
protected static boolean matchPatternStart(String pattern, String str, boolean isCaseSensitive) {
  return SelectorUtils.matchPatternStart(pattern, str, isCaseSensitive);
}


First
Previous
Clone Instance
2
Line Count
20
Source Line
435
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/DirectoryScanner.java

/**
 * Test whether or not a given path matches a given pattern.
 *
 * @param pattern The pattern to match against. Must not be
 *                <code>null</code>.
 * @param str     The path to match, as a String. Must not be
 *                <code>null</code>.
 *
 * @return <code>true</code> if the pattern matches against the string,
 *         or <code>false</code> otherwise.
 */
protected static boolean matchPath(String pattern, String str) {
  return SelectorUtils.matchPath(pattern, str);
}

/**
 * Test whether or not a given path matches a given pattern.
 *
 * @param pattern The pattern to match against. Must not be
 *                <code>null</code>.
 * @param str     The path to match, as a String. Must not be
 *                <code>null</code>.
 * @param isCaseSensitive Whether or not matching should be performed
 *                        case sensitively.
 *
 * @return <code>true</code> if the pattern matches against the string,
 *         or <code>false</code> otherwise.
 */
protected static boolean matchPath(String pattern, String str, boolean isCaseSensitive) {
  return SelectorUtils.matchPath(pattern, str, isCaseSensitive);
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Test whether or not a given path matches the start of a given
     * pattern up to the first "**".
     * <p>
     * This is not a general purpose test and should only be used if you
     * can live with false positives. For example, <code>pattern=**\a</code>
     * and <code>str=b</code> will yield <code>true</code>.
     *
     * @param pattern The pattern to match against. Must not be
     *                <code>null</code>.
     * @param str     The path to match, as a String. Must not be
     *                <code>null</code>.
     *
     * @return whether or not a given path matches the start of a given
     * pattern up to the first "**".
     */
/**
     * Test whether or not a given path matches a given pattern.
     *
     * @param pattern The pattern to match against. Must not be
     *                <code>null</code>.
     * @param str     The path to match, as a String. Must not be
     *                <code>null</code>.
     *
     * @return <code>true</code> if the pattern matches against the string,
     *         or <code>false</code> otherwise.
     */
protected static boolean  [[#variable131b48c0]](String pattern, String str) {
  return SelectorUtils. [[#variable131b48c0]](pattern, str);
}

/**
     * Test whether or not a given path matches the start of a given
     * pattern up to the first "**".
     * <p>
     * This is not a general purpose test and should only be used if you
     * can live with false positives. For example, <code>pattern=**\a</code>
     * and <code>str=b</code> will yield <code>true</code>.
     *
     * @param pattern The pattern to match against. Must not be
     *                <code>null</code>.
     * @param str     The path to match, as a String. Must not be
     *                <code>null</code>.
     * @param isCaseSensitive Whether or not matching should be performed
     *                        case sensitively.
     *
     * @return whether or not a given path matches the start of a given
     * pattern up to the first "**".
     */
/**
     * Test whether or not a given path matches a given pattern.
     *
     * @param pattern The pattern to match against. Must not be
     *                <code>null</code>.
     * @param str     The path to match, as a String. Must not be
     *                <code>null</code>.
     * @param isCaseSensitive Whether or not matching should be performed
     *                        case sensitively.
     *
     * @return <code>true</code> if the pattern matches against the string,
     *         or <code>false</code> otherwise.
     */
protected static boolean  [[#variable131b48c0]](String pattern, String str, boolean isCaseSensitive) {
  return SelectorUtils. [[#variable131b48c0]](pattern, str, isCaseSensitive);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#131b48c0]]
matchPatternStart 
12[[#131b48c0]]
matchPath