public class RegexPathSpec extends AbstractPathSpec
| Constructor and Description |
|---|
RegexPathSpec(String regex) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDeclaration()
The as-provided path spec.
|
PathSpecGroup |
getGroup()
The spec group.
|
int |
getPathDepth()
Get the number of path elements that this path spec declares.
|
String |
getPathInfo(String path)
Return the portion of the path that is after the path spec.
|
String |
getPathMatch(String path)
Return the portion of the path that matches a path spec.
|
Pattern |
getPattern() |
String |
getPrefix()
A simple prefix match for the pathspec or null
|
int |
getSpecLength()
The length of the spec.
|
String |
getSuffix()
A simple suffix match for the pathspec or null
|
boolean |
matches(String path)
Test to see if the provided path matches this path spec
|
compareTo, equals, hashCode, toStringpublic RegexPathSpec(String regex)
public int getSpecLength()
PathSpecpublic PathSpecGroup getGroup()
PathSpecpublic int getPathDepth()
PathSpecThis is used to determine longest match logic.
public String getPathInfo(String path)
PathSpecpath - the path to match againstpublic String getPathMatch(String path)
PathSpecpath - the path to match againstpublic String getDeclaration()
PathSpecpublic String getPrefix()
PathSpecpublic String getSuffix()
PathSpecpublic Pattern getPattern()
Copyright © 2010 - 2020 Adobe. All Rights Reserved