private void processInjectAnnotatedMethod(ExecutableElement methodElement, Map<TypeElement, List<MethodInjectionTarget>> mapTypeElementToMemberInjectorTargetList) { TypeElement enclosingElement = (TypeElement) methodElement.getEnclosingElement(); // Verify common generated code restrictions. if (!isValidInjectAnnotatedMethod(methodElement)) { return; } List<MethodInjectionTarget> methodInjectionTargetList = mapTypeElementToMemberInjectorTargetList.get(enclosingElement); if (methodInjectionTargetList == null) { methodInjectionTargetList = new ArrayList<>(); mapTypeElementToMemberInjectorTargetList.put(enclosingElement, methodInjectionTargetList); } mapTypeToMostDirectSuperTypeThatNeedsInjection(enclosingElement); methodInjectionTargetList.add(createMethodInjectionTarget(methodElement)); }
private void processInjectAnnotatedMethod(ExecutableElement methodElement, Map<TypeElement, List<MethodInjectionTarget>> mapTypeElementToMemberInjectorTargetList) { TypeElement enclosingElement = (TypeElement) methodElement.getEnclosingElement(); // Verify common generated code restrictions. if (!isValidInjectAnnotatedMethod(methodElement)) { return; } List<MethodInjectionTarget> methodInjectionTargetList = mapTypeElementToMemberInjectorTargetList.get(enclosingElement); if (methodInjectionTargetList == null) { methodInjectionTargetList = new ArrayList<>(); mapTypeElementToMemberInjectorTargetList.put(enclosingElement, methodInjectionTargetList); } mapTypeToMostDirectSuperTypeThatNeedsInjection(enclosingElement); methodInjectionTargetList.add(createMethodInjectionTarget(methodElement)); }
private void processInjectAnnotatedMethod(ExecutableElement methodElement, Map<TypeElement, List<MethodInjectionTarget>> mapTypeElementToMemberInjectorTargetList) { TypeElement enclosingElement = (TypeElement) methodElement.getEnclosingElement(); // Verify common generated code restrictions. if (!isValidInjectAnnotatedMethod(methodElement)) { return; } List<MethodInjectionTarget> methodInjectionTargetList = mapTypeElementToMemberInjectorTargetList.get(enclosingElement); if (methodInjectionTargetList == null) { methodInjectionTargetList = new ArrayList<>(); mapTypeElementToMemberInjectorTargetList.put(enclosingElement, methodInjectionTargetList); } mapTypeToMostDirectSuperTypeThatNeedsInjection(enclosingElement); methodInjectionTargetList.add(createMethodInjectionTarget(methodElement)); }