/external/doclava/doclet_adapter/src/test/java/com/google/doclava/javadoc/ |
D | BaseTest.java | 22 import javax.lang.model.element.ExecutableElement; 184 static final ExecutableElement returningBool = initExecutableElement( 186 static final ExecutableElement returningByte = initExecutableElement( 188 static final ExecutableElement returningChar = initExecutableElement( 190 static final ExecutableElement returningDouble = initExecutableElement( 192 static final ExecutableElement returningFloat = initExecutableElement( 194 static final ExecutableElement returningInteger = initExecutableElement( 196 static final ExecutableElement returningLond = initExecutableElement( 198 static final ExecutableElement returningShort = initExecutableElement( 200 static final ExecutableElement returningString = initExecutableElement( [all …]
|
/external/auto/value/src/main/java/com/google/auto/value/processor/ |
D | BuilderMethodClassifierForAutoValue.java | 27 import javax.lang.model.element.ExecutableElement; 31 class BuilderMethodClassifierForAutoValue extends BuilderMethodClassifier<ExecutableElement> { 33 private final ImmutableBiMap<ExecutableElement, String> getterToPropertyName; 34 private final ImmutableMap<String, ExecutableElement> getterNameToGetter; 42 ImmutableBiMap<ExecutableElement, String> getterToPropertyName, in BuilderMethodClassifierForAutoValue() argument 69 static Optional<BuilderMethodClassifier<ExecutableElement>> classify( in classify() 70 Iterable<ExecutableElement> methods, in classify() 75 ImmutableBiMap<ExecutableElement, String> getterToPropertyName, in classify() argument 78 BuilderMethodClassifier<ExecutableElement> classifier = in classify() 94 TypeMirror originalPropertyType(ExecutableElement propertyElement) { in originalPropertyType() [all …]
|
D | PropertyBuilderClassifier.java | 32 import javax.lang.model.element.ExecutableElement; 85 private final ExecutableElement propertyBuilderMethod; 96 ExecutableElement propertyBuilderMethod, in PropertyBuilder() 116 public ExecutableElement getPropertyBuilderMethod() { in getPropertyBuilderMethod() 206 Optional<PropertyBuilder> makePropertyBuilder(ExecutableElement method, String property) { in makePropertyBuilder() 217 Map<String, ExecutableElement> barBuilderNoArgMethods = noArgMethodsOf(barBuilderTypeElement); in makePropertyBuilder() 235 Map<String, ExecutableElement> barNoArgMethods = noArgMethodsOf(barTypeElement); in makePropertyBuilder() 238 ExecutableElement build = barBuilderNoArgMethods.get("build"); in makePropertyBuilder() 263 Optional<ExecutableElement> maybeBuilderMaker; in makePropertyBuilder() 267 Map<String, ExecutableElement> barOneArgMethods = oneArgumentMethodsOf(barTypeElement); in makePropertyBuilder() [all …]
|
D | AutoValueProcessor.java | 49 import javax.lang.model.element.ExecutableElement; 201 ImmutableSet<ExecutableElement> methods = in processType() 204 ImmutableSet<ExecutableElement> abstractMethods = abstractMethodsIn(methods); in processType() 208 ImmutableSet<ExecutableElement> toBuilderMethods; in processType() 215 ImmutableMap<ExecutableElement, TypeMirror> propertyMethodsAndTypes = in processType() 217 ImmutableMap<String, ExecutableElement> properties = in processType() 224 ImmutableSet<ExecutableElement> consumedMethods = in processType() 229 ImmutableSet<ExecutableElement> allAbstractMethods = abstractMethods; in processType() 240 ImmutableSet<ExecutableElement> propertyMethods = propertyMethodsAndTypes.keySet(); in processType() 341 private ImmutableSet<ExecutableElement> methodsConsumedByExtensions( in methodsConsumedByExtensions() [all …]
|
D | AutoOneOfProcessor.java | 44 import javax.lang.model.element.ExecutableElement; 93 ImmutableSet<ExecutableElement> methods = in processType() 96 ImmutableSet<ExecutableElement> abstractMethods = abstractMethodsIn(methods); in processType() 97 ExecutableElement kindGetter = in processType() 99 Set<ExecutableElement> otherMethods = new LinkedHashSet<>(abstractMethods); in processType() 102 ImmutableMap<ExecutableElement, TypeMirror> propertyMethodsAndTypes = in processType() 104 ImmutableBiMap<String, ExecutableElement> properties = in processType() 199 private ExecutableElement findKindGetterOrAbort( in findKindGetterOrAbort() 202 ImmutableSet<ExecutableElement> abstractMethods) { in findKindGetterOrAbort() 203 Set<ExecutableElement> kindGetters = in findKindGetterOrAbort() [all …]
|
D | BuilderSpec.java | 48 import javax.lang.model.element.ExecutableElement; 132 private ImmutableSet<ExecutableElement> toBuilderMethods; 133 private ExecutableElement buildMethod; 146 public Set<ExecutableElement> builderMethods() { in builderMethods() 158 public Optional<ExecutableElement> buildMethod() { in buildMethod() 180 public ExecutableElement autoBuildMethod() { in autoBuildMethod() 185 public Map<String, Set<ExecutableElement>> setters() { in setters() 193 public Map<String, ExecutableElement> propertyBuilders() { in propertyBuilders() 204 public Set<ExecutableElement> toBuilderMethods() { in toBuilderMethods() 227 ImmutableSet<ExecutableElement> toBuilderMethods( in toBuilderMethods() [all …]
|
D | AutoValueishProcessor.java | 71 import javax.lang.model.element.ExecutableElement; 292 private final ExecutableElement method; 299 ExecutableElement method, in GetterProperty() 469 abstract Optional<String> nullableAnnotationForMethod(ExecutableElement propertyMethod); in nullableAnnotationForMethod() 482 ImmutableMap<ExecutableElement, TypeMirror> propertyMethodsAndTypes, in propertySet() argument 483 ImmutableListMultimap<ExecutableElement, AnnotationMirror> annotatedPropertyFields, in propertySet() argument 484 ImmutableListMultimap<ExecutableElement, AnnotationMirror> annotatedPropertyMethods) { in propertySet() 485 ImmutableBiMap<ExecutableElement, String> methodToPropertyName = in propertySet() 487 Map<ExecutableElement, String> methodToIdentifier = new LinkedHashMap<>(methodToPropertyName); in propertySet() 527 TypeElement type, ImmutableSet<ExecutableElement> methods, AutoValueishTemplateVars vars) { 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 | AutoBuilderProcessor.java | 60 import javax.lang.model.element.ExecutableElement; 110 ImmutableSet<ExecutableElement> methods = in processType() 113 ExecutableElement executable = findExecutable(ofClass, callMethod, autoBuilderType, methods); in processType() 147 ExecutableElement executable, in propertySet() 193 TypeElement autoBuilderType, ExecutableElement autoAnnotationMethod) { in autoAnnotationInitializers() 204 for (ExecutableElement method : methodsIn(annotation.getEnclosedElements())) { in autoAnnotationInitializers() 217 private ExecutableElement findExecutable( in findExecutable() 221 ImmutableSet<ExecutableElement> methods) { in findExecutable() 222 List<ExecutableElement> executables = in findExecutable() 241 private ImmutableList<ExecutableElement> findRelevantExecutables( in findRelevantExecutables() [all …]
|
D | BuilderMethodClassifier.java | 43 import javax.lang.model.element.ExecutableElement; 88 private final Set<ExecutableElement> buildMethods = new LinkedHashSet<>(); 145 Set<ExecutableElement> buildMethods() { in buildMethods() 150 boolean classifyMethods(Iterable<ExecutableElement> methods, boolean autoValueHasToBuilder) { in classifyMethods() 152 for (ExecutableElement method : methods) { in classifyMethods() 214 private void classifyMethod(ExecutableElement method) { in classifyMethod() 236 private void classifyMethodNoArgs(ExecutableElement method) { in classifyMethodNoArgs() 283 private void classifyGetter(ExecutableElement builderGetter, String propertyName) { in classifyGetter() 332 private void classifyMethodOneArg(ExecutableElement method) { in classifyMethodOneArg() 413 private boolean classifyPropertyBuilderOneArg(ExecutableElement method) { in classifyPropertyBuilderOneArg() [all …]
|
D | AutoAnnotationProcessor.java | 54 import javax.lang.model.element.ExecutableElement; 138 List<ExecutableElement> methods = ElementFilter.methodsIn(annotatedElements); in process() 142 for (ExecutableElement method : methods) { in process() 155 private void processMethod(ExecutableElement method) { in processMethod() 164 ImmutableMap<String, ExecutableElement> memberMethods = getMemberMethods(annotationElement); in processMethod() 271 private boolean methodsAreOverloaded(List<ExecutableElement> methods) { in methodsAreOverloaded() 274 for (ExecutableElement method : methods) { in methodsAreOverloaded() 287 private String generatedClassName(ExecutableElement method) { in generatedClassName() 297 private TypeElement getAnnotationReturnType(ExecutableElement method) { in getAnnotationReturnType() 311 private ImmutableMap<String, ExecutableElement> getMemberMethods(TypeElement annotationElement) { in getMemberMethods() [all …]
|
/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; 291 public Set<ExecutableElement> consumeMethods(Context context) { in testCantConsumeConcreteMethod() 293 for (ExecutableElement method : in testCantConsumeConcreteMethod() 327 public Set<ExecutableElement> consumeMethods(Context context) { in testCantConsumeNonExistentMethod() 331 for (ExecutableElement method : in testCantConsumeNonExistentMethod() 738 for (Map.Entry<String, ExecutableElement> el : context.properties().entrySet()) { in generateClass() 751 for (Map.Entry<String, ExecutableElement> el : context.properties().entrySet()) { in generateClass() 882 private ExecutableElement writeToParcelMethod(Context context) { in writeToParcelMethod() 883 for (ExecutableElement method : context.abstractMethods()) { in writeToParcelMethod() 892 public Set<ExecutableElement> consumeMethods(Context context) { in consumeMethods() [all …]
|
D | NullablesTest.java | 43 import javax.lang.model.element.ExecutableElement; 141 List<ExecutableElement> methods = in process() 143 Map<Boolean, List<ExecutableElement>> partitionedMethods = in process() 146 List<ExecutableElement> nullableMethods = partitionedMethods.get(true); in process() 147 List<ExecutableElement> notNullableMethods = partitionedMethods.get(false); in process() 159 for (ExecutableElement nullableMethod : nullableMethods) { in process() 161 ImmutableList<ExecutableElement> notNullablePlusNullable = in process() 162 ImmutableList.<ExecutableElement>builder() in process()
|
/external/auto/common/src/main/java/com/google/auto/common/ |
D | MoreElements.java | 38 import javax.lang.model.element.ExecutableElement; 189 extends CastingElementVisitor<ExecutableElement> { 197 public ExecutableElement visitExecutable(ExecutableElement e, Void label) { in visitExecutable() 211 public static ExecutableElement asExecutable(Element element) { in asExecutable() 360 public static ImmutableSet<ExecutableElement> getLocalAndInheritedMethods( 394 public static ImmutableSet<ExecutableElement> getLocalAndInheritedMethods( 399 private static ImmutableSet<ExecutableElement> getLocalAndInheritedMethods( 403 ImmutableSet.Builder<ExecutableElement> methods = ImmutableSet.builder(); 404 for (ExecutableElement method : getAllMethods(type, overrides)) { 426 ExecutableElement overrider, [all …]
|
D | Overrides.java | 28 import javax.lang.model.element.ExecutableElement; 56 ExecutableElement overrider, ExecutableElement overridden, TypeElement in); in overrides() 66 boolean overrides(ExecutableElement overrider, ExecutableElement overridden, TypeElement in) { in overrides() 80 ExecutableElement overrider, ExecutableElement overridden, TypeElement in) { in overrides() 145 ExecutableElement inherited = methodFromSuperclasses(in, overridden); in overrides() 162 ExecutableElement inherited = methodFromSuperinterfaces(in, overridden); in overrides() 185 ExecutableElement overrider, ExecutableElement overridden, TypeElement in) { in isSubsignature() 228 ImmutableList<TypeMirror> erasedParameterTypes(ExecutableElement method, TypeElement in) { in erasedParameterTypes() 255 ImmutableList<TypeMirror> erasedParameterTypes(ExecutableElement method, TypeElement in) { in erasedParameterTypes() 333 @Nullable ExecutableElement methodFromSuperclasses(TypeElement in, ExecutableElement method) { in methodFromSuperclasses() [all …]
|
/external/auto/value/src/main/java/com/google/auto/value/extension/ |
D | AutoValueExtension.java | 25 import javax.lang.model.element.ExecutableElement; 133 Map<String, ExecutableElement> properties(); in properties() 157 Set<ExecutableElement> abstractMethods(); in abstractMethods() 207 Set<ExecutableElement> toBuilderMethods(); in toBuilderMethods() 236 Set<ExecutableElement> builderMethods(); in builderMethods() 250 Optional<ExecutableElement> buildMethod(); in buildMethod() 262 ExecutableElement autoBuildMethod(); in autoBuildMethod() 269 Map<String, Set<ExecutableElement>> setters(); in setters() 280 Map<String, ExecutableElement> propertyBuilders(); in propertyBuilders() 427 public Set<ExecutableElement> consumeMethods(Context context) { in consumeMethods()
|
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/ |
D | Processor.java | 57 import javax.lang.model.element.ExecutableElement; 105 Collection<ExecutableElement> newProviderMethods = findNewProviderMethods(roundEnv); in process() 108 Collection<ExecutableElement> newCrossProfileMethods = findNewCrossProfileMethods(roundEnv); in process() 109 Collection<ExecutableElement> allCrossProfileMethods = in process() 119 Collection<ExecutableElement> methods = new HashSet<>(allCrossProfileMethods); in process() 123 .filter(e -> e instanceof ExecutableElement) in process() 124 .map(e -> (ExecutableElement) e) in process() 234 .filter(m -> m instanceof ExecutableElement) in findNewProviderClasses() 235 .map(m -> (ExecutableElement) m) in findNewProviderClasses() 248 private Collection<ExecutableElement> findNewProviderMethods(RoundEnvironment roundEnv) { in findNewProviderMethods() [all …]
|
D | EarlyValidator.java | 68 import javax.lang.model.element.ExecutableElement; 548 for (ExecutableElement crossProfileMethod : crossProfileType.crossProfileMethods()) { in validateCrossProfileType() 600 Collection<ExecutableElement> providerMethods, in validateCrossProfileTypesAreProvided() 606 for (ExecutableElement provider : providerMethods) { in validateCrossProfileTypesAreProvided() 640 private boolean validateProviderMethods(Collection<ExecutableElement> providerMethods) { in validateProviderMethods() 643 for (ExecutableElement providerMethod : providerMethods) { in validateProviderMethods() 687 .filter(e -> e instanceof ExecutableElement) in validateProviderClasses() 688 .map(e -> (ExecutableElement) e) in validateProviderClasses() 702 for (ExecutableElement constructor : in hasValidProviderClassConstructor() 713 private boolean isValidProviderClassConstructor(ExecutableElement constructor) { in isValidProviderClassConstructor() [all …]
|
/external/auto/common/src/test/java/com/google/auto/common/ |
D | MoreElementsTest.java | 42 import javax.lang.model.element.ExecutableElement; 107 for (ExecutableElement e : ElementFilter.methodsIn(typeElement.getEnclosedElements())) { in asTypeElement_notATypeElement() 324 Set<ExecutableElement> childTypeMethods = in getLocalAndInheritedMethods_Old() 326 Set<ExecutableElement> objectMethods = visibleMethodsFromObject(); in getLocalAndInheritedMethods_Old() 328 Set<ExecutableElement> nonObjectMethods = Sets.difference(childTypeMethods, objectMethods); in getLocalAndInheritedMethods_Old() 348 Set<ExecutableElement> childTypeMethods = in getLocalAndInheritedMethods() 350 Set<ExecutableElement> objectMethods = visibleMethodsFromObject(); in getLocalAndInheritedMethods() 352 Set<ExecutableElement> nonObjectMethods = Sets.difference(childTypeMethods, objectMethods); in getLocalAndInheritedMethods() 371 Set<ExecutableElement> childTypeMethods = in getAllMethods() 373 Set<ExecutableElement> objectMethods = allMethodsFromObject(); in getAllMethods() [all …]
|
D | OverridesTest.java | 44 import javax.lang.model.element.ExecutableElement; 382 ImmutableSet.Builder<ExecutableElement> testMethodsBuilder = ImmutableSet.builder(); in checkOverridesInSet() 386 ImmutableSet<ExecutableElement> testMethods = testMethodsBuilder.build(); in checkOverridesInSet() 389 List<ExecutableElement> inMethods = methodsIn(elementUtils.getAllMembers(in)); in checkOverridesInSet() 390 for (ExecutableElement overrider : inMethods) { in checkOverridesInSet() 391 ExecutableElement javacOverrider = javacMethod(overrider); in checkOverridesInSet() 392 for (ExecutableElement overridden : testMethods) { in checkOverridesInSet() 393 ExecutableElement javacOverridden = javacMethod(overridden); in checkOverridesInSet() 418 private ExecutableElement getMethod(TypeElement in, String name, TypeKind... parameterTypeKinds) { in getMethod() 419 ExecutableElement found = null; in getMethod() [all …]
|
/external/auto/value/src/main/java/com/google/auto/value/extension/toprettystring/processor/ |
D | ToPrettyStringValidator.java | 40 import javax.lang.model.element.ExecutableElement; 63 Set<ExecutableElement> annotatedMethods = in process() 65 for (ExecutableElement method : annotatedMethods) { in process() 74 private void validateMethod(ExecutableElement method, Elements elements) { in validateMethod() 91 Set<ExecutableElement> annotatedMethods, Types types, Elements elements) { in validateSingleToPrettyStringMethod() 98 ImmutableList<ExecutableElement> methods = in validateSingleToPrettyStringMethod() 113 private String formatMethodList(ImmutableList<ExecutableElement> methods) { in formatMethodList() 117 private String formatMethodInList(ExecutableElement method) { in formatMethodInList() 130 private final ExecutableElement method; 133 ErrorReporter(ExecutableElement method, Messager messager) { in ErrorReporter()
|
/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) {
|