For example in '/foo/*_*/*_{foobar}' both *_*
and *_{foobar} are regex path elements.
Derived from the general org. approach.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private static final String | |
| private static final Pattern | |
| private final Pattern | |
| private final char[] | |
| private final List | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv | RegexPathElement(int pos, char[] regex, boolean caseSensitive, char[] completePattern, char separator)
|
| Modifier and Type | Method and Description |
|---|---|
| public Pattern | |
| public int | getCaptureCount()
Overrides org. Return the number of variables captured by the path element. |
| public char[] | |
| public int | getNormalizedLength()
Implements abstract org. Return the length of the path element where captures are considered to be one character long. |
| public int | getScore()
Overrides org. Return the score for this PathElement, combined score is used to compare parsed patterns. |
| public List | |
| public int | getWildcardCount()
Overrides org. Return the number of wildcard elements (*, ?) in the path element. |
| public boolean | matches(int
the current position within the candidate path pathIndex, PathPattern.encapsulates context for the match including the candidate matchingContextImplements abstract org. Attempt to match this path element. |
| private String | |
| public String |
| caseSensitive | back to summary |
|---|---|
| private final boolean caseSensitive | |
| DEFAULT_VARIABLE_PATTERN | back to summary |
|---|---|
| private static final String DEFAULT_VARIABLE_PATTERN | |
| GLOB_PATTERN | back to summary |
|---|---|
| private static final Pattern GLOB_PATTERN | |
| pattern | back to summary |
|---|---|
| private final Pattern pattern | |
| regex | back to summary |
|---|---|
| private final char[] regex | |
| variableNames | back to summary |
|---|---|
| private final List<String> variableNames | |
| wildcardCount | back to summary |
|---|---|
| private int wildcardCount | |
| RegexPathElement | back to summary |
|---|---|
| pack-priv RegexPathElement(int pos, char[] regex, boolean caseSensitive, char[] completePattern, char separator) | |
| buildPattern | back to summary |
|---|---|
| public Pattern buildPattern(char[] regex, char[] completePattern) | |
| getCaptureCount | back to summary |
|---|---|
| public int getCaptureCount() Overrides org. Doc from org. Return the number of variables captured by the path element.
| |
| getChars | back to summary |
|---|---|
| public char[] getChars() Implements abstract org.
| |
| getNormalizedLength | back to summary |
|---|---|
| public int getNormalizedLength() Implements abstract org. Doc from org. Return the length of the path element where captures are considered to be one character long.
| |
| getScore | back to summary |
|---|---|
| public int getScore() Overrides org. Doc from org. Return the score for this PathElement, combined score is used to compare parsed patterns.
| |
| getVariableNames | back to summary |
|---|---|
| public List | |
| getWildcardCount | back to summary |
|---|---|
| public int getWildcardCount() Overrides org. Doc from org. Return the number of wildcard elements (*, ?) in the path element.
| |
| matches | back to summary |
|---|---|
| public boolean matches(int pathIndex, PathPattern. Implements abstract org. Doc from org. Attempt to match this path element.
| |
| quote | back to summary |
|---|---|
| private String quote(String s, int start, int end) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |