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.
Modifier and Type | Method and Description |
---|---|
static MatchPattern |
fromString(String source) |
char[][] |
getTokenizedPathChars() |
String[] |
getTokenizedPathString() |
boolean |
matchPath(String str,
boolean isCaseSensitive) |
boolean |
matchPatternStart(String str,
boolean isCaseSensitive) |
boolean |
startsWith(String string) |
public boolean matchPath(String str, boolean isCaseSensitive)
public boolean matchPatternStart(String str, boolean isCaseSensitive)
public String[] getTokenizedPathString()
public char[][] getTokenizedPathChars()
public boolean startsWith(String string)
public static MatchPattern fromString(String source)
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.