org.codehaus.plexus.util
Class MatchPattern
java.lang.Object
org.codehaus.plexus.util.MatchPattern
public class MatchPattern
- extends Object
Describes a match target for SelectorUtils.
Significantly more efficient than using strings, since re-evaluation and re-tokenizing is avoided.
- Author:
- Kristian Rosenvold
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
matchPath
public boolean matchPath(String str,
boolean isCaseSensitive)
matchPatternStart
public boolean matchPatternStart(String str,
boolean isCaseSensitive)
getTokenizedPathString
public String[] getTokenizedPathString()
startsWith
public boolean startsWith(String string)
fromString
public static MatchPattern fromString(String source)
Copyright © 2001-2012 Codehaus. All Rights Reserved.