/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/containers/ |
D | CrossProfileMethodInfo.java | 47 public abstract ExecutableElement methodElement(); in methodElement() method in CrossProfileMethodInfo 54 return methodElement().getSimpleName().toString(); in simpleName() 58 return methodElement().getReturnType(); in returnType() 66 return methodElement().getThrownTypes().stream() in thrownExceptions() 122 return methodElement().getParameters().stream() in commaSeparatedParameters() 130 return methodElement().getParameters().stream() in commaSeparatedParameters() 140 return methodElement().getParameters().stream() in commaSeparatedParameters() 150 return methodElement().getParameters().stream().map(Element::asType).collect(toSet()); in parameterTypes() 182 return isFuture(type.supportedTypes(), methodElement()); in isFuture() 191 return getCrossProfileCallbackParam(generatorContext.elements(), methodElement()); in getCrossProfileCallbackParam() [all …]
|
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/validator/ |
D | SdkStore.java | 140 public String verifyMethod(TypeElement sdkClassElem, ExecutableElement methodElement, in verifyMethod() argument 149 MethodExtraInfo sdkMethod = classInfo.findMethod(methodElement, looseSignatures); in verifyMethod() 154 MethodExtraInfo implMethod = new MethodExtraInfo(methodElement); in verifyMethod() 156 && !suppressWarnings(methodElement, "robolectric.ShadowReturnTypeMismatch")) { in verifyMethod() 158 return "@Implementation for " + methodElement.getSimpleName() in verifyMethod() 170 return "@Implementation for " + methodElement.getSimpleName() in verifyMethod() 180 private boolean suppressWarnings(ExecutableElement methodElement, String warningName) { in suppressWarnings() argument 181 … SuppressWarnings[] suppressWarnings = methodElement.getAnnotationsByType(SuppressWarnings.class); in suppressWarnings() 329 MethodExtraInfo findMethod(ExecutableElement methodElement, boolean looseSignatures) { in findMethod() argument 330 MethodInfo methodInfo = new MethodInfo(methodElement); in findMethod() [all …]
|
D | ImplementsValidator.java | 210 ExecutableElement methodElement = (ExecutableElement) memberElement; in validateShadowMethods() local 213 if (METHODS_ALLOWED_TO_BE_PUBLIC.contains(methodElement.getSimpleName().toString())) { in validateShadowMethods() 217 verifySdkMethod(sdkClassElem, methodElement, classMinSdk, classMaxSdk, looseSignatures); in validateShadowMethods() 219 String methodName = methodElement.getSimpleName().toString(); in validateShadowMethods() 225 Kind.ERROR, "Shadow methods must be annotated @Implementation", methodElement); in validateShadowMethods() 231 private void verifySdkMethod(TypeElement sdkClassElem, ExecutableElement methodElement, in verifySdkMethod() argument 237 Implementation implementation = methodElement.getAnnotation(Implementation.class); in verifySdkMethod() 245 String problem = sdk.verifyMethod(sdkClassElem, methodElement, looseSignatures); in verifySdkMethod() 252 problems.recount(messager, methodElement); in verifySdkMethod() 274 ExecutableElement methodElement = (ExecutableElement) memberElement; in captureJavadoc() local [all …]
|
/external/dagger2/java/dagger/internal/codegen/writing/ |
D | MembersInjectionBindingExpression.java | 55 ExecutableElement methodElement = componentMethod.methodElement(); in getComponentMethodImplementation() local 56 ParameterSpec parameter = ParameterSpec.get(getOnlyElement(methodElement.getParameters())); in getComponentMethodImplementation() 59 return methodElement.getReturnType().getKind().equals(VOID) in getComponentMethodImplementation() 63 return methodElement.getReturnType().getKind().equals(VOID) in getComponentMethodImplementation()
|
D | ComponentMethodBindingExpression.java | 79 TypeMirror methodReturnType = componentMethod.methodElement().getReturnType(); in getDependencyExpression() 90 return componentMethod.methodElement().getSimpleName().toString(); in methodName()
|
D | ProducerEntryPointView.java | 85 String methodName = componentMethod.methodElement().getSimpleName().toString(); in createField()
|
/external/dagger2/java/dagger/internal/codegen/validation/ |
D | InjectValidator.java | 272 private ValidationReport<ExecutableElement> validateMethod(ExecutableElement methodElement) { in validateMethod() argument 273 ValidationReport.Builder<ExecutableElement> builder = ValidationReport.about(methodElement); in validateMethod() 274 Set<Modifier> modifiers = methodElement.getModifiers(); in validateMethod() 276 builder.addError("Methods with @Inject may not be abstract", methodElement); in validateMethod() 283 methodElement); in validateMethod() 290 methodElement); in validateMethod() 293 if (!methodElement.getTypeParameters().isEmpty()) { in validateMethod() 294 builder.addError("Methods with @Inject may not declare type parameters", methodElement); in validateMethod() 297 if (!methodElement.getThrownTypes().isEmpty()) { in validateMethod() 299 + "Please wrap your exceptions in a RuntimeException instead.", methodElement); in validateMethod() [all …]
|
D | ComponentHierarchyValidator.java | 92 method.methodElement()); in validateSubcomponentMethods() 116 subcomponentMethodDescriptor.methodElement().getParameters()) { in validateFactoryMethodParameters()
|
/external/smali/smalidea/src/test/java/org/jf/smalidea/ |
D | SmaliMethodTest.java | 58 SmaliMethod methodElement = (SmaliMethod)leafElement.getParent(); in testMethodRegisters() local 59 Assert.assertNotNull(methodElement); in testMethodRegisters() 61 Assert.assertEquals(123, methodElement.getRegisterCount()); in testMethodRegisters() 62 Assert.assertEquals(1, methodElement.getParameterRegisterCount()); in testMethodRegisters() 78 SmaliMethod methodElement = (SmaliMethod)leafElement.getParent(); in testMethodRegisters2() local 79 Assert.assertNotNull(methodElement); in testMethodRegisters2() 81 Assert.assertEquals(128, methodElement.getRegisterCount()); in testMethodRegisters2() 82 Assert.assertEquals(5, methodElement.getParameterRegisterCount()); in testMethodRegisters2()
|
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/ |
D | OtherProfileGenerator.java | 171 method.methodElement(), in generateBlockingMethodOnOtherProfileClass() 181 for (VariableElement param : method.methodElement().getParameters()) { in generateBlockingMethodOnOtherProfileClass() 255 method.methodElement(), in generateCrossProfileCallbackMethodOnOtherProfileClass() 267 for (VariableElement param : method.methodElement().getParameters()) { in generateCrossProfileCallbackMethodOnOtherProfileClass() 320 method.methodElement(), in generateFutureMethodOnOtherProfileClass() 330 for (VariableElement param : method.methodElement().getParameters()) { in generateFutureMethodOnOtherProfileClass()
|
D | AlwaysThrowsGenerator.java | 148 method.methodElement(), in generateBlockingMethodOnAlwaysThrowsClass() 167 method.methodElement(), in generateCrossProfileCallbackMethodOnAlwaysThrowsClass() 200 method.methodElement(), in generateFutureMethodOnAlwaysThrowsClass()
|
D | InternalCrossProfileClassGenerator.java | 240 GeneratorUtilities.methodJavadocReference(method.methodElement()), in addBlockingCrossProfileTypeMethod() 290 GeneratorUtilities.methodJavadocReference(method.methodElement())) in addCrossProfileCallbackCrossProfileTypeMethod() 340 GeneratorUtilities.methodJavadocReference(method.methodElement())) in addFutureCrossProfileTypeMethod() 370 for (VariableElement parameter : method.methodElement().getParameters()) { in addExtractParametersCode()
|
D | InterfaceGenerator.java | 320 method.methodElement(), in generateMethodOnSingleSenderInterface() 385 method.methodElement(), in generateMethodOnSingleSenderCanThrowInterface() 511 method.methodElement(), in generateBlockingMethodOnMultipleSenderInterface() 556 method.methodElement(), in generateCrossProfileCallbackMethodOnMultipleSenderInterface() 617 method.methodElement(), in generateFutureMethodOnMultipleSenderInterface()
|
D | FakeOtherGenerator.java | 185 method.methodElement(), in generateBlockingMethodOnFakeOther() 241 method.methodElement(), in generateCrossProfileCallbackMethodOnFakeOther() 288 method.methodElement(), in generateFutureMethodOnFakeOther()
|
D | CurrentProfileGenerator.java | 185 method.methodElement(), in generateMethodOnCurrentProfileClass() 203 method.methodElement(), in generateCrossProfileCallbackWithExceptionMethodOnCurrentProfileClass()
|
D | MultipleProfilesGenerator.java | 180 method.methodElement(), in generateBlockingMethodOnMultipleProfilesClass() 238 method.methodElement(), in generateCrossProfileCallbackMethodOnMultipleProfilesClass() 332 method.methodElement(), in generateFutureMethodOnMultipleProfilesClass()
|
D | IfAvailableGenerator.java | 111 method.methodElement(), in generateMethodOnIfAvailableClass()
|
/external/dagger2/java/dagger/internal/codegen/binding/ |
D | ComponentDescriptor.java | 305 public abstract ExecutableElement methodElement(); in methodElement() method in ComponentDescriptor.ComponentMethodDescriptor 324 TypeMirror returnType = methodElement().getReturnType(); in resolvedReturnType() 335 .methodElement(method); in builder() 343 Builder methodElement(ExecutableElement methodElement); in methodElement() method
|
/external/desugar/java/com/google/devtools/common/options/processor/ |
D | OptionProcessor.java | 285 .map(methodElement -> (ExecutableElement) methodElement) in checkProvidedConverter() 286 .filter(methodElement -> methodElement.getSimpleName().contentEquals("convert")) in checkProvidedConverter() 288 methodElement -> in checkProvidedConverter() 289 methodElement.getParameters().size() == 1 in checkProvidedConverter() 291 methodElement.getParameters().get(0).asType(), in checkProvidedConverter()
|
/external/javapoet/src/test/java/com/squareup/javapoet/ |
D | MethodSpecTest.java | 150 ExecutableElement methodElement = getOnlyElement(methodsIn(classElement.getEnclosedElements())); in overrideEverything() local 151 MethodSpec method = MethodSpec.overriding(methodElement).build(); in overrideEverything() 163 ExecutableElement methodElement = getOnlyElement(methodsIn(classElement.getEnclosedElements())); in overrideGenerics() local 164 MethodSpec method = MethodSpec.overriding(methodElement) in overrideGenerics() 285 ExecutableElement methodElement = getOnlyElement(methodsIn(classElement.getEnclosedElements())); in equalsAndHashCode() local 286 a = MethodSpec.overriding(methodElement).build(); in equalsAndHashCode() 287 b = MethodSpec.overriding(methodElement).build(); in equalsAndHashCode()
|
/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/ |
D | BroadcastReceiverGenerator.java | 104 methodElement -> in isOnReceiveImplemented() 105 getMethodDescriptor(methodElement).equals(ON_RECEIVE_DESCRIPTOR) in isOnReceiveImplemented() 106 && !methodElement.getModifiers().contains(Modifier.ABSTRACT)); in isOnReceiveImplemented()
|
/external/dagger2/java/dagger/internal/codegen/componentgenerator/ |
D | MethodSignature.java | 45 MoreTypes.asExecutable(types.asMemberOf(componentType, componentMethod.methodElement())); in forComponentMethod() 47 componentMethod.methodElement().getSimpleName().toString(), in forComponentMethod()
|
/external/dagger2/java/dagger/internal/codegen/ |
D | InjectProcessingStep.java | 63 public Void visitExecutableAsMethod(ExecutableElement methodElement, Void aVoid) { in InjectProcessingStep() 65 MoreElements.asType(methodElement.getEnclosingElement())); in InjectProcessingStep()
|
/external/auto/common/src/test/java/com/google/auto/common/ |
D | MoreElementsTest.java | 166 for (Element methodElement : ElementFilter.methodsIn(stringElement.getEnclosedElements())) { in asExecutable() 167 assertThat(MoreElements.asExecutable(methodElement)).isEqualTo(methodElement); in asExecutable() 169 for (Element methodElement in asExecutable() 171 assertThat(MoreElements.asExecutable(methodElement)).isEqualTo(methodElement); in asExecutable()
|
/external/dagger2/java/dagger/internal/codegen/kotlin/ |
D | KotlinMetadataUtil.java | 72 .map(methodElement -> getAnnotatedAnnotations(methodElement, annotationType).asList()) in getSyntheticPropertyAnnotations()
|