Class PathMatchers
java.lang.Object
org.eclipse.jetty.start.PathMatchers
Common PathMatcher implementations.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Pathprivate static final char[]private static final char[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static PathConvert a pattern to a Path object.private static intcountChars(String pattern, int offset, char c) static PathMatchergetMatcher(String rawpattern) static PathMatcherstatic PathgetSearchRoot(String pattern) Provide the non-glob / non-regex prefix on the pattern as a Path reference.static booleanisAbsolute(String pattern) Tests if provided pattern is an absolute reference (or not)private static booleanisGlob(char c, boolean syntaxed) Determine if part is a glob pattern.
-
Field Details
-
GLOB_CHARS
private static final char[] GLOB_CHARS -
SYNTAXED_GLOB_CHARS
private static final char[] SYNTAXED_GLOB_CHARS -
EMPTY_PATH
-
-
Constructor Details
-
PathMatchers
public PathMatchers()
-
-
Method Details
-
asPath
-
getMatcher
-
getNonHidden
-
getSearchRoot
-
countChars
-
isAbsolute
Tests if provided pattern is an absolute reference (or not)- Parameters:
pattern- the pattern to test- Returns:
- true if pattern is an absolute reference.
-
isGlob
private static boolean isGlob(char c, boolean syntaxed) Determine if part is a glob pattern.- Parameters:
c- the char to checksyntaxed- true if overall pattern is syntaxed with"glob:"or"regex:"- Returns:
- true if part has glob characters
-