Home
last modified time | relevance | path

Searched refs:bindingElement (Results 1 – 25 of 34) sorted by relevance

12

/external/dagger2/java/dagger/internal/codegen/binding/
DBindingDeclarationFormatter.java59 if (bindingDeclaration.bindingElement().isPresent()) { in canFormat()
60 Element bindingElement = bindingDeclaration.bindingElement().get(); in canFormat() local
61 return bindingElement.getKind().equals(PARAMETER) in canFormat()
62 || FORMATTABLE_ELEMENT_TYPE_KINDS.contains(bindingElement.asType().getKind()); in canFormat()
74 if (bindingDeclaration.bindingElement().isPresent()) { in format()
75 Element bindingElement = bindingDeclaration.bindingElement().get(); in format() local
76 if (bindingElement.getKind().equals(PARAMETER)) { in format()
77 return elementToString(bindingElement); in format()
80 switch (bindingElement.asType().getKind()) { in format()
83 MoreElements.asExecutable(bindingElement), in format()
[all …]
DContributionBinding.java62 return bindingElement() in contributedPrimitiveType()
63 .filter(bindingElement -> bindingElement instanceof ExecutableElement) in contributedPrimitiveType()
64 .map(bindingElement -> MoreElements.asExecutable(bindingElement).getReturnType()) in contributedPrimitiveType()
173 public abstract B bindingElement(Element bindingElement); in bindingElement() argument
175 abstract B bindingElement(Optional<Element> bindingElement); in bindingElement() argument
178 return bindingElement(Optional.empty()); in clearBindingElement()
DBindingDeclaration.java53 (BindingDeclaration declaration) -> declaration.bindingElement(),
71 public abstract Optional<Element> bindingElement(); in bindingElement() method in BindingDeclaration
78 return bindingElement().map(DaggerElements::closestEnclosingTypeElement); in bindingTypeElement()
DBindingFactory.java159 .bindingElement(constructorElement) in injectionBinding()
200 .bindingElement(factory) in assistedFactoryBinding()
274 .bindingElement(method) in setMethodBindingProperties()
325 .bindingElement(componentDefinitionType) in componentBinding()
339 .bindingElement(dependency.typeElement()) in componentDependencyBinding()
375 .bindingElement(dependencyMethod) in componentDependencyMethodBinding()
391 .bindingElement(element) in boundInstanceBinding()
415 .bindingElement(subcomponentCreatorMethod) in subcomponentCreatorBinding()
453 .scope(uniqueScopeOf(delegateDeclaration.bindingElement().get())) in delegateBinding()
469 ProvisionBinding.builder().scope(uniqueScopeOf(delegateDeclaration.bindingElement().get())), in unresolvedDelegateBinding()
[all …]
DMapKeys.java64 static Optional<AnnotationMirror> getMapKey(Element bindingElement) { in getMapKey() argument
65 ImmutableSet<? extends AnnotationMirror> mapKeys = getMapKeys(bindingElement); in getMapKey()
72 public static ImmutableSet<? extends AnnotationMirror> getMapKeys(Element bindingElement) { in getMapKeys() argument
73 return getAnnotatedAnnotations(bindingElement, MapKey.class); in getMapKeys()
199 MoreElements.asExecutable(binding.bindingElement().get()), "MapKey"); in mapKeyProxyClassName()
DBindingNode.java100 public Optional<Element> bindingElement() { in bindingElement() method in BindingNode
101 return delegate().bindingElement(); in bindingElement()
DFrameworkField.java88 if (binding.bindingElement().isPresent()) { in frameworkFieldName()
89 String name = BINDING_ELEMENT_NAME.visit(binding.bindingElement().get(), binding); in frameworkFieldName()
DBinding.java56 if (!bindingElement().isPresent() || !contributingModule().isPresent()) { in requiresModuleInstance()
59 Set<Modifier> modifiers = bindingElement().get().getModifiers(); in requiresModuleInstance()
DAssistedInjectionAnnotations.java97 ExecutableElement constructor = asExecutable(binding.bindingElement().get()); in assistedParameterSpecs()
130 AssistedFactoryMetadata.create(binding.bindingElement().get().asType(), elements, types); in assistedFactoryParameterSpecs()
151 ? assistedParameters(asExecutable(binding.bindingElement().get())) in assistedParameters()
DMembersInjectionBinding.java40 public final Optional<Element> bindingElement() { in bindingElement() method in MembersInjectionBinding
DSourceFiles.java148 MoreElements.asExecutable(binding.bindingElement().get()), "Factory"); in generatedClassNameForBinding()
151 return siblingClassName(MoreElements.asType(binding.bindingElement().get()), "_Impl"); in generatedClassNameForBinding()
DKeyVariableNamer.java93 return key.multibindingContributionIdentifier().get().bindingElement(); in name()
/external/dagger2/java/dagger/model/
DKey.java221 private final String bindingElement;
238 public MultibindingContributionIdentifier(String bindingElement, String module) {
240 this.bindingElement = bindingElement;
257 public String bindingElement() {
258 return bindingElement;
269 return String.format("%s#%s", module, bindingElement);
276 return module.equals(other.module) && bindingElement.equals(other.bindingElement);
283 return Objects.hash(module, bindingElement);
DBinding.java59 Optional<Element> bindingElement(); in bindingElement() method
/external/dagger2/java/dagger/internal/codegen/writing/
DGwtCompatibility.java35 checkArgument(binding.bindingElement().isPresent()); in gwtIncompatibleAnnotation()
36 Element element = binding.bindingElement().get(); in gwtIncompatibleAnnotation()
DComponentProvisionBindingExpression.java55 binding.bindingElement().get().getSimpleName()); in getDependencyExpression()
64 .getDependencyThatDefinesMethod(binding.bindingElement().get()); in componentRequirement()
DDependencyMethodProducerCreationExpression.java64 graph.componentDescriptor().getDependencyThatDefinesMethod(binding.bindingElement().get()); in creationExpression()
96 binding.bindingElement().get().getSimpleName()) in creationExpression()
DDependencyMethodProviderCreationExpression.java119 + binding.bindingElement().get().getSimpleName(); in factoryClassName()
128 return binding.bindingElement().get(); in provisionMethod()
DSimpleMethodBindingExpression.java77 checkArgument(provisionBinding.bindingElement().isPresent()); in SimpleMethodBindingExpression()
100 ExecutableElement method = asExecutable(provisionBinding.bindingElement().get()); in invokeMethod()
DProducerFactoryGenerator.java114 return binding.bindingElement().get(); in originatingElement()
121 checkArgument(binding.bindingElement().isPresent()); in write()
303 binding.bindingElement().get().getSimpleName())) in producerTokenConstruction()
531 binding.bindingElement().get().getSimpleName(), in getInvocationCodeBlock()
DInaccessibleMapKeyProxyGenerator.java63 return binding.bindingElement().get(); in originatingElement()
/external/dagger2/java/dagger/internal/codegen/kythe/
DDaggerKythePlugin.java111 if (binding.bindingElement().isPresent()) { in addEdgesForDependencyRequest()
132 Element bindingElement = bindingDeclaration.bindingElement().get(); in addDependencyEdge() local
134 Optional<VName> bindingElementNode = jvmNode(bindingElement, "binding element"); in addDependencyEdge()
/external/dagger2/java/dagger/android/processor/
DDuplicateAndroidInjectorsChecker.java132 .bindingElement() in mapKey()
133 .map(bindingElement -> getAnnotatedAnnotations(bindingElement, MapKey.class)) in mapKey()
/external/dagger2/java/dagger/internal/codegen/bindinggraphvalidation/
DIncompatiblyScopedBindingsValidator.java128 MoreElements.asExecutable(binding.bindingElement().get()))); in report()
136 closestEnclosingTypeElement(binding.bindingElement().get()).getQualifiedName()); in report()
/external/dagger2/java/dagger/internal/codegen/
DAssistedFactoryProcessingStep.java235 return binding.bindingElement().get(); in originatingElement()
272 TypeElement factory = asType(binding.bindingElement().get()); in write()

12