类 SeparatorPathElement
java.lang.Object
cn.taketoday.web.util.pattern.PathElement
cn.taketoday.web.util.pattern.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).
- 从以下版本开始:
- 4.0
- 作者:
- Andy Clement
-
字段概要
从类继承的字段 cn.taketoday.web.util.pattern.PathElement
CAPTURE_VARIABLE_WEIGHT, next, pos, prev, separator, WILDCARD_WEIGHT -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明char[]getChars()intReturn the length of the path element where captures are considered to be one character long.booleanReturn whether this PathElement can be strictlycomparedagainst another element for matching.booleanmatches(int pathIndex, PathPattern.MatchingContext matchingContext) Matching a separator is easy, basically the character at candidateIndex must be the separator.toString()从类继承的方法 cn.taketoday.web.util.pattern.PathElement
getCaptureCount, getScore, getWildcardCount, isNoMorePattern
-
构造器详细资料
-
SeparatorPathElement
SeparatorPathElement(int pos, char separator)
-
-
方法详细资料
-
matches
Matching a separator is easy, basically the character at candidateIndex must be the separator.- 指定者:
matches在类中PathElement- 参数:
pathIndex- the current position within the candidate pathmatchingContext- encapsulates context for the match including the candidate- 返回:
trueif it matches, otherwisefalse
-
getNormalizedLength
public int getNormalizedLength()从类复制的说明:PathElementReturn the length of the path element where captures are considered to be one character long.- 指定者:
getNormalizedLength在类中PathElement- 返回:
- the normalized length
-
getChars
public char[] getChars()- 指定者:
getChars在类中PathElement
-
isLiteral
public boolean isLiteral()从类复制的说明:PathElementReturn whether this PathElement can be strictlycomparedagainst another element for matching.- 覆盖:
isLiteral在类中PathElement
-
toString
-