Home
last modified time | relevance | path

Searched refs:DeclaredType (Results 1 – 25 of 29) sorted by relevance

12

/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DMembersInjectionBinding.java41 import javax.lang.model.type.DeclaredType;
134 ExecutableElement methodElement, DeclaredType containingType) { in injectionSiteForInjectMethod()
147 VariableElement fieldElement, DeclaredType containingType) { in injectionSiteForInjectField()
163 DeclaredType unresolved = MoreTypes.asDeclared(binding.bindingElement().asType()); in unresolve()
168 boolean hasInjectedMembers(DeclaredType declaredType) { in hasInjectedMembers()
178 DeclaredType declaredType, Optional<TypeMirror> resolvedType) { in forInjectedType()
181 DeclaredType resolved = MoreTypes.asDeclared(resolvedType.get()); in forInjectedType()
205 new Function<DeclaredType, DependencyRequest>() { in forInjectedType()
207 public DependencyRequest apply(DeclaredType input) { in forInjectedType()
225 private ImmutableSortedSet<InjectionSite> getInjectionSites(DeclaredType declaredType) { in getInjectionSites()
[all …]
DDependencyRequest.java41 import javax.lang.model.type.DeclaredType;
116 abstract DeclaredType enclosingType(); in enclosingType()
142 ImmutableSet<DependencyRequest> forRequiredResolvedVariables(DeclaredType container, in forRequiredResolvedVariables()
197 DependencyRequest forRequiredResolvedVariable(DeclaredType container, in forRequiredResolvedVariable()
232 DeclaredType container = getEnclosingType(productionMethod); in forComponentProductionMethod()
239 qualifier, Iterables.getOnlyElement(((DeclaredType) type).getTypeArguments())), in forComponentProductionMethod()
263 Iterables.getOnlyElement(((DeclaredType) returnType).getTypeArguments())), in forComponentMembersInjectionMethod()
280 DependencyRequest forMembersInjectedType(DeclaredType type) { in forMembersInjectedType()
305 DeclaredType container, in newDependencyRequest()
350 Iterables.getOnlyElement(((DeclaredType) type).getTypeArguments())); in extractKindAndType()
[all …]
DMapKeys.java39 import javax.lang.model.type.DeclaredType;
103 public static DeclaredType getUnwrappedMapKeyType( in getUnwrappedMapKeyType()
104 final DeclaredType mapKeyAnnotationType, final Types types) { in getUnwrappedMapKeyType()
113 SimpleTypeVisitor6<DeclaredType, Void> keyTypeElementVisitor = in getUnwrappedMapKeyType()
114 new SimpleTypeVisitor6<DeclaredType, Void>() { in getUnwrappedMapKeyType()
117 public DeclaredType visitArray(ArrayType t, Void p) { in getUnwrappedMapKeyType()
123 public DeclaredType visitPrimitive(PrimitiveType t, Void p) { in getUnwrappedMapKeyType()
128 public DeclaredType visitDeclared(DeclaredType t, Void p) { in getUnwrappedMapKeyType()
323 public TypeName visitDeclared(DeclaredType t, Void p) {
DProvisionBinding.java30 import javax.lang.model.type.DeclaredType;
100 DeclaredType enclosingCxtorType = in forInjectConstructor()
104 DeclaredType resolved = MoreTypes.asDeclared(resolvedType.get()); in forInjectConstructor()
132 Optional.<DeclaredType>absent(), in forInjectConstructor()
143 private Optional<DependencyRequest> membersInjectionRequest(DeclaredType type) { in membersInjectionRequest()
164 DeclaredType declaredContainer = MoreTypes.asDeclared(contributedBy); in forProvidesMethod()
205 Optional.<DeclaredType>absent(), in implicitMapOfProviderBinding()
221 Optional.<DeclaredType>absent(), in forComponent()
253 DeclaredType declaredContainer = asDeclared(contributedBy.asType()); in forSubcomponentBuilderMethod()
260 Optional.<DeclaredType>absent(), in forSubcomponentBuilderMethod()
DContributionBinding.java42 import javax.lang.model.type.DeclaredType;
98 abstract Optional<DeclaredType> nullableType(); in nullableType()
275 static ImmutableSetMultimap<Wrapper<DeclaredType>, ContributionBinding>
280 new Function<ContributionBinding, Equivalence.Wrapper<DeclaredType>>() {
282 public Equivalence.Wrapper<DeclaredType> apply(ContributionBinding mapBinding) {
DInjectProcessingStep.java33 import javax.lang.model.type.DeclaredType;
82 final ImmutableSet.Builder<DeclaredType> membersInjectedTypes = ImmutableSet.builder(); in process()
100 DeclaredType type = in process()
145 for (DeclaredType injectedType : membersInjectedTypes.build()) { in process()
DUtil.java32 import javax.lang.model.type.DeclaredType;
52 public static TypeMirror getProvidedValueTypeOfMap(DeclaredType mapType) { in getProvidedValueTypeOfMap()
61 public static TypeMirror getValueTypeOfMap(DeclaredType mapType) { in getValueTypeOfMap()
69 public static TypeMirror getKeyTypeOfMap(DeclaredType mapType) { in getKeyTypeOfMap()
DProductionBinding.java30 import javax.lang.model.type.DeclaredType;
113 DeclaredType declaredContainer = MoreTypes.asDeclared(contributedBy); in forProducesMethod()
157 Optional.<DeclaredType>absent(), in implicitMapOfProducerBinding()
177 Optional.<DeclaredType>absent(), in forComponentMethod()
DConfigurationAnnotations.java42 import javax.lang.model.type.DeclaredType;
97 static Optional<DeclaredType> getNullableType(Element element) { in getNullableType()
195 static ImmutableList<DeclaredType> enclosedBuilders(TypeElement typeElement, in enclosedBuilders()
197 final ImmutableList.Builder<DeclaredType> builders = ImmutableList.builder(); in enclosedBuilders()
218 public Optional<AnnotationMirror> visitDeclared(DeclaredType t, Void p) { in visitDeclared()
DMethodSignatureFormatter.java27 import javax.lang.model.type.DeclaredType;
50 return format(method, Optional.<DeclaredType>absent()); in format()
57 public String format(ExecutableElement method, Optional<DeclaredType> container) { in format()
DKeyVariableNamer.java20 import javax.lang.model.type.DeclaredType;
48 public Void visitDeclared(DeclaredType t, StringBuilder builder) { in apply()
DProducesMethodValidator.java30 import javax.lang.model.type.DeclaredType;
141 DeclaredType declaredReturnType = MoreTypes.asDeclared(returnType); in validate()
176 DeclaredType declaredType = MoreTypes.asDeclared(type); in validateSingleReturnType()
195 DeclaredType declaredType = MoreTypes.asDeclared(type); in validateSetType()
DComponentDescriptor.java45 import javax.lang.model.type.DeclaredType;
268 DeclaredType declaredComponentType = MoreTypes.asDeclared(componentDefinitionType.asType());
339 ImmutableList<DeclaredType> enclosedBuilders = kind.builderAnnotationType() == null
340 ? ImmutableList.<DeclaredType>of()
342 Optional<DeclaredType> builderType =
432 private Optional<BuilderSpec> createBuilderSpec(Optional<DeclaredType> builderType) {
DComponentValidator.java41 import javax.lang.model.type.DeclaredType;
142 ImmutableList<DeclaredType> builders = in validate()
150 DeclaredType subjectType = MoreTypes.asDeclared(subject.asType()); in validate()
277 @Override public Optional<TypeElement> visitDeclared(DeclaredType t, Void p) { in validateSubcomponentMethod()
340 public Optional<AnnotationMirror> visitDeclared(DeclaredType t, Void p) { in checkForAnnotation()
DProductionComponentValidator.java25 import javax.lang.model.type.DeclaredType;
66 public Void visitDeclared(DeclaredType t, Void p) { in validate()
DKey.java40 import javax.lang.model.type.DeclaredType;
122 @Override public Boolean visitDeclared(DeclaredType type, Void ignored) { in isValidImplicitProvisionKey()
206 ExecutableElement subcomponentBuilderMethod, DeclaredType declaredContainer) {
346 DeclaredType declaredMapType = MoreTypes.asDeclared(possibleMapKey.type());
356 DeclaredType wrappedType = types.getDeclaredType(wrappingElement, mapValueType);
DMapKeyProcessingStep.java30 import javax.lang.model.type.DeclaredType;
76 DeclaredType keyType = in process()
DProvidesMethodValidator.java28 import javax.lang.model.type.DeclaredType;
139 DeclaredType declaredReturnType = (DeclaredType) returnType; in validate()
DBinding.java36 import javax.lang.model.type.DeclaredType;
190 public Void visitDeclared(DeclaredType t, ImmutableSet.Builder<String> p) { in nonPublicPackageUse()
256 public List<TypeMirror> visitDeclared(DeclaredType t, Void p) { in hasNonDefaultTypeParameters()
DMapKeyGenerator.java41 import javax.lang.model.type.DeclaredType;
168 public Void visitDeclared(DeclaredType t, Set<TypeElement> p) {
/external/protobuf/src/google/protobuf/
Dwire_format_lite_inl.h230 template <typename CType, enum WireFormatLite::FieldType DeclaredType>
237 if (!ReadPrimitive<CType, DeclaredType>(input, &value)) return false; in ReadRepeatedPrimitive()
241 if (!ReadPrimitive<CType, DeclaredType>(input, &value)) return false; in ReadRepeatedPrimitive()
248 template <typename CType, enum WireFormatLite::FieldType DeclaredType>
256 if (!ReadPrimitive<CType, DeclaredType>(input, &value)) in ReadRepeatedFixedSizePrimitive()
283 buffer = ReadPrimitiveFromArray<CType, DeclaredType>(buffer, &value); in ReadRepeatedFixedSizePrimitive()
319 template <typename CType, enum WireFormatLite::FieldType DeclaredType> in READ_REPEATED_FIXED_SIZE_PRIMITIVE()
325 return ReadRepeatedPrimitive<CType, DeclaredType>( in READ_REPEATED_FIXED_SIZE_PRIMITIVE()
329 template <typename CType, enum WireFormatLite::FieldType DeclaredType>
337 if (!ReadPrimitive<CType, DeclaredType>(input, &value)) return false; in ReadPackedPrimitive()
[all …]
Dwire_format_lite.h253 template <typename CType, enum FieldType DeclaredType> INL
259 template <typename CType, enum FieldType DeclaredType> INL
267 template <typename CType, enum FieldType DeclaredType>
278 template <typename CType, enum FieldType DeclaredType> INL
284 template <typename CType, enum FieldType DeclaredType> INL
289 template <typename CType, enum FieldType DeclaredType>
524 template <typename CType, enum FieldType DeclaredType> GOOGLE_ATTRIBUTE_ALWAYS_INLINE
532 template <typename CType, enum FieldType DeclaredType> GOOGLE_ATTRIBUTE_ALWAYS_INLINE
Dmap_type_handler.h275 #define GOOGLE_PROTOBUF_BYTE_SIZE(FieldType, DeclaredType) \
279 return WireFormatLite::DeclaredType##Size(value); \
294 #define FIXED_BYTE_SIZE(FieldType, DeclaredType) \
298 return WireFormatLite::k##DeclaredType##Size; \
318 #define GET_CACHED_SIZE(FieldType, DeclaredType) \
323 return WireFormatLite::DeclaredType##Size(value); \
338 #define GET_FIXED_CACHED_SIZE(FieldType, DeclaredType) \
343 return WireFormatLite::k##DeclaredType##Size; \
370 #define WRITE_METHOD(FieldType, DeclaredType) \
375 return WireFormatLite::Write##DeclaredType(field, value, output); \
[all …]
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/
DTypeNames.java22 import javax.lang.model.type.DeclaredType;
69 public TypeName visitDeclared(DeclaredType t, Void p) { in forTypeMirror()
/external/dagger2/compiler/src/test/java/dagger/internal/codegen/writer/
DTypeNamesTest.java22 import javax.lang.model.type.DeclaredType;
56 DeclaredType setType = in forTypeMirror_parameterizedType()

12