butterknife icon indicating copy to clipboard operation
butterknife copied to clipboard

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

Open 594238813 opened this issue 4 years ago • 5 comments

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 extends Annotation> A getAnnotation(Class<A> annotationClass)

594238813 avatar Jan 04 '21 15:01 594238813

@JakeWharton

594238813 avatar Jan 05 '21 06:01 594238813

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

JakeWharton avatar Jan 06 '21 14:01 JakeWharton

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 avatar Jan 08 '21 14:01 594238813

hello~😀

594238813 avatar Jan 12 '21 02:01 594238813

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

594238813 avatar Jan 14 '21 02:01 594238813