/external/auto/value/src/test/java/com/google/auto/value/processor/ |
D | TypeVariablesTest.java | 25 import javax.lang.model.element.ExecutableElement; 62 List<ExecutableElement> sourceMethods = ElementFilter.methodsIn(source1.getEnclosedElements()); in noTypeParameters() 63 Map<ExecutableElement, TypeMirror> types = in noTypeParameters() 80 List<ExecutableElement> sourceMethods = ElementFilter.methodsIn(source2.getEnclosedElements()); in simpleTypeParameter() 81 Map<ExecutableElement, TypeMirror> types = in simpleTypeParameter() 83 List<ExecutableElement> targetMethods = ElementFilter.methodsIn(target2.getEnclosedElements()); in simpleTypeParameter() 85 ExecutableElement getFoo = sourceMethods.get(0); in simpleTypeParameter() 104 List<ExecutableElement> sourceMethods = ElementFilter.methodsIn(source3.getEnclosedElements()); in hairyTypeParameters() 105 Map<ExecutableElement, TypeMirror> types = in hairyTypeParameters() 107 List<ExecutableElement> targetMethods = ElementFilter.methodsIn(target3.getEnclosedElements()); in hairyTypeParameters() [all …]
|
D | ExtensionTest.java | 49 import javax.lang.model.element.ExecutableElement; 292 public Set<ExecutableElement> consumeMethods(Context context) { in testCantConsumeConcreteMethod() 294 for (ExecutableElement method : in testCantConsumeConcreteMethod() 328 public Set<ExecutableElement> consumeMethods(Context context) { in testCantConsumeNonExistentMethod() 332 for (ExecutableElement method : in testCantConsumeNonExistentMethod() 741 for (Map.Entry<String, ExecutableElement> el : context.properties().entrySet()) { in generateClass() 754 for (Map.Entry<String, ExecutableElement> el : context.properties().entrySet()) { in generateClass() 881 private ExecutableElement writeToParcelMethod(Context context) { in writeToParcelMethod() 882 for (ExecutableElement method : context.abstractMethods()) { in writeToParcelMethod() 891 public Set<ExecutableElement> consumeMethods(Context context) { in consumeMethods() [all …]
|
/external/auto/common/src/main/java/com/google/auto/common/ |
D | MoreElements.java | 37 import javax.lang.model.element.ExecutableElement; 188 extends CastingElementVisitor<ExecutableElement> { 196 public ExecutableElement visitExecutable(ExecutableElement e, Void label) { in visitExecutable() 210 public static ExecutableElement asExecutable(Element element) { in asExecutable() 308 public static ImmutableSet<ExecutableElement> getLocalAndInheritedMethods( 342 public static ImmutableSet<ExecutableElement> getLocalAndInheritedMethods( 347 private static ImmutableSet<ExecutableElement> getLocalAndInheritedMethods( 351 ImmutableSet.Builder<ExecutableElement> methods = ImmutableSet.builder(); 352 for (ExecutableElement method : getAllMethods(type, overrides)) { 374 ExecutableElement overrider, [all …]
|
D | Overrides.java | 26 import javax.lang.model.element.ExecutableElement; 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() 143 ExecutableElement inherited = methodFromSuperclasses(in, overridden); in overrides() 159 ExecutableElement inherited = methodFromSuperinterfaces(in, overridden); 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() 318 ExecutableElement methodFromSuperclasses(TypeElement in, ExecutableElement method) { in methodFromSuperclasses() [all …]
|
/external/auto/value/src/main/java/com/google/auto/value/processor/ |
D | PropertyBuilderClassifier.java | 30 import javax.lang.model.element.ExecutableElement; 55 private final ImmutableBiMap<ExecutableElement, String> getterToPropertyName; 56 private final ImmutableMap<ExecutableElement, TypeMirror> getterToPropertyType; 64 ImmutableBiMap<ExecutableElement, String> getterToPropertyName, in PropertyBuilderClassifier() argument 65 ImmutableMap<ExecutableElement, TypeMirror> getterToPropertyType, in PropertyBuilderClassifier() argument 83 private final ExecutableElement propertyBuilderMethod; 94 ExecutableElement propertyBuilderMethod, in PropertyBuilder() 114 public ExecutableElement getPropertyBuilderMethod() { in getPropertyBuilderMethod() 196 Optional<PropertyBuilder> makePropertyBuilder(ExecutableElement method, String property) { in makePropertyBuilder() 207 Map<String, ExecutableElement> barBuilderNoArgMethods = noArgMethodsOf(barBuilderTypeElement); in makePropertyBuilder() [all …]
|
D | BuilderMethodClassifier.java | 42 import javax.lang.model.element.ExecutableElement; 67 private final ImmutableBiMap<ExecutableElement, String> getterToPropertyName; 68 private final ImmutableMap<ExecutableElement, TypeMirror> getterToPropertyType; 69 private final ImmutableMap<String, ExecutableElement> getterNameToGetter; 71 private final Set<ExecutableElement> buildMethods = new LinkedHashSet<>(); 87 ImmutableBiMap<ExecutableElement, String> getterToPropertyName, in BuilderMethodClassifier() argument 88 ImmutableMap<ExecutableElement, TypeMirror> getterToPropertyType) { in BuilderMethodClassifier() argument 96 ImmutableMap.Builder<String, ExecutableElement> getterToPropertyNameBuilder = in BuilderMethodClassifier() 98 for (ExecutableElement getter : getterToPropertyName.keySet()) { in BuilderMethodClassifier() 123 Iterable<ExecutableElement> methods, in classify() [all …]
|
D | AutoValueProcessor.java | 50 import javax.lang.model.element.ExecutableElement; 210 ImmutableSet<ExecutableElement> methods = in processType() 213 ImmutableSet<ExecutableElement> abstractMethods = abstractMethodsIn(methods); in processType() 217 ImmutableSet<ExecutableElement> toBuilderMethods; in processType() 224 ImmutableMap<ExecutableElement, TypeMirror> propertyMethodsAndTypes = in processType() 226 ImmutableMap<String, ExecutableElement> properties = in processType() 232 ImmutableSet<ExecutableElement> consumedMethods = in processType() 237 ImmutableSet<ExecutableElement> allAbstractMethods = abstractMethods; in processType() 247 ImmutableSet<ExecutableElement> propertyMethods = propertyMethodsAndTypes.keySet(); in processType() 347 private ImmutableSet<ExecutableElement> methodsConsumedByExtensions( in methodsConsumedByExtensions() [all …]
|
D | BuilderSpec.java | 46 import javax.lang.model.element.ExecutableElement; 118 private ImmutableSet<ExecutableElement> toBuilderMethods; 119 private ExecutableElement buildMethod; 132 public Set<ExecutableElement> builderMethods() { in builderMethods() 144 public Optional<ExecutableElement> buildMethod() { in buildMethod() 157 public ExecutableElement autoBuildMethod() { in autoBuildMethod() 162 public Map<String, Set<ExecutableElement>> setters() { in setters() 170 public Map<String, ExecutableElement> propertyBuilders() { in propertyBuilders() 181 public Set<ExecutableElement> toBuilderMethods() { in toBuilderMethods() 203 ImmutableSet<ExecutableElement> toBuilderMethods( in toBuilderMethods() [all …]
|
D | AutoOneOfProcessor.java | 44 import javax.lang.model.element.ExecutableElement; 95 ImmutableSet<ExecutableElement> methods = in processType() 98 ImmutableSet<ExecutableElement> abstractMethods = abstractMethodsIn(methods); in processType() 99 ExecutableElement kindGetter = in processType() 101 Set<ExecutableElement> otherMethods = new LinkedHashSet<>(abstractMethods); in processType() 104 ImmutableMap<ExecutableElement, TypeMirror> propertyMethodsAndTypes = in processType() 106 ImmutableBiMap<String, ExecutableElement> properties = in processType() 213 private ExecutableElement findKindGetterOrAbort( in findKindGetterOrAbort() 216 ImmutableSet<ExecutableElement> abstractMethods) { in findKindGetterOrAbort() 217 Set<ExecutableElement> kindGetters = in findKindGetterOrAbort() [all …]
|
D | AutoValueOrOneOfProcessor.java | 67 import javax.lang.model.element.ExecutableElement; 152 private final ExecutableElement method; 162 ExecutableElement method, in Property() 360 abstract Optional<String> nullableAnnotationForMethod(ExecutableElement propertyMethod); in nullableAnnotationForMethod() 373 ImmutableMap<ExecutableElement, TypeMirror> propertyMethodsAndTypes, in propertySet() argument 374 ImmutableListMultimap<ExecutableElement, AnnotationMirror> annotatedPropertyFields, in propertySet() argument 375 ImmutableListMultimap<ExecutableElement, AnnotationMirror> annotatedPropertyMethods) { in propertySet() 376 ImmutableBiMap<ExecutableElement, String> methodToPropertyName = in propertySet() 378 Map<ExecutableElement, String> methodToIdentifier = new LinkedHashMap<>(methodToPropertyName); in propertySet() 417 ImmutableSet<ExecutableElement> methods, in defineSharedVarsForType() [all …]
|
D | EclipseHack.java | 30 import javax.lang.model.element.ExecutableElement; 122 TypeMirror methodReturnType(ExecutableElement method, DeclaredType in) { in methodReturnType() 144 ImmutableMap<ExecutableElement, TypeMirror> methodReturnTypes( in methodReturnTypes() 145 Set<ExecutableElement> methods, DeclaredType in) { in methodReturnTypes() 146 ImmutableMap.Builder<ExecutableElement, TypeMirror> map = ImmutableMap.builder(); in methodReturnTypes() 147 Map<Name, ExecutableElement> noArgMethods = null; in methodReturnTypes() 148 for (ExecutableElement method : methods) { in methodReturnTypes() 175 private Map<Name, ExecutableElement> noArgMethodsIn(DeclaredType in) { in noArgMethodsIn() 177 List<ExecutableElement> allMethods = in noArgMethodsIn() 179 Map<Name, ExecutableElement> map = new LinkedHashMap<Name, ExecutableElement>(); in noArgMethodsIn() [all …]
|
D | ExtensionContext.java | 27 import javax.lang.model.element.ExecutableElement; 35 private final ImmutableMap<String, ExecutableElement> properties; 37 private final ImmutableSet<ExecutableElement> abstractMethods; 43 ImmutableMap<String, ExecutableElement> properties, in ExtensionContext() 44 ImmutableMap<ExecutableElement, TypeMirror> propertyMethodsAndTypes, in ExtensionContext() argument 45 ImmutableSet<ExecutableElement> abstractMethods) { in ExtensionContext() 79 public Map<String, ExecutableElement> properties() { in properties() 89 public Set<ExecutableElement> abstractMethods() { in abstractMethods()
|
D | AutoAnnotationProcessor.java | 47 import javax.lang.model.element.ExecutableElement; 128 List<ExecutableElement> methods = ElementFilter.methodsIn(annotatedElements); in process() 132 for (ExecutableElement method : methods) { in process() 145 private void processMethod(ExecutableElement method) { in processMethod() 154 ImmutableMap<String, ExecutableElement> memberMethods = getMemberMethods(annotationElement); in processMethod() 247 private boolean methodsAreOverloaded(List<ExecutableElement> methods) { in methodsAreOverloaded() 250 for (ExecutableElement method : methods) { in methodsAreOverloaded() 263 private String generatedClassName(ExecutableElement method) { in generatedClassName() 273 private TypeElement getAnnotationReturnType(ExecutableElement method) { in getAnnotationReturnType() 287 private ImmutableMap<String, ExecutableElement> getMemberMethods(TypeElement annotationElement) { in getMemberMethods() [all …]
|
/external/auto/value/src/main/java/com/google/auto/value/extension/ |
D | AutoValueExtension.java | 25 import javax.lang.model.element.ExecutableElement; 135 Map<String, ExecutableElement> properties(); in properties() 159 Set<ExecutableElement> abstractMethods(); in abstractMethods() 209 Set<ExecutableElement> toBuilderMethods(); in toBuilderMethods() 238 Set<ExecutableElement> builderMethods(); in builderMethods() 252 Optional<ExecutableElement> buildMethod(); in buildMethod() 264 ExecutableElement autoBuildMethod(); in autoBuildMethod() 271 Map<String, Set<ExecutableElement>> setters(); in setters() 282 Map<String, ExecutableElement> propertyBuilders(); in propertyBuilders() 429 public Set<ExecutableElement> consumeMethods(Context context) { in consumeMethods()
|
/external/dagger2/java/dagger/internal/codegen/validation/ |
D | AnyBindingMethodValidator.java | 34 import javax.lang.model.element.ExecutableElement; 40 private final Map<ExecutableElement, ValidationReport<ExecutableElement>> reports = 63 boolean isBindingMethod(ExecutableElement method) { in isBindingMethod() 80 ValidationReport<ExecutableElement> validate(ExecutableElement method) { in validate() 88 boolean wasAlreadyValidated(ExecutableElement method) { in wasAlreadyValidated() 92 private ValidationReport<ExecutableElement> validateUncached(ExecutableElement method) { in validateUncached() 93 ValidationReport.Builder<ExecutableElement> report = ValidationReport.about(method); in validateUncached()
|
D | ComponentCreatorValidator.java | 46 import javax.lang.model.element.ExecutableElement; 173 List<ExecutableElement> constructors = ElementFilter.constructorsIn(allElements); in validateConstructor() 179 ExecutableElement constructor = getOnlyElement(constructors); in validateConstructor() 209 ExecutableElement buildMethod = null; in validateBuilder() 210 for (ExecutableElement method : elements.getUnimplementedMethods(type)) { in validateBuilder() 247 private void validateSetterMethod(ExecutableElement method) { in validateSetterMethod() 280 ImmutableList<ExecutableElement> abstractMethods = in validateFactory() 301 private void validateFactoryMethod(ExecutableElement method) { in validateFactoryMethod() 325 private boolean validateFactoryMethodReturnType(ExecutableElement method) { in validateFactoryMethodReturnType() 346 ImmutableSet<ExecutableElement> methodsOnlyInComponent = in validateFactoryMethodReturnType() [all …]
|
D | ModuleValidator.java | 88 import javax.lang.model.element.ExecutableElement; 190 List<ExecutableElement> moduleMethods = methodsIn(module.getEnclosedElements()); in validateUncached() 191 List<ExecutableElement> bindingMethods = new ArrayList<>(); in validateUncached() 192 for (ExecutableElement moduleMethod : moduleMethods) { in validateUncached() 227 ImmutableListMultimap<Name, ExecutableElement> bindingMethodsByName = in validateUncached() 228 Multimaps.index(bindingMethods, ExecutableElement::getSimpleName); in validateUncached() 235 Multimaps.index(moduleMethods, ExecutableElement::getSimpleName), in validateUncached() 347 static ModuleMethodKind ofMethod(ExecutableElement moduleMethod) { in ofMethod() 369 ListMultimap<Name, ExecutableElement> bindingMethodsByName) { in validateMethodsWithSameName() 370 for (Entry<Name, Collection<ExecutableElement>> entry : in validateMethodsWithSameName() [all …]
|
/external/auto/common/src/test/java/com/google/auto/common/ |
D | MoreElementsTest.java | 41 import javax.lang.model.element.ExecutableElement; 105 for (ExecutableElement e : ElementFilter.methodsIn(typeElement.getEnclosedElements())) { in asTypeElement_notATypeElement() 268 Set<ExecutableElement> childTypeMethods = in getLocalAndInheritedMethods_Old() 270 Set<ExecutableElement> objectMethods = visibleMethodsFromObject(); in getLocalAndInheritedMethods_Old() 272 Set<ExecutableElement> nonObjectMethods = Sets.difference(childTypeMethods, objectMethods); in getLocalAndInheritedMethods_Old() 291 Set<ExecutableElement> childTypeMethods = in getLocalAndInheritedMethods() 293 Set<ExecutableElement> objectMethods = visibleMethodsFromObject(); in getLocalAndInheritedMethods() 295 Set<ExecutableElement> nonObjectMethods = Sets.difference(childTypeMethods, objectMethods); in getLocalAndInheritedMethods() 314 Set<ExecutableElement> childTypeMethods = in getAllMethods() 316 Set<ExecutableElement> objectMethods = allMethodsFromObject(); in getAllMethods() [all …]
|
D | OverridesTest.java | 43 import javax.lang.model.element.ExecutableElement; 309 ImmutableSet.Builder<ExecutableElement> testMethodsBuilder = ImmutableSet.builder(); in checkOverridesInSet() 313 ImmutableSet<ExecutableElement> testMethods = testMethodsBuilder.build(); in checkOverridesInSet() 316 List<ExecutableElement> inMethods = methodsIn(elementUtils.getAllMembers(in)); in checkOverridesInSet() 317 for (ExecutableElement overrider : inMethods) { in checkOverridesInSet() 318 ExecutableElement javacOverrider = javacMethod(overrider); in checkOverridesInSet() 319 for (ExecutableElement overridden : testMethods) { in checkOverridesInSet() 320 ExecutableElement javacOverridden = javacMethod(overridden); in checkOverridesInSet() 342 private ExecutableElement getMethod(TypeElement in, String name, TypeKind... parameterTypeKinds) { in getMethod() 343 ExecutableElement found = null; in getMethod() [all …]
|
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/ |
D | Processor.java | 56 import javax.lang.model.element.ExecutableElement; 107 Collection<ExecutableElement> newProviderMethods = findNewProviderMethods(roundEnv); in process() 110 Collection<ExecutableElement> newCrossProfileMethods = findNewCrossProfileMethods(roundEnv); in process() 111 Collection<ExecutableElement> allCrossProfileMethods = in process() 122 Collection<ExecutableElement> methods = new HashSet<>(allCrossProfileMethods); in process() 126 .filter(e -> e instanceof ExecutableElement) in process() 127 .map(e -> (ExecutableElement) e) in process() 238 .filter(m -> m instanceof ExecutableElement) in findNewProviderClasses() 239 .map(m -> (ExecutableElement) m) in findNewProviderClasses() 252 private Collection<ExecutableElement> findNewProviderMethods(RoundEnvironment roundEnv) { in findNewProviderMethods() [all …]
|
D | EarlyValidator.java | 62 import javax.lang.model.element.ExecutableElement; 534 for (ExecutableElement crossProfileMethod : crossProfileType.crossProfileMethods()) { in validateCrossProfileType() 589 Collection<ExecutableElement> providerMethods, in validateCrossProfileTypesAreProvided() 595 for (ExecutableElement provider : providerMethods) { in validateCrossProfileTypesAreProvided() 629 private boolean validateProviderMethods(Collection<ExecutableElement> providerMethods) { in validateProviderMethods() 632 for (ExecutableElement providerMethod : providerMethods) { in validateProviderMethods() 676 .filter(e -> e instanceof ExecutableElement) in validateProviderClasses() 677 .map(e -> (ExecutableElement) e) in validateProviderClasses() 691 for (ExecutableElement constructor : in hasValidProviderClassConstructor() 702 private boolean isValidProviderClassConstructor(ExecutableElement constructor) { in isValidProviderClassConstructor() [all …]
|
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/containers/ |
D | CrossProfileCallbackInterfaceInfo.java | 28 import javax.lang.model.element.ExecutableElement; 44 List<ExecutableElement> methods = methods(); in isSimple() 48 public List<ExecutableElement> methods() { in methods() 50 .filter(e -> e instanceof ExecutableElement) in methods() 51 .map(e -> (ExecutableElement) e) in methods() 57 public int getIdentifier(ExecutableElement method) { in getIdentifier()
|
/external/dagger2/java/dagger/hilt/android/processor/internal/ |
D | MoreTypes.java | 24 import javax.lang.model.element.ExecutableElement; 113 public static Optional<ExecutableElement> findInheritedMethod( 114 Types types, TypeElement classElement, ExecutableElement method) { 115 Optional<ExecutableElement> match = Optional.empty(); 124 public static Optional<ExecutableElement> findMethod( 125 Types types, TypeElement classElement, ExecutableElement method) { 127 Set<ExecutableElement> matchingMethods = 145 public static Set<ExecutableElement> findMethods(TypeElement classElement, String name) {
|
/external/dagger2/java/dagger/internal/codegen/binding/ |
D | MethodSignatureFormatter.java | 31 import javax.lang.model.element.ExecutableElement; 39 public final class MethodSignatureFormatter extends Formatter<ExecutableElement> { 53 public Formatter<ExecutableElement> typedFormatter(DeclaredType declaredType) { in typedFormatter() 54 return new Formatter<ExecutableElement>() { in typedFormatter() 56 public String format(ExecutableElement method) { in typedFormatter() 66 public String format(ExecutableElement method) { 74 public String format(ExecutableElement method, Optional<DeclaredType> container) { 85 ExecutableElement method, ExecutableType methodType, TypeElement declaringType) {
|
D | ChildFactoryMethodEdgeImpl.java | 22 import javax.lang.model.element.ExecutableElement; 27 private final ExecutableElement factoryMethod; 29 ChildFactoryMethodEdgeImpl(ExecutableElement factoryMethod) { in ChildFactoryMethodEdgeImpl() 34 public ExecutableElement factoryMethod() { in factoryMethod()
|