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, toString
public RegexPathSpec(String regex)
public int getSpecLength()
PathSpec
public PathSpecGroup getGroup()
PathSpec
public int getPathDepth()
PathSpec
This is used to determine longest match logic.
public String getPathInfo(String path)
PathSpec
path
- the path to match againstpublic String getPathMatch(String path)
PathSpec
path
- the path to match againstpublic String getDeclaration()
PathSpec
public String getPrefix()
PathSpec
public String getSuffix()
PathSpec
public Pattern getPattern()
Copyright © 2010 - 2020 Adobe. All Rights Reserved