Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

findBindingInfoForType(..) I don't understand debug into this fun #1645

Open
594238813 opened this issue Jan 4, 2021 · 5 comments
Open

findBindingInfoForType(..) I don't understand debug into this fun #1645

594238813 opened this issue Jan 4, 2021 · 5 comments

Comments

@594238813
Copy link

I made a lot of class and supper class ,can not debug into this fun
Please make one for me .thx

Maybe I don't know this public A getAnnotation(Class annotationClass)

@594238813
Copy link
Author

@JakeWharton

@JakeWharton
Copy link
Owner

I don't know what you're asking, but this project is in maintenance mode. Consider switching to view binding.

@594238813
Copy link
Author

594238813 commented Jan 8, 2021

q1

findAllSupertypeBindings()

processedInThisRound      All  has  @BindXXX   class

     for(..) {  
        //process superclass before subclass  ...
      Deque<TypeElement> superClasses = new ArrayDeque<>();
        TypeElement superClass = getSuperClass(typeElement);

       A  class   superclass  is  Object 
      SimpleActivity  superclass   is   Activity   -> ContextThemeWrapper ...

       they're all    Object    or    Activity->ContextThemeWrapper   in  deque


     while (!superClasses.isEmpty()) {
          ClasspathBindingSet classpathBinding =
            findBindingInfoForType(superclass, requireViewInConstructor, supportedAnnotations,
                parentHasConstructorWithView);

         findBindingInfoForType(TypeElement typeElement,  ..  ){
                 for (){
                   for (){
                      typeElement is  Object  ,     Object(),getClass(),hashCode()
                      
                      search OnClick  OnCheckedChanged   in superClass  Object       ??? 
                      this function  all ways null   ,  classpathBinding  = null      ???
 
                      maybe i didnt think of it ,maybe my step was wrong
           }

      }
    }

@594238813
Copy link
Author

594238813 commented Jan 12, 2021

hello~😀

@594238813
Copy link
Author

hello brother~
你好 兄弟~
お兄さん ~
Can you t teach me 😭 @JakeWharton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants