class LiteralPathElement extends PathElement
Modifier and Type | Field and Description |
---|---|
private boolean |
caseSensitive |
private int |
len |
private char[] |
text |
CAPTURE_VARIABLE_WEIGHT, next, pos, prev, WILDCARD_WEIGHT
Constructor and Description |
---|
LiteralPathElement(int pos,
char[] literalText,
boolean caseSensitive) |
Modifier and Type | Method and Description |
---|---|
int |
getNormalizedLength() |
boolean |
matches(int candidateIndex,
PathPattern.MatchingContext matchingContext)
Attempt to match this path element.
|
java.lang.String |
toString() |
getCaptureCount, getScore, getWildcardCount
private char[] text
private int len
private boolean caseSensitive
public LiteralPathElement(int pos, char[] literalText, boolean caseSensitive)
public boolean matches(int candidateIndex, PathPattern.MatchingContext matchingContext)
PathElement
matches
in class PathElement
candidateIndex
- the current position within the candidate pathmatchingContext
- encapsulates context for the match including the candidatepublic int getNormalizedLength()
getNormalizedLength
in class PathElement
public java.lang.String toString()
toString
in class java.lang.Object