class WildcardTheRestPathElement extends PathElement
WildcardTheRestPathElement
.CAPTURE_VARIABLE_WEIGHT, next, NO_PARAMETERS, pos, prev, separator, WILDCARD_WEIGHT
Constructor and Description |
---|
WildcardTheRestPathElement(int pos,
char separator) |
Modifier and Type | Method and Description |
---|---|
char[] |
getChars() |
int |
getNormalizedLength() |
int |
getWildcardCount()
Return the number of wildcard elements (*, ?) in the path element.
|
boolean |
matches(int pathIndex,
PathPattern.MatchingContext matchingContext)
Attempt to match this path element.
|
java.lang.String |
toString() |
getCaptureCount, getScore, isNoMorePattern
public boolean matches(int pathIndex, PathPattern.MatchingContext matchingContext)
PathElement
matches
in class PathElement
pathIndex
- the current position within the candidate pathmatchingContext
- encapsulates context for the match including the candidatetrue
if it matches, otherwise false
public int getNormalizedLength()
getNormalizedLength
in class PathElement
public int getWildcardCount()
PathElement
getWildcardCount
in class PathElement
public java.lang.String toString()
toString
in class java.lang.Object
public char[] getChars()
getChars
in class PathElement