public class RegexPathSpec extends PathSpec
| Modifier and Type | Field and Description |
|---|---|
protected java.util.regex.Pattern |
pattern |
| Modifier | Constructor and Description |
|---|---|
protected |
RegexPathSpec() |
|
RegexPathSpec(java.lang.String regex) |
| Modifier and Type | Method and Description |
|---|---|
java.util.regex.Matcher |
getMatcher(java.lang.String path) |
java.lang.String |
getPathInfo(java.lang.String path)
Return the portion of the path that is after the path spec.
|
java.lang.String |
getPathMatch(java.lang.String path)
Return the portion of the path that matches a path spec.
|
java.util.regex.Pattern |
getPattern() |
java.lang.String |
getRelativePath(java.lang.String base,
java.lang.String path)
Get the relative path.
|
boolean |
matches(java.lang.String path)
Test to see if the provided path matches this path spec
|
compareTo, equals, getDeclaration, getGroup, getPathDepth, getPrefix, getSuffix, hashCode, toStringprotected RegexPathSpec()
public RegexPathSpec(java.lang.String regex)
public java.util.regex.Matcher getMatcher(java.lang.String path)
public java.lang.String getPathInfo(java.lang.String path)
PathSpecgetPathInfo in class PathSpecpath - the path to match againstpublic java.lang.String getPathMatch(java.lang.String path)
PathSpecgetPathMatch in class PathSpecpath - the path to match againstpublic java.util.regex.Pattern getPattern()
public java.lang.String getRelativePath(java.lang.String base,
java.lang.String path)
PathSpecgetRelativePath in class PathSpecbase - the base the path is relative topath - the additional pathCopyright © 1995–2022 Webtide. All rights reserved.