Class MatchPattern
java.lang.Object
org.codehaus.plexus.util.MatchPattern
Describes a match target for SelectorUtils.
Significantly more efficient than using strings, since re-evaluation and re-tokenizing is avoided.
- Author:
- Kristian Rosenvold
-
Method Summary
Modifier and TypeMethodDescriptionstatic MatchPattern
fromString
(String source) Gets the source pattern for this matchpattern.char[][]
String[]
boolean
boolean
matchPatternStart
(String str, boolean isCaseSensitive) boolean
startsWith
(String string) static String[]
tokenizePathToString
(String path, String separator)
-
Method Details
-
getSource
Gets the source pattern for this matchpattern.- Returns:
- the source string without Ant or Regex pattern markers.
- Since:
- 3.6.0
-
matchPath
-
matchPatternStart
-
getTokenizedPathString
-
getTokenizedPathChars
public char[][] getTokenizedPathChars() -
startsWith
-
tokenizePathToString
-
fromString
-