|
1 |
| -package com.yc.api.compiler; |
| 1 | +package com.yc.api.compiler.route; |
2 | 2 |
|
3 | 3 | import com.google.auto.service.AutoService;
|
4 | 4 | import com.squareup.javapoet.ClassName;
|
5 | 5 | import com.squareup.javapoet.JavaFile;
|
6 | 6 | import com.squareup.javapoet.MethodSpec;
|
7 | 7 | import com.squareup.javapoet.ParameterSpec;
|
8 | 8 | import com.squareup.javapoet.TypeSpec;
|
9 |
| -import com.yc.api.RouteConstants; |
10 |
| -import com.yc.api.RouteImpl; |
| 9 | +import com.yc.api.route.RouteConstants; |
| 10 | +import com.yc.api.route.RouteImpl; |
11 | 11 |
|
12 | 12 | import java.io.IOException;
|
13 | 13 | import java.util.Set;
|
@@ -84,7 +84,7 @@ public boolean process(Set<? extends TypeElement> set, RoundEnvironment roundEnv
|
84 | 84 | Set<? extends Element> annotated = roundEnvironment.getElementsAnnotatedWith(typeElement);
|
85 | 85 | for (Element apiImplElement : annotated) {
|
86 | 86 | //被 RouteImpl 注解的节点集合
|
87 |
| - //注意断点打印:@com.yc.api.RouteImpl(value=com.zwwl.moduleinterface.IShowDialogManager) |
| 87 | + //注意断点打印:@com.yc.api.route.RouteImpl(value=com.zwwl.moduleinterface.IShowDialogManager) |
88 | 88 | RouteImpl annotation = apiImplElement.getAnnotation(RouteImpl.class);
|
89 | 89 | if (annotation == null || !(apiImplElement instanceof TypeElement)) {
|
90 | 90 | continue;
|
@@ -124,7 +124,7 @@ private TypeSpec buildClass(RouteContract<ClassName> apiNameContract) {
|
124 | 124 | //注意断点打印:IShowDialogManager
|
125 | 125 | System.out.println("RouteImplProcessor--------buildClass-------simpleName---"+simpleName);
|
126 | 126 | }
|
127 |
| - //获取 com.yc.api.IRouteContract 信息,也就是IRouteContract接口的路径 |
| 127 | + //获取 com.yc.api.route.IRouteContract 信息,也就是IRouteContract接口的路径 |
128 | 128 | TypeElement typeElement = elements.getTypeElement(RouteConstants.INTERFACE_NAME_CONTRACT);
|
129 | 129 | ClassName className = ClassName.get(typeElement);
|
130 | 130 | if (RouteConstants.LOG){
|
@@ -175,7 +175,7 @@ private MethodSpec buildMethod(RouteContract<ClassName> apiNameContract) {
|
175 | 175 | }
|
176 | 176 |
|
177 | 177 | private ParameterSpec buildParameterSpec() {
|
178 |
| - //获取 com.yc.api.IRegister 信息,也就是IRegister接口的路径 |
| 178 | + //获取 com.yc.api.route.IRegister 信息,也就是IRegister接口的路径 |
179 | 179 | TypeElement typeElement = elements.getTypeElement(RouteConstants.INTERFACE_TYPE_REGISTER);
|
180 | 180 | ClassName className = ClassName.get(typeElement);
|
181 | 181 | if (RouteConstants.LOG){
|
|
0 commit comments