final class SingleMatchResult
extends java.lang.Object
implements java.util.regex.MatchResult
MatchResult implementation that returns the nested string as a
single matching result. This match result mimics matching of a single
matching group with group index 0 (the one containing the whole expression).| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
path |
| Constructor and Description |
|---|
SingleMatchResult(java.lang.String path)
Construct a match result matching the whole supplied path.
|
| Modifier and Type | Method and Description |
|---|---|
int |
end() |
int |
end(int group) |
java.lang.String |
group() |
java.lang.String |
group(int group) |
int |
groupCount() |
int |
start() |
int |
start(int group) |
private static java.lang.String |
stripMatrixParams(java.lang.String path)
Strip the matrix parameters from a path.
|
public SingleMatchResult(java.lang.String path)
path - matched path.private static java.lang.String stripMatrixParams(java.lang.String path)
public int start()
start in interface java.util.regex.MatchResultpublic int start(int group)
start in interface java.util.regex.MatchResultpublic int end()
end in interface java.util.regex.MatchResultpublic int end(int group)
end in interface java.util.regex.MatchResultpublic java.lang.String group()
group in interface java.util.regex.MatchResultpublic java.lang.String group(int group)
group in interface java.util.regex.MatchResultpublic int groupCount()
groupCount in interface java.util.regex.MatchResult