java.lang.Object
org.xbib.net.path.spring.element.PathElement
org.xbib.net.path.spring.element.RegexPathElement
A regex path element. Used to represent any complicated element of the path.
For example in '/foo/*_*/*_{foobar}' both *_* and *_{foobar}
are
RegexPathElement path elements.-
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
KonstruktorenKonstruktorBeschreibungRegexPathElement(int pos, char[] regex, boolean caseSensitive, char[] completePattern, char separator) -
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.intgetScore()Return the score for this PathElement, combined score is used to compare parsed patterns.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
isNoMorePattern
-
Konstruktordetails
-
RegexPathElement
public RegexPathElement(int pos, char[] regex, boolean caseSensitive, char[] completePattern, char separator)
-
-
Methodendetails
-
getVariableNames
-
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
-
getCaptureCount
public int getCaptureCount()Beschreibung aus Klasse kopiert:PathElementReturn the number of variables captured by the path element.- Setzt außer Kraft:
getCaptureCountin 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
-
getScore
public int getScore()Beschreibung aus Klasse kopiert:PathElementReturn the score for this PathElement, combined score is used to compare parsed patterns.- Setzt außer Kraft:
getScorein KlassePathElement
-
toString
-