CaptureVariablePathElement. There
must be at least one character to bind to the variable.
| Access | Constructor and Description |
|---|---|
| pack-priv | CaptureVariablePathElement(int
the position in the pattern of this capture element pos, char[] is of the form {AAAAA[:pattern]} captureDescriptor, boolean caseSensitive, char separator)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| 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 String | |
| 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. |
| public String |
| constraintPattern | back to summary |
|---|---|
| private final Pattern constraintPattern
| |
| variableName | back to summary |
|---|---|
| private final String variableName | |
| CaptureVariablePathElement | back to summary |
|---|---|
| pack-priv CaptureVariablePathElement(int pos, char[] captureDescriptor, boolean caseSensitive, char separator) Create a new
| |
| 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.
| |
| getVariableName | back to summary |
|---|---|
| public String getVariableName() | |
| 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.
| |
| 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- | |