HomeSort by relevance Sort by last modified time
    Searched refs:methodElement (Results 1 - 18 of 18) sorted by null

  /external/dagger2/compiler/src/main/java/dagger/internal/codegen/
InjectMethodValidator.java 53 ValidationReport<ExecutableElement> validate(ExecutableElement methodElement) {
54 ValidationReport.Builder<ExecutableElement> builder = ValidationReport.about(methodElement);
55 Set<Modifier> modifiers = methodElement.getModifiers();
57 builder.addError(ABSTRACT_INJECT_METHOD, methodElement);
61 builder.addItem(PRIVATE_INJECT_METHOD, privateMemberValidationKind, methodElement);
65 builder.addItem(STATIC_INJECT_METHOD, staticMemberValidationKind, methodElement);
68 if (!methodElement.getTypeParameters().isEmpty()) {
69 builder.addError(GENERIC_INJECT_METHOD, methodElement);
72 for (VariableElement parameter : methodElement.getParameters()) {
76 builder.addError(MULTIPLE_QUALIFIERS, methodElement, qualifier)
    [all...]
InjectProcessingStep.java 125 public Void visitExecutableAsMethod(ExecutableElement methodElement, Void p) {
127 methodValidator.validate(methodElement);
133 MoreTypes.asDeclared(methodElement.getEnclosingElement().asType()));
ModuleProcessingStep.java 102 for (ExecutableElement methodElement : moduleMethods) {
103 if (isAnnotationPresent(methodElement, Provides.class)) {
104 moduleProvidesMethodsBuilder.add(methodElement);
ProducerModuleProcessingStep.java 105 for (ExecutableElement methodElement : moduleMethods) {
106 if (isAnnotationPresent(methodElement, Produces.class)) {
107 moduleProducesMethodsBuilder.add(methodElement);
MembersInjectionBinding.java 134 ExecutableElement methodElement, DeclaredType containingType) {
135 checkNotNull(methodElement);
136 checkArgument(methodElement.getKind().equals(ElementKind.METHOD));
138 MoreTypes.asExecutable(types.asMemberOf(containingType, methodElement));
141 methodElement,
143 containingType, methodElement.getParameters(), resolved.getParameterTypes()));
ProvidesMethodValidator.java 161 ExecutableElement methodElement) {
162 ImmutableSet<? extends AnnotationMirror> qualifiers = getQualifiers(methodElement);
165 builder.addError(PROVIDES_OR_PRODUCES_METHOD_MULTIPLE_QUALIFIERS, methodElement, qualifier);
ComponentHierarchyValidator.java 56 subcomponentMethodDescriptor.methodElement().getParameters()) {
BindingGraph.java 216 subcomponentMethodDescriptor.methodElement(),
244 subcomponentEntry.getKey().methodElement(),
ComponentDescriptor.java 206 abstract ExecutableElement methodElement();
BindingGraphValidator.java 181 entry.getKey().methodElement(), entry.getValue().componentDefinitionType());
    [all...]
  /external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/validator/
SdkStore.java 135 * @param methodElement the `@Implementation` method declaration to check
140 public String verifyMethod(TypeElement sdkClassElem, ExecutableElement methodElement,
149 MethodExtraInfo sdkMethod = classInfo.findMethod(methodElement, looseSignatures);
154 MethodExtraInfo implMethod = new MethodExtraInfo(methodElement);
156 && !suppressWarnings(methodElement, "robolectric.ShadowReturnTypeMismatch")) {
158 return "@Implementation for " + methodElement.getSimpleName()
170 return "@Implementation for " + methodElement.getSimpleName()
180 private boolean suppressWarnings(ExecutableElement methodElement, String warningName) {
181 SuppressWarnings[] suppressWarnings = methodElement.getAnnotationsByType(SuppressWarnings.class);
329 MethodExtraInfo findMethod(ExecutableElement methodElement, boolean looseSignatures)
    [all...]
ImplementsValidator.java 210 ExecutableElement methodElement = (ExecutableElement) memberElement;
213 if (METHODS_ALLOWED_TO_BE_PUBLIC.contains(methodElement.getSimpleName().toString())) {
217 verifySdkMethod(sdkClassElem, methodElement, classMinSdk, classMaxSdk, looseSignatures);
219 String methodName = methodElement.getSimpleName().toString();
225 Kind.ERROR, "Shadow methods must be annotated @Implementation", methodElement);
231 private void verifySdkMethod(TypeElement sdkClassElem, ExecutableElement methodElement,
237 Implementation implementation = methodElement.getAnnotation(Implementation.class);
245 String problem = sdk.verifyMethod(sdkClassElem, methodElement, looseSignatures);
252 problems.recount(messager, methodElement);
274 ExecutableElement methodElement = (ExecutableElement) memberElement
    [all...]
  /external/smali/smalidea/src/test/java/org/jf/smalidea/
SmaliMethodTest.java 58 SmaliMethod methodElement = (SmaliMethod)leafElement.getParent();
59 Assert.assertNotNull(methodElement);
61 Assert.assertEquals(123, methodElement.getRegisterCount());
62 Assert.assertEquals(1, methodElement.getParameterRegisterCount());
78 SmaliMethod methodElement = (SmaliMethod)leafElement.getParent();
79 Assert.assertNotNull(methodElement);
81 Assert.assertEquals(128, methodElement.getRegisterCount());
82 Assert.assertEquals(5, methodElement.getParameterRegisterCount());
  /external/javapoet/src/test/java/com/squareup/javapoet/
MethodSpecTest.java 151 ExecutableElement methodElement = getOnlyElement(methodsIn(classElement.getEnclosedElements()));
152 MethodSpec method = MethodSpec.overriding(methodElement).build();
164 ExecutableElement methodElement = getOnlyElement(methodsIn(classElement.getEnclosedElements()));
165 MethodSpec method = MethodSpec.overriding(methodElement)
266 ExecutableElement methodElement = getOnlyElement(methodsIn(classElement.getEnclosedElements()));
267 a = MethodSpec.overriding(methodElement).build();
268 b = MethodSpec.overriding(methodElement).build();
  /external/desugar/java/com/google/devtools/common/options/processor/
OptionProcessor.java 285 .map(methodElement -> (ExecutableElement) methodElement)
286 .filter(methodElement -> methodElement.getSimpleName().contentEquals("convert"))
288 methodElement ->
289 methodElement.getParameters().size() == 1
291 methodElement.getParameters().get(0).asType(),
  /cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
CurrentApiHelper.java 148 private static Class[] getParamTypes(Element methodElement) throws Exception {
149 NodeList nodes = methodElement.getElementsByTagName(TAG_PARAMETER);
  /external/error_prone/checkerframework/
dataflow-2.5.3.jar 
javacutil-2.5.3.jar 

Completed in 1042 milliseconds