Implementors must override Object#equals(Object) and Object#hashCode().
| Modifier and Type | Method and Description |
|---|---|
| public static PathSpec | |
| public String | |
| public PathSpecGroup | |
| public int | Returns: the depth of the path segments that this spec declaresGet the number of path elements that this path spec declares. |
| public String | Returns: the path info portion of the stringthe path to match against path)
Deprecated
use
matched(String) instead
Return the portion of the path that is after the path spec. |
| public String | Returns: the match, or null if no match at allthe path to match against path)
Deprecated
use
matched(String) instead
Return the portion of the path that matches a path spec. |
| public String | Returns: A simple prefix match for the pathspec or nullA simple prefix match for the pathspec or null |
| public int | |
| public String | Returns: A simple suffix match for the pathspec or nullA simple suffix match for the pathspec or null |
| public MatchedPath | |
| public default boolean |
| from | back to summary |
|---|---|
| public static PathSpec from(String pathSpecString) | |
| getDeclaration | back to summary |
|---|---|
| public String getDeclaration() The as-provided path spec.
| |
| getGroup | back to summary |
|---|---|
| public PathSpecGroup getGroup() The spec group.
| |
| getPathDepth | back to summary |
|---|---|
| public int getPathDepth() Get the number of path elements that this path spec declares. This is used to determine longest match logic.
| |
| getPathInfo | back to summary |
|---|---|
| public String getPathInfo(String path)
Deprecated use Return the portion of the path that is after the path spec. | |
| getPathMatch | back to summary |
|---|---|
| public String getPathMatch(String path)
Deprecated use Return the portion of the path that matches a path spec. | |
| getPrefix | back to summary |
|---|---|
| public String getPrefix() A simple prefix match for the pathspec or null
| |
| getSpecLength | back to summary |
|---|---|
| public int getSpecLength() The length of the spec.
| |
| getSuffix | back to summary |
|---|---|
| public String getSuffix() A simple suffix match for the pathspec or null
| |
| matched | back to summary |
|---|---|
| public MatchedPath matched(String path) Get the complete matched details of the provided path.
| |
| matches | back to summary |
|---|---|
| public default boolean matches(String path) Test to see if the provided path matches this path spec.
This can be more efficient that
| |