mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
パースメソッドを追加
This commit is contained in:
1 file changed
+8
@@ -41,6 +41,14 @@ public class PublicPath {
|
||||
}
|
||||
}
|
||||
|
||||
public PublicPath parse(String path) {
|
||||
String[] pathArray = path.split("/");
|
||||
for (String p : pathArray) {
|
||||
resolveInternal(p);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public PublicPath resolve(String path) {
|
||||
resolveInternal(path);
|
||||
return this;
|
||||
|
||||
Reference in new issue
Block a user