Home
last modified time | relevance | path

Searched refs:elementUtils (Results 1 – 23 of 23) sorted by relevance

/external/auto/value/src/test/java/com/google/auto/value/processor/
DTypeVariablesTest.java43 private static Elements elementUtils; field in TypeVariablesTest
48 elementUtils = compilationRule.getElements(); in setUpClass()
60 TypeElement source1 = elementUtils.getTypeElement(Source1.class.getCanonicalName()); in noTypeParameters()
61 TypeElement target1 = elementUtils.getTypeElement(Target1.class.getCanonicalName()); in noTypeParameters()
64 TypeVariables.rewriteReturnTypes(elementUtils, typeUtils, sourceMethods, source1, target1); in noTypeParameters()
78 TypeElement source2 = elementUtils.getTypeElement(Source2.class.getCanonicalName()); in simpleTypeParameter()
79 TypeElement target2 = elementUtils.getTypeElement(Target2.class.getCanonicalName()); in simpleTypeParameter()
82 TypeVariables.rewriteReturnTypes(elementUtils, typeUtils, sourceMethods, source2, target2); in simpleTypeParameter()
102 TypeElement source3 = elementUtils.getTypeElement(Source3.class.getCanonicalName()); in hairyTypeParameters()
103 TypeElement target3 = elementUtils.getTypeElement(Target3.class.getCanonicalName()); in hairyTypeParameters()
[all …]
DTypeEncoderTest.java61 private Elements elementUtils; field in TypeEncoderTest
66 elementUtils = compilationRule.getElements(); in setUp()
91 fakeProgram, elementUtils, typeUtils, fakePackage, baseWithoutContainedTypes()); in assertTypeImportsAndSpellings()
298 TypeEncoder.decode(text, elementUtils, typeUtils, myPackage, baseWithoutContainedTypes()); in testSimplifyMultipleBounds()
326 encoded, elementUtils, typeUtils, myPackage, baseWithoutContainedTypes()); in testOuterParameterizedInnerNot()
348 encoded, elementUtils, typeUtils, myPackage, baseWithoutContainedTypes()); in testOuterParameterizedInnerAlso()
362 return elementUtils.getTypeElement(c.getCanonicalName()); in typeElementOf()
398 Elements elementUtils; field in TypeEncoderTest.ErrorTestProcessor
404 elementUtils = processingEnv.getElementUtils(); in process()
411 TypeElement extendsUndefinedType = elementUtils.getTypeElement("ExtendsUndefinedType"); in test()
[all …]
DTypeSimplifierTest.java52 private Elements elementUtils; field in TypeSimplifierTest
57 elementUtils = compilationRule.getElements(); in setUp()
262 return elementUtils.getTypeElement(c.getCanonicalName()); in typeElementOf()
DExtensionTest.java330 Elements elementUtils = context.processingEnvironment().getElementUtils(); in testCantConsumeNonExistentMethod() local
331 TypeElement javaLangInteger = elementUtils.getTypeElement(Integer.class.getName()); in testCantConsumeNonExistentMethod()
/external/desugar/java/com/google/devtools/common/options/processor/
DOptionProcessor.java78 private Elements elementUtils; field in OptionProcessor
92 elementUtils = processingEnv.getElementUtils(); in init()
113 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()
281 elementUtils in checkProvidedConverter()
292 elementUtils.getTypeElement(String.class.getCanonicalName()).asType())) in checkProvidedConverter()
328 optionType, elementUtils.getTypeElement(Void.class.getCanonicalName()).asType())) { in checkConverter()
336 ProcessorUtils.getAnnotation(elementUtils, typeUtils, optionField, Option.class); in checkConverter()
[all …]
DProcessorUtils.java33 Elements elementUtils, in getAnnotation() argument
38 TypeElement annotationElement = elementUtils.getTypeElement(annotation.getCanonicalName()); in getAnnotation()
74 Elements elementUtils, AnnotationMirror annotation, String fieldName) in getClassTypeFromAnnotationField() argument
77 elementUtils.getElementValuesWithDefaults(annotation).entrySet()) { in getClassTypeFromAnnotationField()
91 return elementUtils.getTypeElement(qualifiedName); in getClassTypeFromAnnotationField()
/external/auto/value/src/test/java/com/google/auto/value/extension/serializable/serializer/utils/
DCompilationAbstractTest.java49 protected Elements elementUtils; field in CompilationAbstractTest
54 elementUtils = compilationRule.getElements(); in setUp()
57 when(mockProcessingEnvironment.getElementUtils()).thenReturn(elementUtils); in setUp()
62 return elementUtils.getTypeElement(c.getCanonicalName()); in typeElementOf()
/external/auto/value/src/main/java/com/google/auto/value/processor/
DEclipseHack.java47 private final Elements elementUtils; field in EclipseHack
54 EclipseHack(Elements elementUtils, Types typeUtils) { in EclipseHack() argument
55 this.elementUtils = elementUtils; in EclipseHack()
178 ElementFilter.methodsIn(elementUtils.getAllMembers(autoValueType)); in noArgMethodsIn()
DTypeEncoder.java138 String text, Elements elementUtils, Types typeUtils, String pkg, TypeMirror baseType) { in decode() argument
139 TypeRewriter typeRewriter = new TypeRewriter(text, elementUtils, typeUtils, pkg, baseType); in decode()
399 private final Elements elementUtils; field in TypeEncoder.TypeRewriter
405 String text, Elements elementUtils, Types typeUtils, String pkg, TypeMirror baseType) { in TypeRewriter() argument
409 this.elementUtils = elementUtils; in TypeRewriter()
420 new TypeSimplifier(elementUtils, typeUtils, packageName, referencedClasses, baseType); in rewrite()
462 TypeElement typeElement = elementUtils.getTypeElement(className); in classForName()
DPropertyBuilderClassifier.java53 private final Elements elementUtils; field in PropertyBuilderClassifier
62 Elements elementUtils, in PropertyBuilderClassifier() argument
69 this.elementUtils = elementUtils; in PropertyBuilderClassifier()
356 for (ExecutableElement method : ElementFilter.methodsIn(elementUtils.getAllMembers(type))) { in noArgMethodsOf()
388 return MoreElements.getLocalAndInheritedMethods(barBuilderTypeElement, typeUtils, elementUtils) in addAllPutAll()
DTypeSimplifier.java88 Elements elementUtils, in TypeSimplifier() argument
99 this.imports = findImports(elementUtils, typeUtils, packageName, topLevelTypes, defined); in TypeSimplifier()
204 Elements elementUtils, in findImports() argument
226 spelling = javaLangSpelling(elementUtils, codePackageName, typeElement); in findImports()
249 Elements elementUtils, String codePackageName, TypeElement typeElement) { in javaLangSpelling() argument
253 elementUtils.getTypeElement(codePackageName + "." + topLevelType.getSimpleName()); in javaLangSpelling()
DAutoAnnotationProcessor.java102 private Elements elementUtils; field in AutoAnnotationProcessor
107 elementUtils = processingEnv.getElementUtils(); in process()
125 TypeElement autoAnnotation = elementUtils.getTypeElement(AUTO_ANNOTATION_NAME); in process()
189 return generatedAnnotation(elementUtils, processingEnv.getSourceVersion()) in getGeneratedTypeName()
408 elementUtils.getTypeElement(Collection.class.getCanonicalName()); in compatibleTypes()
420 TypeElement javaUtilCollection = elementUtils.getTypeElement(Collection.class.getName()); in wrapperTypesUsedInCollections()
436 return elementUtils.getTypeElement(c.getName()).asType(); in getTypeMirror()
DTypeVariables.java82 Elements elementUtils, in rewriteReturnTypes() argument
97 EclipseHack eclipseHack = new EclipseHack(elementUtils, typeUtils); in rewriteReturnTypes()
DBuilderMethodClassifier.java64 private final Elements elementUtils; field in BuilderMethodClassifier
91 this.elementUtils = processingEnv.getElementUtils(); in BuilderMethodClassifier()
287 elementUtils, in classifyMethodNoArgs()
DAutoValueOrOneOfProcessor.java124 final Elements elementUtils() { in elementUtils() method in AutoValueOrOneOfProcessor
277 annotationType = elementUtils().getTypeElement(annotationClassName); in process()
294 .map(name -> elementUtils().getTypeElement(name)) in process()
423 generatedAnnotation(elementUtils(), processingEnv.getSourceVersion()) in defineSharedVarsForType()
840 TypeMirror serializable = elementUtils().getTypeElement(Serializable.class.getName()).asType(); in getSerialVersionUID()
DAutoOneOfProcessor.java280 TypeElement javaIoSerializable = elementUtils().getTypeElement("java.io.Serializable"); in defineVarsForType()
/external/auto/common/src/main/java/com/google/auto/common/
DOverrides.java56 private final Elements elementUtils; field in Overrides.NativeOverrides
58 NativeOverrides(Elements elementUtils) { in NativeOverrides() argument
59 this.elementUtils = elementUtils; in NativeOverrides()
64 return elementUtils.overrides(overrider, overridden, in); in overrides()
DMoreElements.java309 TypeElement type, Elements elementUtils) {
310 Overrides overrides = new Overrides.NativeOverrides(elementUtils);
343 TypeElement type, Types typeUtils, Elements elementUtils) {
410 TypeElement type, Types typeUtils, Elements elementUtils) {
/external/auto/common/src/test/java/com/google/auto/common/
DOverridesTest.java93 test.elementUtils = test.compilation.getElements(); in initUtils()
100 test.elementUtils = test.ecjCompilation.elements; in initUtils()
109 private Elements elementUtils; field in OverridesTest
316 List<ExecutableElement> inMethods = methodsIn(elementUtils.getAllMembers(in)); in checkOverridesInSet()
339 return elementUtils.getTypeElement(c.getCanonicalName()); in getTypeElement()
612 if (elementUtils == javacElementUtils) { in javacMethod()
DMoreElementsTest.java358 Elements elementUtils = compilation.getElements(); in getLocalAndInheritedMethods_DaggerBug() local
359 TypeElement main = elementUtils.getTypeElement(Main.ParentComponent.class.getCanonicalName()); in getLocalAndInheritedMethods_DaggerBug()
361 main, compilation.getTypes(), elementUtils); in getLocalAndInheritedMethods_DaggerBug()
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/validator/
DImplementsValidator.java269 Elements elementUtils = env.getElementUtils(); in captureJavadoc() local
270 modelBuilder.documentType(elem, elementUtils.getDocComment(elem), imports); in captureJavadoc()
293 String docMd = elementUtils.getDocComment(methodElement); in captureJavadoc()
/external/dagger2/java/dagger/hilt/android/processor/internal/viewmodel/
DViewModelMetadata.kt50 val elements = processingEnv.elementUtils in <lambda>()
DViewModelModuleGenerator.kt67 .addGeneratedAnnotation(processingEnv.elementUtils, processingEnv.sourceVersion) in <lambda>()