class SeparatorPathElement extends PathElement
Modifier and Type | Field and Description |
---|---|
private char |
separator |
CAPTURE_VARIABLE_WEIGHT, next, pos, prev, WILDCARD_WEIGHT
Constructor and Description |
---|
SeparatorPathElement(int pos,
char separator) |
Modifier and Type | Method and Description |
---|---|
int |
getNormalizedLength() |
boolean |
matches(int candidateIndex,
PathPattern.MatchingContext matchingContext)
Matching a separator is easy, basically the character at candidateIndex
must be the separator.
|
java.lang.String |
toString() |
getCaptureCount, getScore, getWildcardCount
public boolean matches(int candidateIndex, PathPattern.MatchingContext matchingContext)
matches
in class PathElement
candidateIndex
- the current position within the candidate pathmatchingContext
- encapsulates context for the match including the candidatepublic java.lang.String toString()
toString
in class java.lang.Object
public int getNormalizedLength()
getNormalizedLength
in class PathElement