matchParamChildren method
参数路由,从给定起始点开始匹配,可能会回溯
Implementation
MatchResult matchParamChildren(final String pathPart, int start) {
// assert(paramChildren.length > start, '待匹配的参数路由节点数必须必起始位置要大');
// 待匹配的参数路由节点数必须必起始位置要大
if(paramChildren.length - 1 < start) {
return null;
}
RouteNode node = paramChildren[start];
if(null == node) {
return null;
}
return MatchResult(node, value: pathPart, nodeIndex: start);
}