Modul org.xbib.net.path
Package org.xbib.net.path.spring.element
Klasse SingleCharWildcardedPathElement
java.lang.Object
org.xbib.net.path.spring.element.PathElement
org.xbib.net.path.spring.element.SingleCharWildcardedPathElement
A literal path element that does includes the single character wildcard '?' one
or more times (to basically many any character at that position).
-
Feldübersicht
Von Klasse geerbte Felder org.xbib.net.path.spring.element.PathElement
CAPTURE_VARIABLE_WEIGHT, next, NO_PARAMETERS, pos, prev, separator, WILDCARD_WEIGHT -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungSingleCharWildcardedPathElement(int pos, char[] literalText, int questionMarkCount, boolean caseSensitive, char separator) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungchar[]getChars()intReturn the length of the path element where captures are considered to be one character long.intReturn the number of wildcard elements (*, ?)booleanmatches(int pathIndex, MatchingContext matchingContext) Attempt to match this path element.toString()Von Klasse geerbte Methoden org.xbib.net.path.spring.element.PathElement
getCaptureCount, getScore, isNoMorePattern
-
Konstruktordetails
-
SingleCharWildcardedPathElement
public SingleCharWildcardedPathElement(int pos, char[] literalText, int questionMarkCount, boolean caseSensitive, char separator)
-
-
Methodendetails
-
matches
Beschreibung aus Klasse kopiert:PathElementAttempt to match this path element.- Angegeben von:
matchesin KlassePathElement- Parameter:
pathIndex- the current position within the candidate pathmatchingContext- encapsulates context for the match including the candidate- Gibt zurück:
trueif it matches, otherwisefalse
-
getWildcardCount
public int getWildcardCount()Beschreibung aus Klasse kopiert:PathElementReturn the number of wildcard elements (*, ?) in the path element.- Setzt außer Kraft:
getWildcardCountin KlassePathElement
-
getNormalizedLength
public int getNormalizedLength()Beschreibung aus Klasse kopiert:PathElementReturn the length of the path element where captures are considered to be one character long.- Angegeben von:
getNormalizedLengthin KlassePathElement- Gibt zurück:
- the normalized length
-
getChars
public char[] getChars()- Angegeben von:
getCharsin KlassePathElement
-
toString
-