class LiteralPathElement extends PathElement
Modifier and Type | Field and Description |
---|---|
private boolean |
caseSensitive |
private int |
len |
private char[] |
text |
CAPTURE_VARIABLE_WEIGHT, next, NO_PARAMETERS, pos, prev, separator, WILDCARD_WEIGHT
Constructor and Description |
---|
LiteralPathElement(int pos,
char[] literalText,
boolean caseSensitive,
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.
|
boolean |
matches(int pathIndex,
PathPattern.MatchingContext matchingContext)
Attempt to match this path element.
|
java.lang.String |
toString() |
getCaptureCount, getScore, getWildcardCount, isNoMorePattern
private char[] text
private int len
private boolean caseSensitive
public LiteralPathElement(int pos, char[] literalText, boolean caseSensitive, char separator)
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()
PathElement
getNormalizedLength
in class PathElement
public char[] getChars()
getChars
in class PathElement
public java.lang.String toString()
toString
in class java.lang.Object