| Modifier and Type | Field and Description |
|---|---|
| protected static final int | |
| protected PathElement | |
| protected static final MultiValueMap | |
| protected final int | |
| protected PathElement | |
| protected final char | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | PathElement(int
the position where this path element starts in the pattern data pos, char the separator in use in the path pattern separator)Create a new path element. |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public abstract char[] | |
| public abstract int | Returns: the normalized lengthReturn the length of the path element where captures are considered to be one character long. |
| public int | |
| public int | |
| public boolean | |
| protected final boolean | Returns: true if the there are no more elementsReturn if the there are no more PathElements in the pattern. |
| public abstract boolean | Returns: true if it matches, otherwise falsethe current position within the candidate path candidatePos, PathPattern.encapsulates context for the match including the candidate matchingContextAttempt to match this path element. |
| CAPTURE_VARIABLE_WEIGHT | back to summary |
|---|---|
| protected static final int CAPTURE_VARIABLE_WEIGHT | |
| next | back to summary |
|---|---|
| protected PathElement next
| |
| NO_PARAMETERS | back to summary |
|---|---|
| protected static final MultiValueMap<String, String> NO_PARAMETERS | |
| pos | back to summary |
|---|---|
| protected final int pos | |
| prev | back to summary |
|---|---|
| protected PathElement prev
| |
| separator | back to summary |
|---|---|
| protected final char separator | |
| WILDCARD_WEIGHT | back to summary |
|---|---|
| protected static final int WILDCARD_WEIGHT | |
| PathElement | back to summary |
|---|---|
| pack-priv PathElement(int pos, char separator) Create a new path element.
| |
| getCaptureCount | back to summary |
|---|---|
| public int getCaptureCount() Return the number of variables captured by the path element. | |
| getChars | back to summary |
|---|---|
| public abstract char[] getChars() | |
| getNormalizedLength | back to summary |
|---|---|
| public abstract int getNormalizedLength() Return the length of the path element where captures are considered to be one character long.
| |
| getScore | back to summary |
|---|---|
| public int getScore() Return the score for this PathElement, combined score is used to compare parsed patterns. | |
| getWildcardCount | back to summary |
|---|---|
| public int getWildcardCount() Return the number of wildcard elements (*, ?) in the path element. | |
| isLiteral | back to summary |
|---|---|
| public boolean isLiteral() Return whether this PathElement can be strictly | |
| isNoMorePattern | back to summary |
|---|---|
| protected final boolean isNoMorePattern() Return if the there are no more PathElements in the pattern.
| |
| matches | back to summary |
|---|---|
| public abstract boolean matches(int candidatePos, PathPattern. Attempt to match this path element.
| |