-
- All Implemented Interfaces:
-
icu.windea.breezeframework.core.component.Component,icu.windea.breezeframework.core.component.PathPattern
public class PathPattern.ReferencePath extends PathPattern.AbstractPathPattern
引用路径。
规则:
以
.作为分隔符,可以在索引之前省略。[index]匹配索引index,index是整数。name匹配名字、键name。
-
-
Field Summary
Fields Modifier and Type Field Description public final static PathPattern.ReferencePathINSTANCE
-
Method Summary
Modifier and Type Method Description Stringnormalize(String path)标准化指定的路径。将会去除其中的空白以及尾随的分隔符。 Booleanmatches(String value, String path)判断指定的字符串是否匹配指定的路径。 Map<String, String>resolveVariables(String value, String path)解析路径变量。如果路径不匹配,则返回空结果。 -
Methods inherited from class icu.windea.breezeframework.core.component.PathPattern.ReferencePath
get, getOrDefault, getOrElse, getOrNull, joinToString, joinToString, joinToString, query, split, splitToSequence -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-