class SeparatorPathElement extends PathElement
CAPTURE_VARIABLE_WEIGHT, next, NO_PARAMETERS, pos, prev, separator, WILDCARD_WEIGHT
Constructor and Description |
---|
SeparatorPathElement(int pos,
char separator) |
Modifier and Type | Method and Description |
---|---|
char[] |
getChars() |
int |
getNormalizedLength() |
boolean |
matches(int pathIndex,
PathPattern.MatchingContext matchingContext)
Matching a separator is easy, basically the character at candidateIndex
must be the separator.
|
java.lang.String |
toString() |
getCaptureCount, getScore, getWildcardCount, 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()
getNormalizedLength
in class PathElement
public java.lang.String toString()
toString
in class java.lang.Object
public char[] getChars()
getChars
in class PathElement