Package org.codehaus.plexus.util
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MatchPatternfromString(String source) char[][]String[]boolean(package private) booleanbooleanmatchPatternStart(String str, boolean isCaseSensitive) booleanstartsWith(String string) (package private) static String[]tokenizePathToString(String path, String separator)
-
Field Details
-
source
-
regexPattern
-
separator
-
tokenized
-
tokenizedChar
private final char[][] tokenizedChar
-
-
Constructor Details
-
MatchPattern
-
-
Method Details
-
matchPath
-
matchPath
-
matchPatternStart
-
getTokenizedPathString
-
getTokenizedPathChars
public char[][] getTokenizedPathChars() -
startsWith
-
tokenizePathToString
-
fromString
-