mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-30 06:37:36 +00:00
[Add] BotCode 增加 getCodePattern 方法以允许其他类获取BotCode所使用的正则匹配表达式;
This commit is contained in:
parent
970be847a0
commit
11005b0f6c
@ -54,6 +54,14 @@ public class BotCode {
|
|||||||
return new BotCode(keys[0], keys[1], param);
|
return new BotCode(keys[0], keys[1], param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取BotCode所使用的匹配正则表达式
|
||||||
|
* @return 用于匹配BotCode的正则表达式对象
|
||||||
|
*/
|
||||||
|
public static Pattern getCodePattern() {
|
||||||
|
return Pattern.compile(codePattern.pattern());
|
||||||
|
}
|
||||||
|
|
||||||
private String platformName;
|
private String platformName;
|
||||||
private String functionName;
|
private String functionName;
|
||||||
private Hashtable<String, String> parameter = new Hashtable<>();
|
private Hashtable<String, String> parameter = new Hashtable<>();
|
||||||
|
Loading…
Reference in New Issue
Block a user