class WildcardPathElement extends PathElement
CAPTURE_VARIABLE_WEIGHT, next, NO_PARAMETERS, pos, prev, separator, WILDCARD_WEIGHT
Constructor and Description |
---|
WildcardPathElement(int pos,
char separator) |
Modifier and Type | Method and Description |
---|---|
char[] |
getChars() |
int |
getNormalizedLength()
Return the length of the path element where captures are considered to be one character long.
|
int |
getScore()
Return the score for this PathElement, combined score is used to compare parsed patterns.
|
int |
getWildcardCount()
Return the number of wildcard elements (*, ?) in the path element.
|
boolean |
matches(int pathIndex,
PathPattern.MatchingContext matchingContext)
Matching on a WildcardPathElement is quite straight forward.
|
java.lang.String |
toString() |
getCaptureCount, isNoMorePattern
public boolean matches(int pathIndex, PathPattern.MatchingContext matchingContext)
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()
PathElement
getNormalizedLength
in class PathElement
public int getWildcardCount()
PathElement
getWildcardCount
in class PathElement
public int getScore()
PathElement
getScore
in class PathElement
public java.lang.String toString()
toString
in class java.lang.Object
public char[] getChars()
getChars
in class PathElement