远程函数解析器 @author Lemon
| 15 | * @author Lemon |
| 16 | */ |
| 17 | public interface FunctionParser<T, M extends Map<String, Object>, L extends List<Object>> { |
| 18 | |
| 19 | Object invoke(@NotNull String function, @NotNull M currentObject) throws Exception; |
| 20 | Object invoke(@NotNull String function, @NotNull M currentObject, boolean containRaw) throws Exception; |
| 21 | |
| 22 | Parser<T, M, L> getParser(); |
| 23 | |
| 24 | FunctionParser<T, M, L> setParser(Parser<T, M, L> parser); |
| 25 | |
| 26 | RequestMethod getMethod(); |
| 27 | FunctionParser<T, M, L> setMethod(RequestMethod method); |
| 28 | |
| 29 | String getTag(); |
| 30 | FunctionParser<T, M, L> setTag(String tag); |
| 31 | |
| 32 | int getVersion(); |
| 33 | FunctionParser<T, M, L> setVersion(int version); |
| 34 | |
| 35 | @NotNull |
| 36 | M getRequest(); |
| 37 | FunctionParser<T, M, L> setRequest(@NotNull M request); |
| 38 | |
| 39 | |
| 40 | String getKey(); |
| 41 | FunctionParser<T, M, L> setKey(String key); |
| 42 | |
| 43 | String getParentPath(); |
| 44 | FunctionParser<T, M, L> setParentPath(String parentPath); |
| 45 | |
| 46 | String getCurrentName(); |
| 47 | FunctionParser<T, M, L> setCurrentName(String currentName); |
| 48 | |
| 49 | |
| 50 | @NotNull |
| 51 | M getCurrentObject(); |
| 52 | FunctionParser<T, M, L> setCurrentObject(@NotNull M currentObject); |
| 53 | |
| 54 | } |
no outgoing calls
no test coverage detected