java.lang.Object
org.xbib.net.path.spring.element.PathElement
org.xbib.net.path.spring.element.SeparatorPathElement
A separator path element. In the pattern '/foo/bar' the two occurrences
of '/' will be represented by a SeparatorPathElement (if the default
separator of '/' is being used).
-
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
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungchar[]getChars()intReturn the length of the path element where captures are considered to be one character long.booleanmatches(int pathIndex, MatchingContext matchingContext) Matching a separator is easy, basically the character at candidateIndex must be the separator.toString()Von Klasse geerbte Methoden org.xbib.net.path.spring.element.PathElement
getCaptureCount, getScore, getWildcardCount, isNoMorePattern
-
Konstruktordetails
-
SeparatorPathElement
public SeparatorPathElement(int pos, char separator)
-
-
Methodendetails
-
matches
Matching a separator is easy, basically the character at candidateIndex must be the separator.- 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
-
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
-