Class AnnotationAnalyzer


  • public class AnnotationAnalyzer
    extends android.databinding.tool.reflection.ModelAnalyzer
    • Nested Class Summary

      • Nested classes/interfaces inherited from class android.databinding.tool.reflection.ModelAnalyzer

        android.databinding.tool.reflection.ModelAnalyzer.Companion
    • Field Summary

      Fields 
      Modifier and Type Field Description
      javax.annotation.processing.ProcessingEnvironment mProcessingEnv  
      static java.util.Map<java.lang.String,​javax.lang.model.type.TypeKind> PRIMITIVE_TYPES  
      • Fields inherited from class android.databinding.tool.reflection.ModelAnalyzer

        Companion, GENERATED_ANNOTATION, libTypes
    • Constructor Summary

      Constructors 
      Constructor Description
      AnnotationAnalyzer​(javax.annotation.processing.ProcessingEnvironment processingEnvironment, android.databinding.tool.LibTypes libTypes)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TypeUtil createTypeUtil()  
      android.databinding.tool.reflection.ModelClass findClass​(java.lang.Class classType)  
      android.databinding.tool.reflection.ModelClass findClassInternal​(java.lang.String className, android.databinding.tool.reflection.ImportBag imports)  
      protected boolean findGeneratedAnnotation()  
      static AnnotationAnalyzer get()  
      javax.lang.model.util.Elements getElementUtils()  
      javax.annotation.processing.ProcessingEnvironment getProcessingEnv()  
      javax.lang.model.util.Types getTypeUtils()  
      android.databinding.tool.reflection.annotation.AnnotationClass loadPrimitive​(java.lang.String className)  
      • Methods inherited from class android.databinding.tool.reflection.ModelAnalyzer

        checkDataBindingKtx, findClass, findCommonParentOf, findCommonParentOf, getAppCompatResourcesType, getClassFinderCache, getDefaultValue, getHasGeneratedAnnotation, getInstance, getListTypes, getLiveDataType, getMapType, getMutableLiveDataType, getMutableStateFlowDataType, getObjectType, getObservableFieldTypes, getObservableListType, getObservableMapType, getObservableType, getStateFlowType, getStringType, getViewBindingType, getViewDataBindingType, getViewStubProxyType, getViewStubType, injectClass
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PRIMITIVE_TYPES

        public static final java.util.Map<java.lang.String,​javax.lang.model.type.TypeKind> PRIMITIVE_TYPES
      • mProcessingEnv

        public final javax.annotation.processing.ProcessingEnvironment mProcessingEnv
    • Constructor Detail

      • AnnotationAnalyzer

        public AnnotationAnalyzer​(javax.annotation.processing.ProcessingEnvironment processingEnvironment,
                                  android.databinding.tool.LibTypes libTypes)
    • Method Detail

      • loadPrimitive

        public android.databinding.tool.reflection.annotation.AnnotationClass loadPrimitive​(java.lang.String className)
        Specified by:
        loadPrimitive in class android.databinding.tool.reflection.ModelAnalyzer
      • findClassInternal

        public android.databinding.tool.reflection.ModelClass findClassInternal​(java.lang.String className,
                                                                                android.databinding.tool.reflection.ImportBag imports)
        Specified by:
        findClassInternal in class android.databinding.tool.reflection.ModelAnalyzer
      • findClass

        public android.databinding.tool.reflection.ModelClass findClass​(java.lang.Class classType)
        Specified by:
        findClass in class android.databinding.tool.reflection.ModelAnalyzer
      • getTypeUtils

        public javax.lang.model.util.Types getTypeUtils()
      • getElementUtils

        public javax.lang.model.util.Elements getElementUtils()
      • getProcessingEnv

        public javax.annotation.processing.ProcessingEnvironment getProcessingEnv()
      • createTypeUtil

        public TypeUtil createTypeUtil()
        Specified by:
        createTypeUtil in class android.databinding.tool.reflection.ModelAnalyzer
      • findGeneratedAnnotation

        protected boolean findGeneratedAnnotation()
        Specified by:
        findGeneratedAnnotation in class android.databinding.tool.reflection.ModelAnalyzer