Home
last modified time | relevance | path

Searched refs:getTypeElement (Results 1 – 25 of 193) sorted by relevance

12345678

/external/auto/common/src/test/java/com/google/auto/common/
DMoreTypesTest.java68 TypeMirror objectType = elements.getTypeElement(Object.class.getCanonicalName()).asType(); in equivalence()
69 TypeMirror stringType = elements.getTypeElement(String.class.getCanonicalName()).asType(); in equivalence()
70 TypeElement mapElement = elements.getTypeElement(Map.class.getCanonicalName()); in equivalence()
71 TypeElement setElement = elements.getTypeElement(Set.class.getCanonicalName()); in equivalence()
72 TypeElement enumElement = elements.getTypeElement(Enum.class.getCanonicalName()); in equivalence()
73 TypeElement container = elements.getTypeElement(Container.class.getCanonicalName()); in equivalence()
74 TypeElement contained = elements.getTypeElement(Container.Contained.class.getCanonicalName()); in equivalence()
75 TypeElement funkyBounds = elements.getTypeElement(FunkyBounds.class.getCanonicalName()); in equivalence()
76 TypeElement funkyBounds2 = elements.getTypeElement(FunkyBounds2.class.getCanonicalName()); in equivalence()
77 TypeElement funkierBounds = elements.getTypeElement(FunkierBounds.class.getCanonicalName()); in equivalence()
[all …]
DSuperficialValidationTest.java53 processingEnv.getElementUtils().getTypeElement("test.TestClass"); in missingReturnType()
77 processingEnv.getElementUtils().getTypeElement("test.TestClass"); in missingGenericReturnType()
104 processingEnv.getElementUtils().getTypeElement("test.TestClass"); in missingReturnTypeTypeParameter()
126 processingEnv.getElementUtils().getTypeElement("test.TestClass"); in missingTypeParameter()
150 processingEnv.getElementUtils().getTypeElement("test.TestClass"); in missingParameterType()
173 processingEnv.getElementUtils().getTypeElement("test.TestClass"); in missingAnnotation()
195 processingEnv.getElementUtils().getTypeElement("test.TestClass"); in handlesRecursiveTypeParams()
219 processingEnv.getElementUtils().getTypeElement("test.TestClass"); in handlesRecursiveType()
251 processingEnv.getElementUtils().getTypeElement("test.TestClass"); in missingWildcardBound()
273 processingEnv.getElementUtils().getTypeElement("test.TestClass"); in missingIntersection()
[all …]
DSimpleAnnotationMirrorTest.java55 TypeElement emptyAnnotation = getTypeElement(EmptyAnnotation.class); in emptyAnnotation()
63 TypeElement multipleValues = getTypeElement(MultipleValues.class); in multipleValues()
72 TypeElement multipleValues = getTypeElement(MultipleValues.class); in extraValues()
82 TypeElement withDefaults = getTypeElement(AnnotationWithDefault.class); in defaultValue()
90 TypeElement withDefaults = getTypeElement(AnnotationWithDefault.class); in overriddenDefaultValue()
99 TypeElement multipleValues = getTypeElement(MultipleValues.class); in missingValues()
105 TypeElement stringElement = getTypeElement(String.class); in notAnAnnotation()
109 private TypeElement getTypeElement(Class<?> clazz) { in getTypeElement() method in SimpleAnnotationMirrorTest
110 return compilation.getElements().getTypeElement(clazz.getCanonicalName()); in getTypeElement()
DOverridesTest.java379 testTypesBuilder.add(getTypeElement(testClass)); in checkOverridesInSet()
414 private TypeElement getTypeElement(Class<?> c) { in getTypeElement() method in OverridesTest
415 return elementUtils.getTypeElement(c.getCanonicalName()); in getTypeElement()
473 TypeElement xAbstractList = getTypeElement(XAbstractList.class); in methodParameters_StringList()
474 TypeElement xStringList = getTypeElement(XStringList.class); in methodParameters_StringList()
475 TypeElement string = getTypeElement(String.class); in methodParameters_StringList()
487 TypeElement xCollection = getTypeElement(XCollection.class); in methodParameters_AbstractStringList()
488 TypeElement xAbstractStringList = getTypeElement(XAbstractStringList.class); in methodParameters_AbstractStringList()
489 TypeElement string = getTypeElement(String.class); in methodParameters_AbstractStringList()
503 TypeElement xCollection = getTypeElement(XCollection.class); in methodParams_NumberList()
[all …]
DMoreElementsTest.java71 this.objectElement = elements.getTypeElement(Object.class.getCanonicalName()); in initializeTestElements()
72 this.stringElement = elements.getTypeElement(String.class.getCanonicalName()); in initializeTestElements()
99 Element typeElement = elements.getTypeElement(String.class.getCanonicalName()); in asTypeElement()
106 TypeElement typeElement = elements.getTypeElement(String.class.getCanonicalName()); in asTypeElement_notATypeElement()
123 .getTypeElement(List.class.getCanonicalName()) in asTypeParameterElement()
198 elements.getTypeElement(AnnotatedAnnotation.class.getCanonicalName()); in isAnnotationPresent()
216 TypeElement documentedElement = elements.getTypeElement(documentedName); in isAnnotationPresent()
217 TypeElement innerAnnotationElement = elements.getTypeElement(innerAnnotationName); in isAnnotationPresent()
218 TypeElement suppressWarningsElement = elements.getTypeElement(suppressWarningsName); in isAnnotationPresent()
237 elements.getTypeElement(AnnotatedAnnotation.class.getCanonicalName()); in getAnnotationMirror()
[all …]
DVisibilityTest.java108 assertThat(Visibility.ofElement(compilation.getElements().getTypeElement("java.util.Map"))) in classVisibility()
111 Visibility.ofElement(compilation.getElements().getTypeElement("java.util.Map.Entry"))) in classVisibility()
115 compilation.getElements().getTypeElement(PublicClass.class.getCanonicalName()))) in classVisibility()
119 compilation.getElements().getTypeElement(ProtectedClass.class.getCanonicalName()))) in classVisibility()
123 compilation.getElements().getTypeElement(DefaultClass.class.getCanonicalName()))) in classVisibility()
127 compilation.getElements().getTypeElement(PrivateClass.class.getCanonicalName()))) in classVisibility()
168 compilation.getElements().getTypeElement(clazz.getCanonicalName())); in effectiveVisiblityOfClass()
DAnnotationValuesTest.java152 TypeElement annotatedClass = getTypeElement(AnnotatedClass.class); in setUp()
159 TypeElement insideClassA = getTypeElement(InsideClassA.class); in getTypeMirror()
166 TypeElement genericClass = getTypeElement(GenericClass.class); in getTypeMirrorGenericClass()
174 TypeMirror insideClassA = getTypeElement(InsideClassA.class).asType(); in getTypeMirrors()
175 TypeMirror insideClassB = getTypeElement(InsideClassB.class).asType(); in getTypeMirrors()
186 TypeElement insideAnnotation = getTypeElement(InsideAnnotation.class); in getAnnotationMirror()
197 TypeElement insideAnnotation = getTypeElement(InsideAnnotation.class); in getAnnotationMirrors()
409 private TypeElement getTypeElement(Class<?> clazz) { in getTypeElement() method in AnnotationValuesTest
410 return elements.getTypeElement(clazz.getCanonicalName()); in getTypeElement()
/external/turbine/javatests/com/google/turbine/processing/
DTurbineElementsTest.java209 public void getTypeElement() { in getTypeElement() method in TurbineElementsTest
211 assertThat(turbineElements.getTypeElement(name).getQualifiedName().toString()) in getTypeElement()
214 assertThat(turbineElements.getTypeElement("NoSuch")).isNull(); in getTypeElement()
215 assertThat(turbineElements.getTypeElement("java.lang.Object.NoSuch")).isNull(); in getTypeElement()
216 assertThat(turbineElements.getTypeElement("java.lang.NoSuch")).isNull(); in getTypeElement()
217 assertThat(turbineElements.getTypeElement("java.lang.Integer.MAX_VALUE")).isNull(); in getTypeElement()
226 assertThat(turbineElements.isDeprecated(turbineElements.getTypeElement("java.lang.Object"))) in isDeprecated()
228 assertThat(turbineElements.isDeprecated(turbineElements.getTypeElement("One"))).isFalse(); in isDeprecated()
229 assertThat(turbineElements.isDeprecated(turbineElements.getTypeElement("Test"))).isTrue(); in isDeprecated()
230 for (Element e : turbineElements.getTypeElement("java.lang.Object").getEnclosedElements()) { in isDeprecated()
[all …]
DTurbineTypesFactoryTest.java96 turbineTypes.erasure(turbineElements.getTypeElement("java.util.Map").asType())), in arrayType()
111 .getWildcardType(turbineElements.getTypeElement("java.lang.String").asType(), null) in wildcardType()
119 .getWildcardType(null, turbineElements.getTypeElement("java.lang.String").asType()) in wildcardType()
132 turbineElements.getTypeElement("java.util.Map"), in declaredType()
133 turbineElements.getTypeElement("java.lang.String").asType(), in declaredType()
134 turbineElements.getTypeElement("java.lang.Integer").asType()), in declaredType()
148 turbineTypes.getDeclaredType(turbineElements.getTypeElement("Test")), in declaredType()
149 turbineElements.getTypeElement("Test.I")), in declaredType()
/external/dagger2/javatests/dagger/internal/codegen/
DKeyFactoryTest.java83 compilationRule.getElements().getTypeElement(InjectedClass.class.getCanonicalName()); in forInjectConstructorWithResolvedType()
98 TypeMirror stringType = elements.getTypeElement(String.class.getCanonicalName()).asType(); in forProvidesMethod()
100 elements.getTypeElement(ProvidesMethodModule.class.getCanonicalName()); in forProvidesMethod()
116 TypeMirror stringType = elements.getTypeElement(String.class.getCanonicalName()).asType(); in forProvidesMethod_qualified()
118 elements.getTypeElement(TestQualifier.class.getCanonicalName()); in forProvidesMethod_qualified()
120 elements.getTypeElement(QualifiedProvidesMethodModule.class.getCanonicalName()); in forProvidesMethod_qualified()
141 elements.getTypeElement(QualifiedProvidesMethodModule.class.getCanonicalName()); in qualifiedKeyEquivalents()
146 TypeMirror type = elements.getTypeElement(String.class.getCanonicalName()).asType(); in qualifiedKeyEquivalents()
148 elements.getTypeElement(QualifiedFieldHolder.class.getCanonicalName()); in qualifiedKeyEquivalents()
204 TypeElement setElement = elements.getTypeElement(Set.class.getCanonicalName()); in forProvidesMethod_sets()
[all …]
DValidationReportTest.java54 ValidationReport.about(getTypeElement("test.TestClass")) in basicReport()
71 ValidationReport.about(getTypeElement("test.TestClass")) in messageOnDifferentElement()
72 .addError("simple error", getTypeElement(String.class)) in messageOnDifferentElement()
92 ValidationReport.about(getTypeElement(String.class)) in subreport()
94 ValidationReport.about(getTypeElement("test.TestClass")) in subreport()
123 protected final XTypeElement getTypeElement(Class<?> clazz) { in getTypeElement() method in ValidationReportTest.SimpleTestProcessor
124 return getTypeElement(clazz.getCanonicalName()); in getTypeElement()
127 protected final XTypeElement getTypeElement(String canonicalName) { in getTypeElement() method in ValidationReportTest.SimpleTestProcessor
/external/auto/value/src/test/java/com/google/auto/value/processor/
DTypeVariablesTest.java60 TypeElement source1 = elementUtils.getTypeElement(Source1.class.getCanonicalName()); in noTypeParameters()
61 TypeElement target1 = elementUtils.getTypeElement(Target1.class.getCanonicalName()); in noTypeParameters()
78 TypeElement source2 = elementUtils.getTypeElement(Source2.class.getCanonicalName()); in simpleTypeParameter()
79 TypeElement target2 = elementUtils.getTypeElement(Target2.class.getCanonicalName()); in simpleTypeParameter()
102 TypeElement source3 = elementUtils.getTypeElement(Source3.class.getCanonicalName()); in hairyTypeParameters()
103 TypeElement target3 = elementUtils.getTypeElement(Target3.class.getCanonicalName()); in hairyTypeParameters()
130 TypeElement outer = elementUtils.getTypeElement(Outer.class.getCanonicalName()); in nestedClasses()
131 TypeElement inner = elementUtils.getTypeElement(Outer.Inner.class.getCanonicalName()); in nestedClasses()
154 TypeElement immutableMap = elementUtils.getTypeElement(ImmutableMap.class.getCanonicalName()); in canAssignStaticMethodResult()
155 TypeElement string = elementUtils.getTypeElement(String.class.getCanonicalName()); in canAssignStaticMethodResult()
[all …]
/external/dagger2/java/dagger/hilt/processor/internal/root/
DComponentTreeDepsMetadata.java91 .map(it -> elements.getTypeElement(it.canonicalName())) in from()
94 .map(it -> elements.getTypeElement(it.canonicalName())) in from()
97 .map(it -> elements.getTypeElement(it.canonicalName())) in from()
100 .map(it -> elements.getTypeElement(it.canonicalName())) in from()
103 .map(it -> elements.getTypeElement(it.canonicalName())) in from()
106 .map(it -> elements.getTypeElement(it.canonicalName())) in from()
/external/parameter-framework/upstream/parameter/
DInstanceConfigurableElement.cpp59 const CTypeElement *CInstanceConfigurableElement::getTypeElement() const in getTypeElement() function in CInstanceConfigurableElement
69 return getTypeElement()->getMappingData(strKey, pStrValue); in getMappingData()
76 return getTypeElement()->getFormattedMapping(); in getFormattedMapping()
81 bool bHasMappingData = getTypeElement()->hasMappingData(); in map()
223 getTypeElement()->setXmlDescriptionAttribute(xmlElement); in structureToXml()
DParameter.cpp68 static_cast<const CParameterType *>(getTypeElement()) in handleValueSpaceAttribute()
80 return static_cast<const CParameterType *>(getTypeElement())->getSize(); in getSize()
88 static_cast<const CParameterType *>(getTypeElement())->getDefaultValue(); in setDefaultValues()
177 if (!static_cast<const CParameterType *>(getTypeElement()) in doSet()
203 return static_cast<const CParameterType *>(getTypeElement()) in doGet()
DBitParameter.cpp84 if (static_cast<const CBitParameterType *>(getTypeElement())->getBitSize() != 1) { in access()
153 if (!static_cast<const CBitParameterType *>(getTypeElement()) in doSet()
177 static_cast<const CBitParameterType *>(getTypeElement()) in doGet()
191 return static_cast<const CBitParameterType *>(getTypeElement())->merge(uiOriginData, uiNewData); in merge()
/external/auto/common/src/main/java/com/google/auto/common/
DGeneratedAnnotations.java39 TypeElement jdk9Generated = elements.getTypeElement("javax.annotation.processing.Generated"); in generatedAnnotation()
43 return Optional.ofNullable(elements.getTypeElement("javax.annotation.Generated")); in generatedAnnotation()
57 elements.getTypeElement( in generatedAnnotation()
/external/javapoet/src/test/java/com/squareup/javapoet/
DClassNameTest.java107 TypeElement object = elements.getTypeElement(Object.class.getCanonicalName()); in classNameFromTypeElement()
109 TypeElement outer = elements.getTypeElement($Outer.class.getCanonicalName()); in classNameFromTypeElement()
111 TypeElement inner = elements.getTypeElement($Outer.$Inner.class.getCanonicalName()); in classNameFromTypeElement()
121 TypeElement object = elements.getTypeElement(Object.class.getCanonicalName()); in classNameFromTypeElementDoesntUseGetKind()
124 TypeElement outer = elements.getTypeElement($Outer.class.getCanonicalName()); in classNameFromTypeElementDoesntUseGetKind()
127 TypeElement inner = elements.getTypeElement($Outer.$Inner.class.getCanonicalName()); in classNameFromTypeElementDoesntUseGetKind()
/external/dagger2/java/dagger/hilt/processor/internal/aggregateddeps/
DPkgPrivateModuleGenerator.java56 .addOriginatingElement(metadata.getTypeElement()) in generate()
57 .addAnnotation(Processors.getOriginatingElementAnnotation(metadata.getTypeElement())) in generate()
64 .addMember("includes", "$T.class", metadata.getTypeElement()) in generate()
DPkgPrivateMetadata.java57 .map(elements::getTypeElement) in publicDep()
65 return TypeName.get(getTypeElement().asType()); in baseClassName()
69 abstract TypeElement getTypeElement(); in getTypeElement() method in PkgPrivateMetadata
83 Processors.getEnclosedClassName(ClassName.get(getTypeElement())), PREFIX); in generatedClassName()
DAggregatedDepsMetadata.java134 return test.isEmpty() ? Optional.empty() : Optional.of(elements.getTypeElement(test)); in getTestElement()
153 .map(elements::getTypeElement) in getComponents()
189 return elements.getTypeElement( in getDependency()
206 .map(elements::getTypeElement) in getReplacedDependencies()
214 .map(metadata -> elements.getTypeElement(metadata.generatedClassName().toString())) in getPublicDependency()
/external/dagger2/java/dagger/internal/codegen/xprocessing/
DXTypes.java35 && !type.getTypeElement().getType().getTypeArguments().isEmpty(); in isRawParameterizedType()
45 return isDeclared(type) && type.getTypeElement().getClassName().equals(className); in isTypeOf()
55 return type.getTypeElement() != null; in isDeclared()
/external/desugar/java/com/google/devtools/common/options/processor/
DOptionProcessor.java113 TypeElement typeElement = elementUtils.getTypeElement(typeName); in init()
142 elementUtils.getTypeElement("com.google.devtools.common.options.OptionsBase").asType(); in checkInOptionBase()
176 TypeMirror listType = elementUtils.getTypeElement(List.class.getCanonicalName()).asType(); in getAcceptedConverterReturnTypes()
239 elementUtils.getTypeElement(converterInstance.getClass().getCanonicalName()); in checkForDefaultConverter()
292 elementUtils.getTypeElement(String.class.getCanonicalName()).asType())) in checkProvidedConverter()
328 optionType, elementUtils.getTypeElement(Void.class.getCanonicalName()).asType())) { in checkConverter()
338 elementUtils.getTypeElement(Converter.class.getCanonicalName()); in checkConverter()
464 elementUtils.getTypeElement(ExpansionFunction.class.getCanonicalName()); in checkExpansionOptions()
/external/dagger2/java/dagger/internal/codegen/validation/
DComponentValidator.java306 return Optional.ofNullable(returnType.getTypeElement()) in legalSubcomponentAnnotation()
327 referencedSubcomponents.put(returnType.getTypeElement(), method); in validateSubcomponentFactoryMethod()
330 ComponentKind.forAnnotatedElement(returnType.getTypeElement()) in validateSubcomponentFactoryMethod()
348 XTypeElement module = parameterType.getTypeElement(); in validateSubcomponentFactoryMethod()
362 module.getQualifiedName(), returnType.getTypeElement().getQualifiedName()), in validateSubcomponentFactoryMethod()
406 element = superclass.getTypeElement(); in includesFromSuperclasses()
415 referencedSubcomponents.put(returnType.getTypeElement().getEnclosingTypeElement(), method); in validateSubcomponentCreatorMethod()
421 XTypeElement creatorElement = returnType.getTypeElement(); in validateSubcomponentCreatorMethod()
505 } else if (type.getTypeElement().hasAnyAnnotation(moduleAnnotations())) { in validateComponentDependencies()
569 return Optional.ofNullable(type.getTypeElement()) in checkForAnnotations()
/external/dagger2/java/dagger/internal/codegen/binding/
DKeyFactory.java102 elements.getTypeElement(TypeNames.SET), boxPrimitives(elementType)); in setOf()
111 elements.getTypeElement(TypeNames.MAP), boxPrimitives(keyType), boxPrimitives(valueType)); in mapOf()
126 elements.getTypeElement(frameworkClassName), boxPrimitives(valueType))); in mapOfFrameworkType()
212 elements.getTypeElement(TypeNames.SET), in forBindingMethod()
340 return Key.builder(fromJava(elements.getTypeElement(TypeNames.EXECUTOR).asType())) in forProductionExecutor()
346 return Key.builder(fromJava(elements.getTypeElement(TypeNames.EXECUTOR).asType())) in forProductionImplementationExecutor()
353 fromJava(elements.getTypeElement(TypeNames.PRODUCTION_COMPONENT_MONITOR).asType())) in forProductionComponentMonitor()
421 FrameworkTypes.isFrameworkType(elements.getTypeElement(newWrappingClassName).asType())); in wrapMapValue()
441 TypeElement wrappingElement = elements.getTypeElement(newWrappingClassName); in rewrapMapKey()
470 TypeElement wrappingElement = elements.getTypeElement(wrappingClassName); in wrapMapKey()

12345678