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