|
16 | 16 | * Generates classes based on Glide's annotations that configure Glide, add support for additional
|
17 | 17 | * resource types, and/or extend Glide's API.
|
18 | 18 | *
|
19 |
| - * <p>This processor discovers all {@link AppGlideModule} and |
20 |
| - * {@link LibraryGlideModule} implementations that are |
| 19 | + * <p>This processor discovers all {@code AppGlideModule} and |
| 20 | + * {@code LibraryGlideModule} implementations that are |
21 | 21 | * annotated with {@link com.bumptech.glide.annotation.GlideModule}. Any implementations missing the
|
22 | 22 | * annotation will be ignored.
|
23 | 23 | *
|
|
26 | 26 | *
|
27 | 27 | * <p>Multiple classes are generated by this processor:
|
28 | 28 | * <ul>
|
29 |
| - * <li>For {@link LibraryGlideModule}s - A GlideIndexer class in a |
| 29 | + * <li>For {@code LibraryGlideModule}s - A GlideIndexer class in a |
30 | 30 | * specific package that will later be used by the processor to discover all
|
31 |
| - * {@link LibraryGlideModule} classes. |
32 |
| - * <li>For {@link AppGlideModule}s - A single |
33 |
| - * {@link AppGlideModule} implementation |
34 |
| - * ({@link com.bumptech.glide.GeneratedAppGlideModule}) that calls all |
35 |
| - * {@link LibraryGlideModule}s and the |
36 |
| - * original {@link AppGlideModule} in the correct order when Glide is |
| 31 | + * {@code LibraryGlideModule} classes. |
| 32 | + * <li>For {@code AppGlideModule}s - A single |
| 33 | + * {@code AppGlideModule} implementation |
| 34 | + * ({@code com.bumptech.glide.GeneratedAppGlideModule}) that calls all |
| 35 | + * {@code LibraryGlideModule}s and the |
| 36 | + * original {@code AppGlideModule} in the correct order when Glide is |
37 | 37 | * initialized.
|
38 | 38 | * <li>{@link com.bumptech.glide.annotation.GlideExtension}s -
|
39 | 39 | * <ul>
|
40 |
| - * <li>A {@link com.bumptech.glide.request.RequestOptions} implementation that contains |
| 40 | + * <li>A {@code com.bumptech.glide.request.RequestOptions} implementation that contains |
41 | 41 | * static versions of all builder methods in the base class and both static and instance
|
42 | 42 | * versions of methods in all {@link com.bumptech.glide.annotation.GlideExtension}s.
|
43 | 43 | * <li>If one or more methods in one or more
|
44 | 44 | * {@link com.bumptech.glide.annotation.GlideExtension} annotated classes are annotated with
|
45 | 45 | * {@link GlideType}:
|
46 | 46 | * <ul>
|
47 |
| - * <li>A {@link com.bumptech.glide.RequestManager} implementation containing a generated |
| 47 | + * <li>A {@code com.bumptech.glide.RequestManager} implementation containing a generated |
48 | 48 | * method for each method annotated with
|
49 | 49 | * {@link GlideType}.
|
50 |
| - * <li>A {@link com.bumptech.glide.manager.RequestManagerRetriever.RequestManagerFactory} |
51 |
| - * implementation that produces the generated {@link com.bumptech.glide.RequestManager}s. |
52 |
| - * <li>A {@link com.bumptech.glide.Glide} look-alike that implements all static methods in |
53 |
| - * the {@link com.bumptech.glide.Glide} singleton and returns the generated |
54 |
| - * {@link com.bumptech.glide.RequestManager} implementation when appropriate. |
| 50 | + * <li>A {@code com.bumptech.glide.manager.RequestManagerRetriever.RequestManagerFactory} |
| 51 | + * implementation that produces the generated {@code com.bumptech.glide.RequestManager}s. |
| 52 | + * <li>A {@code com.bumptech.glide.Glide} look-alike that implements all static methods in |
| 53 | + * the {@code com.bumptech.glide.Glide} singleton and returns the generated |
| 54 | + * {@code com.bumptech.glide.RequestManager} implementation when appropriate. |
55 | 55 | * </ul>
|
56 | 56 | * </ul>
|
57 | 57 | * </ul>
|
58 | 58 | *
|
59 |
| - * <p>{@link AppGlideModule} implementations must only be included in |
| 59 | + * <p>{@code AppGlideModule} implementations must only be included in |
60 | 60 | * applications, not in libraries. There must be exactly one
|
61 |
| - * {@link AppGlideModule} implementation per |
62 |
| - * Application. The {@link AppGlideModule} class is |
| 61 | + * {@code AppGlideModule} implementation per |
| 62 | + * Application. The {@code AppGlideModule} class is |
63 | 63 | * used as a signal that all modules have been found and that the final merged
|
64 |
| - * {@link com.bumptech.glide.GeneratedAppGlideModule} impl can be created. |
| 64 | + * {@code com.bumptech.glide.GeneratedAppGlideModule} impl can be created. |
65 | 65 | */
|
66 | 66 | @AutoService(Processor.class)
|
67 | 67 | public final class GlideAnnotationProcessor extends AbstractProcessor {
|
@@ -96,17 +96,19 @@ public SourceVersion getSupportedSourceVersion() {
|
96 | 96 | }
|
97 | 97 |
|
98 | 98 | /**
|
99 |
| - * Each round we do the following: |
100 |
| - * <ol> |
101 |
| - * <li>Find all AppGlideModules and save them to an instance variable (throw if > 1). |
102 |
| - * <li>Find all LibraryGlideModules |
103 |
| - * <li>For each LibraryGlideModule, write an Indexer with an Annotation with the class name. |
104 |
| - * <li>If we wrote any Indexers, return and wait for the next round. |
105 |
| - * <li>If we didn't write any Indexers and there is a AppGlideModule, write the |
106 |
| - * GeneratedAppGlideModule. Once the GeneratedAppGlideModule is written, we expect to be |
107 |
| - * finished. Any further generation of related classes will result in errors. |
108 |
| - * </ol> |
109 |
| - */ |
| 99 | + * Each round we do the following: |
| 100 | + * <ol> |
| 101 | + * <li>Find all {@code AppGlideModule}s and save them to an instance variable (throw if > 1). |
| 102 | + * <li>Find all {@code LibraryGlideModule}s |
| 103 | + * <li>For each {@code LibraryGlideModule}, |
| 104 | + * write an {@code Indexer} with an Annotation with the class name. |
| 105 | + * <li>If we wrote any {@code Indexer}s, return and wait for the next round. |
| 106 | + * <li>If we didn't write any {@code Indexer}s and there is a {@code AppGlideModule}, |
| 107 | + * write the {@code GeneratedAppGlideModule}. |
| 108 | + * Once the {@code GeneratedAppGlideModule} is written, we expect to be finished. |
| 109 | + * Any further generation of related classes will result in errors. |
| 110 | + * </ol> |
| 111 | + */ |
110 | 112 | @Override
|
111 | 113 | public boolean process(Set<? extends TypeElement> set, RoundEnvironment env) {
|
112 | 114 | processorUtil.process();
|
|
0 commit comments