/external/auto/value/src/test/java/com/google/auto/value/processor/ |
D | TypeVariablesTest.java | 43 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 …]
|
D | TypeEncoderTest.java | 61 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 …]
|
D | TypeSimplifierTest.java | 52 private Elements elementUtils; field in TypeSimplifierTest 57 elementUtils = compilationRule.getElements(); in setUp() 262 return elementUtils.getTypeElement(c.getCanonicalName()); in typeElementOf()
|
D | ExtensionTest.java | 330 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/ |
D | OptionProcessor.java | 78 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 …]
|
D | ProcessorUtils.java | 33 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/ |
D | CompilationAbstractTest.java | 49 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/ |
D | EclipseHack.java | 47 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()
|
D | TypeEncoder.java | 138 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()
|
D | PropertyBuilderClassifier.java | 53 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()
|
D | TypeSimplifier.java | 88 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()
|
D | AutoAnnotationProcessor.java | 102 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()
|
D | TypeVariables.java | 82 Elements elementUtils, in rewriteReturnTypes() argument 97 EclipseHack eclipseHack = new EclipseHack(elementUtils, typeUtils); in rewriteReturnTypes()
|
D | BuilderMethodClassifier.java | 64 private final Elements elementUtils; field in BuilderMethodClassifier 91 this.elementUtils = processingEnv.getElementUtils(); in BuilderMethodClassifier() 287 elementUtils, in classifyMethodNoArgs()
|
D | AutoValueOrOneOfProcessor.java | 124 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()
|
D | AutoOneOfProcessor.java | 280 TypeElement javaIoSerializable = elementUtils().getTypeElement("java.io.Serializable"); in defineVarsForType()
|
/external/auto/common/src/main/java/com/google/auto/common/ |
D | Overrides.java | 56 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()
|
D | MoreElements.java | 309 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/ |
D | OverridesTest.java | 93 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()
|
D | MoreElementsTest.java | 358 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/ |
D | ImplementsValidator.java | 269 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/ |
D | ViewModelMetadata.kt | 50 val elements = processingEnv.elementUtils in <lambda>()
|
D | ViewModelModuleGenerator.kt | 67 .addGeneratedAnnotation(processingEnv.elementUtils, processingEnv.sourceVersion) in <lambda>()
|