java.lang.Object
org.xbib.net.path.spring.element.PathElement
org.xbib.net.path.spring.element.CaptureTheRestPathElement
A path element representing capturing the rest of a path. In the pattern
'/foo/{*foobar}' the /{*foobar} is represented as a
CaptureTheRestPathElement.-
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
KonstruktorenKonstruktorBeschreibungCaptureTheRestPathElement(int pos, char[] captureDescriptor, char separator) Create a newCaptureTheRestPathElementinstance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintReturn the number of variables captured by the path element.char[]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
getScore, isNoMorePattern
-
Konstruktordetails
-
CaptureTheRestPathElement
public CaptureTheRestPathElement(int pos, char[] captureDescriptor, char separator) Create a newCaptureTheRestPathElementinstance.- Parameter:
pos- position of the path element within the path pattern textcaptureDescriptor- a character array containing contents like '{' '*' 'a' 'b' '}'separator- the separator used in the path pattern
-
-
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
-
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
-
getWildcardCount
public int getWildcardCount()Beschreibung aus Klasse kopiert:PathElementReturn the number of wildcard elements (*, ?) in the path element.- Setzt außer Kraft:
getWildcardCountin KlassePathElement
-
getCaptureCount
public int getCaptureCount()Beschreibung aus Klasse kopiert:PathElementReturn the number of variables captured by the path element.- Setzt außer Kraft:
getCaptureCountin KlassePathElement
-
toString
-