/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/ |
D | RobolectricModel.java | 22 import javax.lang.model.element.TypeElement; 66 private final static ElementVisitor<TypeElement, Void> TYPE_ELEMENT_VISITOR = 67 new SimpleElementVisitor6<TypeElement, Void>() { 69 public TypeElement visitType(TypeElement e, Void p) { 84 private final Map<TypeElement, TypeElement> importMap = newHashMap(); 85 private final Map<TypeElement, String> referentMap = newHashMap(); 86 private HashMultimap<String, TypeElement> typeMap = HashMultimap.create(); 92 public void addShadowType(TypeElement shadowType, TypeElement actualType, in addShadowType() 93 TypeElement shadowPickerType) { in addShadowType() 94 TypeElement shadowBaseType = null; in addShadowType() [all …]
|
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/containers/ |
D | UserConnectorInfo.java | 31 import javax.lang.model.element.TypeElement; 42 abstract ImmutableCollection<TypeElement> parcelableWrapperClasses(); in parcelableWrapperClasses() 44 abstract ImmutableCollection<TypeElement> futureWrapperClasses(); in futureWrapperClasses() 46 abstract ImmutableCollection<TypeElement> importsClasses(); in importsClasses() 51 public abstract TypeElement connectorElement(); in connectorElement() 61 public abstract ImmutableCollection<TypeElement> parcelableWrapperClasses(); in parcelableWrapperClasses() 63 public abstract ImmutableCollection<TypeElement> futureWrapperClasses(); in futureWrapperClasses() 65 public abstract ImmutableCollection<TypeElement> importsClasses(); in importsClasses() 71 TypeElement connectorElement, in create() 77 Set<TypeElement> parcelableWrappers = new HashSet<>(annotationInfo.parcelableWrapperClasses()); in create() [all …]
|
D | ProfileConnectorInfo.java | 32 import javax.lang.model.element.TypeElement; 45 abstract ImmutableCollection<TypeElement> parcelableWrapperClasses(); in parcelableWrapperClasses() 47 abstract ImmutableCollection<TypeElement> futureWrapperClasses(); in futureWrapperClasses() 49 abstract ImmutableCollection<TypeElement> importsClasses(); in importsClasses() 54 public abstract TypeElement connectorElement(); in connectorElement() 66 public abstract ImmutableCollection<TypeElement> parcelableWrapperClasses(); in parcelableWrapperClasses() 68 public abstract ImmutableCollection<TypeElement> futureWrapperClasses(); in futureWrapperClasses() 70 public abstract ImmutableCollection<TypeElement> importsClasses(); in importsClasses() 76 TypeElement connectorElement, in create() 84 Set<TypeElement> parcelableWrappers = new HashSet<>(annotationInfo.parcelableWrapperClasses()); in create() [all …]
|
D | CrossProfileConfigurationAnnotationInfo.java | 21 import javax.lang.model.element.TypeElement; 29 public abstract ImmutableCollection<TypeElement> providerClasses(); in providerClasses() 31 public abstract TypeElement serviceSuperclass(); in serviceSuperclass() 33 public abstract TypeElement serviceClass(); in serviceClass() 35 public abstract TypeElement connector(); in connector() 44 public abstract Builder setProviderClasses(ImmutableCollection<TypeElement> value); in setProviderClasses() 46 public abstract Builder setServiceSuperclass(TypeElement value); in setServiceSuperclass() 48 public abstract Builder setServiceClass(TypeElement value); in setServiceClass() 50 public abstract Builder setConnector(TypeElement value); in setConnector()
|
D | ValidatorCrossProfileConfigurationInfo.java | 29 import javax.lang.model.element.TypeElement; 35 public abstract TypeElement configurationElement(); in configurationElement() 37 public abstract ImmutableCollection<TypeElement> providerClassElements(); in providerClassElements() 41 public abstract Optional<TypeElement> serviceClass(); in serviceClass() 43 public abstract Optional<TypeElement> connector(); in connector() 46 ProcessingEnvironment processingEnvironment, TypeElement annotatedElement) { in createMultipleFromElement() 68 ProcessingEnvironment processingEnv, TypeElement annotatedElement) { in createFromElement() 76 CrossProfileConfigurationAnnotationInfo annotationInfo, TypeElement annotatedElement) { in createFromAnnotationInfo() 82 TypeElement serviceClass = in createFromAnnotationInfo() 85 Optional<TypeElement> connector = in createFromAnnotationInfo() [all …]
|
D | ValidatorContext.java | 24 import javax.lang.model.element.TypeElement; 47 public abstract ImmutableSet<TypeElement> newGeneratedProfileConnectors(); in newGeneratedProfileConnectors() 49 public abstract ImmutableSet<TypeElement> newGeneratedUserConnectors(); in newGeneratedUserConnectors() 61 public abstract ImmutableSet<TypeElement> newCrossProfileCallbackInterfaces(); in newCrossProfileCallbackInterfaces() 65 public abstract ImmutableSet<TypeElement> newCustomParcelableWrappers(); in newCustomParcelableWrappers() 67 public abstract ImmutableSet<TypeElement> newCustomFutureWrappers(); in newCustomFutureWrappers() 87 Collection<TypeElement> newGeneratedConnectors); in setNewGeneratedProfileConnectors() 90 Collection<TypeElement> newGeneratedUserConnectors); in setNewGeneratedUserConnectors() 107 Collection<TypeElement> newCrossProfileCallbackInterfaces); in setNewCrossProfileCallbackInterfaces() 113 Collection<TypeElement> newCustomParcelableWrappers); in setNewCustomParcelableWrappers() [all …]
|
D | CrossProfileAnnotationInfo.java | 22 import javax.lang.model.element.TypeElement; 31 public abstract TypeElement connectorClass(); in connectorClass() 37 public abstract ImmutableCollection<TypeElement> parcelableWrapperClasses(); in parcelableWrapperClasses() 39 public abstract ImmutableCollection<TypeElement> futureWrapperClasses(); in futureWrapperClasses() 58 public abstract Builder setConnectorClass(TypeElement value); in setConnectorClass() 64 public abstract Builder setParcelableWrapperClasses(ImmutableCollection<TypeElement> value); in setParcelableWrapperClasses() 66 public abstract Builder setFutureWrapperClasses(ImmutableCollection<TypeElement> value); in setFutureWrapperClasses()
|
/external/dagger2/java/dagger/internal/codegen/validation/ |
D | ModuleValidator.java | 90 import javax.lang.model.element.TypeElement; 130 private final Map<TypeElement, ValidationReport<TypeElement>> cache = new HashMap<>(); 131 private final Set<TypeElement> knownModules = new HashSet<>(); 163 public void addKnownModules(Collection<TypeElement> modules) { in addKnownModules() 168 public ValidationReport<TypeElement> validate(TypeElement module) { in validate() 172 private ValidationReport<TypeElement> validate( in validate() 173 TypeElement module, Set<TypeElement> visitedModules) { in validate() 180 private ValidationReport<TypeElement> validateUncached( in validateUncached() 181 TypeElement module, Set<TypeElement> visitedModules) { in validateUncached() 182 ValidationReport.Builder<TypeElement> builder = ValidationReport.about(module); in validateUncached() [all …]
|
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/ |
D | Processor.java | 57 import javax.lang.model.element.TypeElement; 93 public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { in process() 108 Collection<TypeElement> newGeneratedConnectors = findNewGeneratedConnectors(roundEnv); in process() 109 Collection<TypeElement> newGeneratedUserConnectors = findNewGeneratedUserConnectors(roundEnv); in process() 119 Collection<TypeElement> newCrossProfileCallbackInterfaces = in process() 131 Collection<TypeElement> newCustomParcelableWrappers = findNewParcelableWrappers(roundEnv); in process() 132 Collection<TypeElement> newCustomFutureWrappers = findNewFutureWrappers(roundEnv); in process() 199 processingEnv, (TypeElement) element)) in findNewConfigurations() 206 processingEnv, (TypeElement) element)) in findNewConfigurations() 231 .filter(m -> m instanceof TypeElement) in findNewProviderClasses() [all …]
|
/external/dagger2/java/dagger/internal/codegen/writing/ |
D | AnnotationCreatorGenerator.java | 50 import javax.lang.model.element.TypeElement; 81 public class AnnotationCreatorGenerator extends SourceFileGenerator<TypeElement> { 91 public ClassName nameGeneratedType(TypeElement annotationType) { in nameGeneratedType() 96 public Element originatingElement(TypeElement annotationType) { in originatingElement() 101 public Optional<TypeSpec.Builder> write(TypeElement annotationType) { in write() 108 for (TypeElement annotationElement : annotationsToCreate(annotationType)) { in write() 115 private MethodSpec buildCreateMethod(ClassName generatedTypeName, TypeElement annotationElement) { in buildCreateMethod() 143 protected Set<TypeElement> annotationsToCreate(TypeElement annotationElement) { in annotationsToCreate() 148 private static Set<TypeElement> nestedAnnotationElements( in nestedAnnotationElements() 149 TypeElement annotationElement, Set<TypeElement> annotationElements) { in nestedAnnotationElements() [all …]
|
/external/dagger2/java/dagger/internal/codegen/binding/ |
D | ConfigurationAnnotations.java | 47 import javax.lang.model.element.TypeElement; 58 public static Optional<TypeElement> getSubcomponentCreator(TypeElement subcomponent) { in getSubcomponentCreator() 60 for (TypeElement nestedType : typesIn(subcomponent.getEnclosedElements())) { in getSubcomponentCreator() 97 public static ImmutableSet<TypeElement> getTransitiveModules( in getTransitiveModules() 98 DaggerTypes types, DaggerElements elements, Iterable<TypeElement> seedModules) { in getTransitiveModules() 100 Queue<TypeElement> moduleQueue = new ArrayDeque<>(); in getTransitiveModules() 102 Set<TypeElement> moduleElements = Sets.newLinkedHashSet(); in getTransitiveModules() 103 for (TypeElement moduleElement : consumingIterable(moduleQueue)) { in getTransitiveModules() 107 ImmutableSet.Builder<TypeElement> moduleDependenciesBuilder = in getTransitiveModules() 115 ImmutableSet<TypeElement> moduleDependencies = moduleDependenciesBuilder.build(); in getTransitiveModules() [all …]
|
D | ModuleDescriptor.java | 62 import javax.lang.model.element.TypeElement; 69 public abstract TypeElement moduleElement(); in moduleElement() 71 abstract ImmutableSet<TypeElement> includedModules(); in includedModules() 117 private final Map<TypeElement, ModuleDescriptor> cache = new HashMap<>(); 137 public ModuleDescriptor create(TypeElement moduleElement) { in create() 141 public ModuleDescriptor createUncached(TypeElement moduleElement) { in createUncached() 185 TypeElement moduleElement, ImmutableSet.Builder<ContributionBinding> bindings) { in collectCompanionModuleBindings() 187 TypeElement companionModule = metadataUtil.getEnclosedCompanionObject(moduleElement); in collectCompanionModuleBindings() 213 ImmutableSet<ModuleDescriptor> transitiveModules(Iterable<TypeElement> modules) { in transitiveModules() 221 private Set<TypeElement> collectIncludedModules( in collectIncludedModules() [all …]
|
/external/dagger2/java/dagger/model/ |
D | ComponentPath.java | 26 import javax.lang.model.element.TypeElement; 32 public static ComponentPath create(Iterable<TypeElement> components) { in create() 40 public abstract ImmutableList<TypeElement> components(); in components() 46 public final TypeElement rootComponent() { in rootComponent() 52 public TypeElement currentComponent() { in currentComponent() 61 public final TypeElement parentComponent() { in parentComponent() 78 public final ComponentPath childPath(TypeElement child) { in childPath() 79 return create(ImmutableList.<TypeElement>builder().addAll(components()).add(child).build()); in childPath() 92 return components().stream().map(TypeElement::getQualifiedName).collect(joining(" → ")); in toString()
|
/external/auto/common/src/main/java/com/google/auto/common/ |
D | Overrides.java | 28 import javax.lang.model.element.TypeElement; 53 ExecutableElement overrider, ExecutableElement overridden, TypeElement in); in overrides() 63 boolean overrides(ExecutableElement overrider, ExecutableElement overridden, TypeElement in) { in overrides() 77 ExecutableElement overrider, ExecutableElement overridden, TypeElement in) { in overrides() 117 TypeElement overriddenType; in overrides() 118 if (!(overridden.getEnclosingElement() instanceof TypeElement)) { in overrides() 176 ExecutableElement overrider, ExecutableElement overridden, TypeElement in) { in isSubsignature() 218 ImmutableList<TypeMirror> erasedParameterTypes(ExecutableElement method, TypeElement in) { in erasedParameterTypes() 244 ImmutableList<TypeMirror> erasedParameterTypes(ExecutableElement method, TypeElement in) { in erasedParameterTypes() 261 TypeElement element = MoreElements.asType(declared.asElement()); in erasedParameterTypes() [all …]
|
D | BasicAnnotationProcessor.java | 55 import javax.lang.model.element.TypeElement; 161 private ImmutableSet<TypeElement> getSupportedAnnotationTypeElements() { in getSupportedAnnotationTypeElements() 168 private ImmutableSet<TypeElement> getSupportedAnnotationTypeElements(Step step) { in getSupportedAnnotationTypeElements() 188 public final boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { in process() 216 private void process(ImmutableSetMultimap<TypeElement, Element> validElements) { in process() argument 218 ImmutableSet<TypeElement> annotationTypes = getSupportedAnnotationTypeElements(step); in process() 219 ImmutableSetMultimap<TypeElement, Element> stepElements = in process() 220 new ImmutableSetMultimap.Builder<TypeElement, Element>() in process() 262 private ImmutableSetMultimap<TypeElement, Element> validElements(RoundEnvironment roundEnv) { in validElements() 266 ImmutableSetMultimap.Builder<TypeElement, Element> deferredElementsByAnnotationBuilder = in validElements() [all …]
|
/external/auto/common/src/test/java/com/google/auto/common/ |
D | SuperficialValidationTest.java | 28 import javax.lang.model.element.TypeElement; 49 TypeElement testClassElement = in missingReturnType() 70 TypeElement testClassElement = in missingGenericReturnType() 94 TypeElement testClassElement = in missingReturnTypeTypeParameter() 113 TypeElement testClassElement = in missingTypeParameter() 134 TypeElement testClassElement = in missingParameterType() 154 TypeElement testClassElement = in missingAnnotation() 173 TypeElement testClassElement = in handlesRecursiveTypeParams() 194 TypeElement testClassElement = in handlesRecursiveType() 223 TypeElement testClassElement = in missingWildcardBound() [all …]
|
D | OverridesTest.java | 44 import javax.lang.model.element.TypeElement; 197 abstract Optional<TypeElement> contributingModule(); in contributingModule() 304 ImmutableSet.Builder<TypeElement> testTypesBuilder = ImmutableSet.builder(); in checkOverridesInSet() 308 ImmutableSet<TypeElement> testTypes = testTypesBuilder.build(); in checkOverridesInSet() 310 for (TypeElement testType : testTypes) { in checkOverridesInSet() 314 for (TypeElement in : testTypes) { in checkOverridesInSet() 315 TypeElement javacIn = javacType(in); in checkOverridesInSet() 338 private TypeElement getTypeElement(Class<?> c) { in getTypeElement() 342 private ExecutableElement getMethod(TypeElement in, String name, TypeKind... parameterTypeKinds) { in getMethod() 397 TypeElement xAbstractList = getTypeElement(XAbstractList.class); in methodParameters_StringList() [all …]
|
D | SimpleAnnotationMirrorTest.java | 30 import javax.lang.model.element.TypeElement; 54 TypeElement emptyAnnotation = getTypeElement(EmptyAnnotation.class); in emptyAnnotation() 62 TypeElement multipleValues = getTypeElement(MultipleValues.class); in multipleValues() 71 TypeElement multipleValues = getTypeElement(MultipleValues.class); in extraValues() 81 TypeElement withDefaults = getTypeElement(AnnotationWithDefault.class); in defaultValue() 89 TypeElement withDefaults = getTypeElement(AnnotationWithDefault.class); in overriddenDefaultValue() 98 TypeElement multipleValues = getTypeElement(MultipleValues.class); in missingValues() 104 TypeElement stringElement = getTypeElement(String.class); in notAnAnnotation() 108 private TypeElement getTypeElement(Class<?> clazz) { in getTypeElement()
|
/external/dagger2/java/dagger/hilt/processor/internal/aggregateddeps/ |
D | ComponentDependencies.java | 49 import javax.lang.model.element.TypeElement; 112 abstract ImmutableSetMultimap<ClassName, TypeElement> globalDeps(); in globalDeps() 115 abstract ImmutableSetMultimap<ClassName, TypeElement> globalTestDeps(); in globalTestDeps() 118 abstract ImmutableSetMultimap<TestDepKey, TypeElement> testDeps(); in testDeps() 121 abstract ImmutableSetMultimap<ClassName, TypeElement> uninstalledTestDeps(); in uninstalledTestDeps() 124 abstract ImmutableSet<TypeElement> globalUninstalledTestDeps(); in globalUninstalledTestDeps() 127 public ImmutableSet<TypeElement> get(ClassName component, ClassName root, boolean isTestRoot) { in get() 132 ImmutableSet<TypeElement> uninstalledTestDepsForRoot = uninstalledTestDeps().get(root); in get() 133 return ImmutableSet.<TypeElement>builder() in get() 146 abstract ImmutableSetMultimap.Builder<ClassName, TypeElement> globalDepsBuilder(); in globalDepsBuilder() [all …]
|
/external/auto/factory/src/main/java/com/google/auto/factory/processor/ |
D | AnnotationValues.java | 22 import javax.lang.model.element.TypeElement; 45 static TypeElement asType(AnnotationValue value) { 47 new SimpleAnnotationValueVisitor6<TypeElement, Void>() { 48 @Override protected TypeElement defaultAction(Object o, Void p) { 52 @Override public TypeElement visitType(TypeMirror t, Void p) { 54 new SimpleTypeVisitor6<TypeElement, Void>() { 56 protected TypeElement defaultAction(TypeMirror e, Void p) { 61 public TypeElement visitDeclared(DeclaredType t, Void p) {
|
/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/ |
D | AndroidEntryPointMetadata.java | 50 import javax.lang.model.element.TypeElement; 59 public abstract TypeElement element(); in element() 62 public abstract TypeElement baseElement(); in baseElement() 160 private static ClassName generatedClassName(TypeElement element) { in generatedClassName() 189 TypeElement element, in manuallyConstruct() 190 TypeElement baseElement, in manuallyConstruct() 232 TypeElement androidEntryPointElement = MoreElements.asType(element); in of() 240 final TypeElement androidEntryPointClassValue = in of() 245 final TypeElement baseElement; in of() 325 TypeElement element, in baseMetadata() [all …]
|
/external/dagger2/java/dagger/hilt/processor/internal/root/ |
D | TestComponentDataGenerator.java | 41 import javax.lang.model.element.TypeElement; 100 TypeElement testElement = rootMetadata.testRootMetadata().testElement(); in getMethod() 104 ImmutableSet<TypeElement> daggerRequiredModules = in getMethod() 106 ImmutableSet<TypeElement> hiltRequiredModules = in getMethod() 148 private static String getAddModuleStatement(TypeElement module, TypeElement testElement) { in getAddModuleStatement() 169 private static boolean canBeConstructedByHilt(TypeElement module, TypeElement testElement) { in canBeConstructedByHilt() 174 private static boolean hasOnlyAccessibleNoArgConstructor(TypeElement module) { in hasOnlyAccessibleNoArgConstructor() 183 private static CodeBlock getElementsListed(ImmutableSet<TypeElement> modules) { in getElementsListed() 196 TypeElement testElement = rootMetadata.testRootMetadata().testElement(); in getTestInjectInternalMethod() 209 private static CodeBlock getInjector(TypeElement testElement) { in getInjector()
|
/external/dagger2/java/dagger/hilt/processor/internal/ |
D | BaseProcessor.java | 36 import javax.lang.model.element.TypeElement; 62 private static ProcessingState of(TypeElement annotation, Element element) { in of() 83 TypeElement annotation(Elements elements) { in annotation() 88 TypeElement element(Elements elements) { in element() 110 protected void processEach(TypeElement annotation, Element element) throws Exception {}; in processEach() 155 public final boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { in process() 161 SetMultimap<TypeElement, Element> elementMultiMap = LinkedHashMultimap.create(); in process() 165 for (TypeElement annotation : annotations) { in process() 172 for (Map.Entry<TypeElement, Collection<Element>> entry : elementMultiMap.asMap().entrySet()) { in process() 173 TypeElement annotation = entry.getKey(); in process()
|
/external/auto/value/src/main/java/com/google/auto/value/processor/ |
D | TypeSimplifier.java | 34 import javax.lang.model.element.TypeElement; 120 TypeElement typeElement = MoreElements.asType(type.asElement()); in simplifiedClassName() 121 TypeElement top = topLevelType(typeElement); in simplifiedClassName() 138 static String actualTypeParametersString(TypeElement type) { in actualTypeParametersString() 151 static String classNameOf(TypeElement type) { in classNameOf() 157 private static TypeElement topLevelType(TypeElement type) { in topLevelType() 168 static String packageNameOf(TypeElement type) { in packageNameOf() 215 TypeElement typeElement = (TypeElement) typeUtils.asElement(type); in findImports() 249 Elements elementUtils, String codePackageName, TypeElement typeElement) { in javaLangSpelling() 251 TypeElement topLevelType = topLevelType(typeElement); in javaLangSpelling() [all …]
|
/external/auto/value/src/test/java/com/google/auto/value/processor/ |
D | TypeVariablesTest.java | 26 import javax.lang.model.element.TypeElement; 60 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() 128 TypeElement outer = elementUtils.getTypeElement(Outer.class.getCanonicalName()); in nestedClasses() 129 TypeElement inner = elementUtils.getTypeElement(Outer.Inner.class.getCanonicalName()); in nestedClasses() 152 TypeElement immutableMap = elementUtils.getTypeElement(ImmutableMap.class.getCanonicalName()); in canAssignStaticMethodResult() [all …]
|