Home
last modified time | relevance | path

Searched refs:constructorElement (Results 1 – 3 of 3) sorted by relevance

/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DInjectConstructorValidator.java53 ValidationReport<TypeElement> validate(ExecutableElement constructorElement) { in validate() argument
55 ValidationReport.about(MoreElements.asType(constructorElement.getEnclosingElement())); in validate()
56 if (constructorElement.getModifiers().contains(PRIVATE)) { in validate()
57 builder.addError(INJECT_ON_PRIVATE_CONSTRUCTOR, constructorElement); in validate()
60 for (AnnotationMirror qualifier : getQualifiers(constructorElement)) { in validate()
61 builder.addError(QUALIFIER_ON_INJECT_CONSTRUCTOR, constructorElement, qualifier); in validate()
64 for (VariableElement parameter : constructorElement.getParameters()) { in validate()
68 builder.addError(MULTIPLE_QUALIFIERS, constructorElement, qualifier); in validate()
74 MoreElements.asType(constructorElement.getEnclosingElement()); in validate()
78 builder.addError(INJECT_INTO_PRIVATE_CLASS, constructorElement); in validate()
[all …]
DProvisionBinding.java92 ProvisionBinding forInjectConstructor(ExecutableElement constructorElement, in forInjectConstructor() argument
94 checkNotNull(constructorElement); in forInjectConstructor()
95 checkArgument(constructorElement.getKind().equals(CONSTRUCTOR)); in forInjectConstructor()
96 checkArgument(isAnnotationPresent(constructorElement, Inject.class)); in forInjectConstructor()
97 checkArgument(!getQualifier(constructorElement).isPresent()); in forInjectConstructor()
99 ExecutableType cxtorType = MoreTypes.asExecutable(constructorElement.asType()); in forInjectConstructor()
101 MoreTypes.asDeclared(constructorElement.getEnclosingElement().asType()); in forInjectConstructor()
109 cxtorType = MoreTypes.asExecutable(types.asMemberOf(resolved, constructorElement)); in forInjectConstructor()
117 constructorElement.getParameters(), in forInjectConstructor()
121 Scope scope = Scope.scopeOf(constructorElement.getEnclosingElement()); in forInjectConstructor()
[all …]
DInjectProcessingStep.java90 ExecutableElement constructorElement, Void v) { in process()
92 constructorValidator.validate(constructorElement); in process()
99 constructorElement, Optional.<TypeMirror>absent())); in process()
101 MoreTypes.asDeclared(constructorElement.getEnclosingElement().asType()); in process()