CloneSet484


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2310.957method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1273
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/SelectorUtils.java
22151
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/SelectorUtils.java
32304
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/SelectorUtils.java
Next
Last
Clone Instance
1
Line Count
2
Source Line
73
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/SelectorUtils.java

/**
 * Tests 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 "**".
 */
public static boolean matchPatternStart(String pattern, String str) {
  return matchPatternStart(pattern, str, true);
}


Next
Previous
Clone Instance
2
Line Count
2
Source Line
151
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/SelectorUtils.java

/**
 * Tests 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.
 */
public static boolean matchPath(String pattern, String str) {
  return matchPath(pattern, str, true);
}


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

/**
 * Tests whether or not a string matches against a pattern.
 * The pattern may contain two special characters:<br>
 * '*' means zero or more characters<br>
 * '?' means one and only one character
 *
 * @param pattern The pattern to match against.
 *                Must not be <code>null</code>.
 * @param str     The string which must be matched against the pattern.
 *                Must not be <code>null</code>.
 *
 * @return <code>true</code> if the string matches against the pattern,
 *         or <code>false</code> otherwise.
 */
public static boolean match(String pattern, String str) {
  return match(pattern, str, true);
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Tests whether or not a string matches against a pattern.
     * The pattern may contain two special characters:<br>
     * '*' means zero or more characters<br>
     * '?' means one and only one character
     *
     * @param pattern The pattern to match against.
     *                Must not be <code>null</code>.
     * @param str     The string which must be matched against the pattern.
     *                Must not be <code>null</code>.
     *
     * @return <code>true</code> if the string matches against the pattern,
     *         or <code>false</code> otherwise.
     */
/**
     * Tests 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.
     */
/**
     * Tests 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 "**".
     */
public static boolean  [[#variable1313be00]](String pattern, String str) {
  return [[#variable1313be00]](pattern, str, true);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1313be00]]
matchPatternStart 
12[[#1313be00]]
matchPath 
13[[#1313be00]]
match