forked from Tencent/APIJSON
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFunctionParser.java
More file actions
54 lines (33 loc) · 1.26 KB
/
Copy pathFunctionParser.java
File metadata and controls
54 lines (33 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*Copyright (C) 2020 Tencent. All rights reserved.
This source code is licensed under the Apache License Version 2.0.*/
package apijson.orm;
import java.util.List;
import java.util.Map;
import apijson.*;
/**远程函数解析器
* @author Lemon
*/
public interface FunctionParser<T, M extends Map<String, Object>, L extends List<Object>> {
Object invoke(@NotNull String function, @NotNull M currentObject) throws Exception;
Object invoke(@NotNull String function, @NotNull M currentObject, boolean containRaw) throws Exception;
Parser<T, M, L> getParser();
FunctionParser<T, M, L> setParser(Parser<T, M, L> parser);
RequestMethod getMethod();
FunctionParser<T, M, L> setMethod(RequestMethod method);
String getTag();
FunctionParser<T, M, L> setTag(String tag);
int getVersion();
FunctionParser<T, M, L> setVersion(int version);
@NotNull
M getRequest();
FunctionParser<T, M, L> setRequest(@NotNull M request);
String getKey();
FunctionParser<T, M, L> setKey(String key);
String getParentPath();
FunctionParser<T, M, L> setParentPath(String parentPath);
String getCurrentName();
FunctionParser<T, M, L> setCurrentName(String currentName);
@NotNull
M getCurrentObject();
FunctionParser<T, M, L> setCurrentObject(@NotNull M currentObject);
}