File tree 13 files changed +21
-22
lines changed
java/dagger/internal/codegen
13 files changed +21
-22
lines changed Original file line number Diff line number Diff line change 58
58
import dagger .internal .codegen .javapoet .TypeNames ;
59
59
import dagger .internal .codegen .langmodel .DaggerElements ;
60
60
import dagger .internal .codegen .langmodel .DaggerTypes ;
61
+ import dagger .internal .codegen .validation .TypeCheckingProcessingStep ;
61
62
import dagger .internal .codegen .validation .ValidationReport ;
62
- import dagger .internal .codegen .validation .XTypeCheckingProcessingStep ;
63
63
import java .util .HashSet ;
64
64
import java .util .Optional ;
65
65
import java .util .Set ;
75
75
import javax .lang .model .type .TypeMirror ;
76
76
77
77
/** An annotation processor for {@link dagger.assisted.AssistedFactory}-annotated types. */
78
- final class AssistedFactoryProcessingStep extends XTypeCheckingProcessingStep <XTypeElement > {
78
+ final class AssistedFactoryProcessingStep extends TypeCheckingProcessingStep <XTypeElement > {
79
79
private final XProcessingEnv processingEnv ;
80
80
private final XMessager messager ;
81
81
private final XFiler filer ;
Original file line number Diff line number Diff line change 31
31
import dagger .internal .codegen .binding .AssistedInjectionAnnotations .AssistedParameter ;
32
32
import dagger .internal .codegen .javapoet .TypeNames ;
33
33
import dagger .internal .codegen .langmodel .DaggerTypes ;
34
+ import dagger .internal .codegen .validation .TypeCheckingProcessingStep ;
34
35
import dagger .internal .codegen .validation .ValidationReport ;
35
- import dagger .internal .codegen .validation .XTypeCheckingProcessingStep ;
36
36
import java .util .HashSet ;
37
37
import java .util .Set ;
38
38
import javax .inject .Inject ;
41
41
import javax .lang .model .type .DeclaredType ;
42
42
43
43
/** An annotation processor for {@link dagger.assisted.AssistedInject}-annotated elements. */
44
- final class AssistedInjectProcessingStep extends XTypeCheckingProcessingStep <XExecutableElement > {
44
+ final class AssistedInjectProcessingStep extends TypeCheckingProcessingStep <XExecutableElement > {
45
45
private final DaggerTypes types ;
46
46
private final XMessager messager ;
47
47
private final XProcessingEnv processingEnv ;
Original file line number Diff line number Diff line change 31
31
import dagger .internal .codegen .javapoet .TypeNames ;
32
32
import dagger .internal .codegen .kotlin .KotlinMetadataUtil ;
33
33
import dagger .internal .codegen .langmodel .DaggerElements ;
34
+ import dagger .internal .codegen .validation .TypeCheckingProcessingStep ;
34
35
import dagger .internal .codegen .validation .ValidationReport ;
35
- import dagger .internal .codegen .validation .XTypeCheckingProcessingStep ;
36
36
import javax .inject .Inject ;
37
37
import javax .lang .model .element .Element ;
38
38
import javax .lang .model .element .ElementKind ;
44
44
*
45
45
* <p>This processing step should run after {@link AssistedFactoryProcessingStep}.
46
46
*/
47
- final class AssistedProcessingStep extends XTypeCheckingProcessingStep <XVariableElement > {
47
+ final class AssistedProcessingStep extends TypeCheckingProcessingStep <XVariableElement > {
48
48
private final KotlinMetadataUtil kotlinMetadataUtil ;
49
49
private final InjectionAnnotations injectionAnnotations ;
50
50
private final DaggerElements elements ;
Original file line number Diff line number Diff line change 33
33
import dagger .internal .codegen .binding .ComponentDescriptorFactory ;
34
34
import dagger .internal .codegen .validation .ComponentCreatorValidator ;
35
35
import dagger .internal .codegen .validation .ComponentValidator ;
36
+ import dagger .internal .codegen .validation .TypeCheckingProcessingStep ;
36
37
import dagger .internal .codegen .validation .ValidationReport ;
37
- import dagger .internal .codegen .validation .XTypeCheckingProcessingStep ;
38
38
import java .util .Set ;
39
39
import javax .inject .Inject ;
40
40
import javax .lang .model .element .TypeElement ;
52
52
* <p>The components emitted by this processing step include all of the API elements exposed by the
53
53
* normal step. Method bodies are omitted as Turbine ignores them entirely.
54
54
*/
55
- final class ComponentHjarProcessingStep extends XTypeCheckingProcessingStep <XTypeElement > {
55
+ final class ComponentHjarProcessingStep extends TypeCheckingProcessingStep <XTypeElement > {
56
56
private final XMessager messager ;
57
57
private final ComponentValidator componentValidator ;
58
58
private final ComponentCreatorValidator creatorValidator ;
Original file line number Diff line number Diff line change 41
41
import dagger .internal .codegen .validation .ComponentCreatorValidator ;
42
42
import dagger .internal .codegen .validation .ComponentDescriptorValidator ;
43
43
import dagger .internal .codegen .validation .ComponentValidator ;
44
+ import dagger .internal .codegen .validation .TypeCheckingProcessingStep ;
44
45
import dagger .internal .codegen .validation .ValidationReport ;
45
- import dagger .internal .codegen .validation .XTypeCheckingProcessingStep ;
46
46
import java .util .Set ;
47
47
import javax .inject .Inject ;
48
48
import javax .lang .model .element .Element ;
52
52
* A {@link ProcessingStep} that is responsible for dealing with a component or production component
53
53
* as part of the {@link ComponentProcessor}.
54
54
*/
55
- final class ComponentProcessingStep extends XTypeCheckingProcessingStep <XTypeElement > {
55
+ final class ComponentProcessingStep extends TypeCheckingProcessingStep <XTypeElement > {
56
56
private final XMessager messager ;
57
57
private final ComponentValidator componentValidator ;
58
58
private final ComponentCreatorValidator creatorValidator ;
Original file line number Diff line number Diff line change 24
24
import com .squareup .javapoet .ClassName ;
25
25
import dagger .internal .codegen .binding .InjectBindingRegistry ;
26
26
import dagger .internal .codegen .javapoet .TypeNames ;
27
- import dagger .internal .codegen .validation .XTypeCheckingProcessingStep ;
27
+ import dagger .internal .codegen .validation .TypeCheckingProcessingStep ;
28
28
import java .util .Set ;
29
29
import javax .inject .Inject ;
30
30
import javax .lang .model .element .Element ;
38
38
* annotation.
39
39
*/
40
40
// TODO(gak): add some error handling for bad source files
41
- final class InjectProcessingStep extends XTypeCheckingProcessingStep <XElement > {
41
+ final class InjectProcessingStep extends TypeCheckingProcessingStep <XElement > {
42
42
private final ElementVisitor <Void , Void > visitor ;
43
43
private final Set <Element > processedElements = Sets .newLinkedHashSet ();
44
44
Original file line number Diff line number Diff line change 29
29
import dagger .internal .codegen .javapoet .TypeNames ;
30
30
import dagger .internal .codegen .langmodel .DaggerTypes ;
31
31
import dagger .internal .codegen .validation .MapKeyValidator ;
32
+ import dagger .internal .codegen .validation .TypeCheckingProcessingStep ;
32
33
import dagger .internal .codegen .validation .ValidationReport ;
33
- import dagger .internal .codegen .validation .XTypeCheckingProcessingStep ;
34
34
import dagger .internal .codegen .writing .AnnotationCreatorGenerator ;
35
35
import dagger .internal .codegen .writing .UnwrappedMapKeyGenerator ;
36
36
import javax .inject .Inject ;
42
42
* The annotation processor responsible for validating the mapKey annotation and auto-generate
43
43
* implementation of annotations marked with {@link MapKey @MapKey} where necessary.
44
44
*/
45
- final class MapKeyProcessingStep extends XTypeCheckingProcessingStep <XTypeElement > {
45
+ final class MapKeyProcessingStep extends TypeCheckingProcessingStep <XTypeElement > {
46
46
private final XMessager messager ;
47
47
private final DaggerTypes types ;
48
48
private final MapKeyValidator mapKeyValidator ;
Original file line number Diff line number Diff line change 40
40
import dagger .internal .codegen .javapoet .TypeNames ;
41
41
import dagger .internal .codegen .kotlin .KotlinMetadataUtil ;
42
42
import dagger .internal .codegen .validation .ModuleValidator ;
43
+ import dagger .internal .codegen .validation .TypeCheckingProcessingStep ;
43
44
import dagger .internal .codegen .validation .ValidationReport ;
44
- import dagger .internal .codegen .validation .XTypeCheckingProcessingStep ;
45
45
import dagger .internal .codegen .writing .InaccessibleMapKeyProxyGenerator ;
46
46
import dagger .internal .codegen .writing .ModuleGenerator ;
47
47
import java .util .Map ;
54
54
* A {@link ProcessingStep} that validates module classes and generates factories for binding
55
55
* methods.
56
56
*/
57
- final class ModuleProcessingStep extends XTypeCheckingProcessingStep <XTypeElement > {
57
+ final class ModuleProcessingStep extends TypeCheckingProcessingStep <XTypeElement > {
58
58
private final XMessager messager ;
59
59
private final ModuleValidator moduleValidator ;
60
60
private final BindingFactory bindingFactory ;
Original file line number Diff line number Diff line change 28
28
29
29
/** A step that validates all binding methods that were not validated while processing modules. */
30
30
public final class BindingMethodProcessingStep
31
- extends XTypeCheckingProcessingStep <XExecutableElement > {
31
+ extends TypeCheckingProcessingStep <XExecutableElement > {
32
32
33
33
private final XMessager messager ;
34
34
private final AnyBindingMethodValidator anyBindingMethodValidator ;
Original file line number Diff line number Diff line change 30
30
* Processing step that validates that the {@code BindsInstance} annotation is applied to the
31
31
* correct elements.
32
32
*/
33
- public final class BindsInstanceProcessingStep extends XTypeCheckingProcessingStep <XElement > {
33
+ public final class BindsInstanceProcessingStep extends TypeCheckingProcessingStep <XElement > {
34
34
private final BindsInstanceMethodValidator methodValidator ;
35
35
private final BindsInstanceParameterValidator parameterValidator ;
36
36
private final XMessager messager ;
Original file line number Diff line number Diff line change 27
27
* A processing step that is responsible for generating a special module for a {@link
28
28
* dagger.producers.ProductionComponent} or {@link dagger.producers.ProductionSubcomponent}.
29
29
*/
30
- public final class MonitoringModuleProcessingStep
31
- extends XTypeCheckingProcessingStep <XTypeElement > {
30
+ public final class MonitoringModuleProcessingStep extends TypeCheckingProcessingStep <XTypeElement > {
32
31
private final XMessager messager ;
33
32
private final MonitoringModuleGenerator monitoringModuleGenerator ;
34
33
Original file line number Diff line number Diff line change 32
32
* non-binding methods.
33
33
*/
34
34
public final class MultibindingAnnotationsProcessingStep
35
- extends XTypeCheckingProcessingStep <XExecutableElement > {
35
+ extends TypeCheckingProcessingStep <XExecutableElement > {
36
36
private final AnyBindingMethodValidator anyBindingMethodValidator ;
37
37
private final XMessager messager ;
38
38
Original file line number Diff line number Diff line change 36
36
* A {@link XProcessingStep} that processes one element at a time and defers any for which {@link
37
37
* TypeNotPresentException} is thrown.
38
38
*/
39
- public abstract class XTypeCheckingProcessingStep <E extends XElement > implements XProcessingStep {
39
+ public abstract class TypeCheckingProcessingStep <E extends XElement > implements XProcessingStep {
40
40
41
41
@ Override
42
42
public final ImmutableSet <String > annotations () {
You can’t perform that action at this time.
0 commit comments