Class FieldAccessExpr

  • All Implemented Interfaces:
    android.databinding.tool.expr.VersionProvider, android.databinding.tool.processing.scopes.LocationScopeProvider, android.databinding.tool.processing.scopes.ScopeProvider

    public class FieldAccessExpr
    extends MethodBaseExpr
    • Method Detail

      • getGetter

        public Callable getGetter()
      • getInvertibleError

        public java.lang.String getInvertibleError()
        Specified by:
        getInvertibleError in class Expr
        Returns:
        The reason the expression wasn't invertible or null if it was invertible.
      • injectSafeUnboxing

        public void injectSafeUnboxing​(android.databinding.tool.reflection.ModelAnalyzer modelAnalyzer,
                                       ExprModel model)
        Description copied from class: Expr
        Called after experiment model is sealed to avoid NPE problems caused by boxed primitives.
        Specified by:
        injectSafeUnboxing in class Expr
      • getMinApi

        public int getMinApi()
      • isDynamic

        public boolean isDynamic()
        Description copied from class: Expr
        Whether the result of this expression can change or not. For example, 3 + 5 can not change vs 3 + x may change. Default implementations checks children and returns true if any of them returns true
        Overrides:
        isDynamic in class Expr
        Returns:
        True if the result of this expression may change due to variables
      • hasBindableAnnotations

        public boolean hasBindableAnnotations()
      • resolveListeners

        public Expr resolveListeners​(android.databinding.tool.reflection.ModelClass listener,
                                     Expr parent)
        Overrides:
        resolveListeners in class Expr
      • computeUniqueKey

        protected java.lang.String computeUniqueKey()
        Specified by:
        computeUniqueKey in class Expr
      • getBrName

        public java.lang.String getBrName()
      • getDirtyingProperties

        public java.lang.String[] getDirtyingProperties()
        Returns:
        The list of all properties that dirty this expression. This will also contain the the BR identifier for this property if there is one. If the property is not bindable, it will contain an empty list.
      • getBindableDependents

        public java.util.Set<FieldAccessExpr> getBindableDependents()
      • resolveType

        protected android.databinding.tool.reflection.ModelClass resolveType​(android.databinding.tool.reflection.ModelAnalyzer modelAnalyzer)
        Specified by:
        resolveType in class Expr
      • replaceStaticIdentifier

        protected void replaceStaticIdentifier​(android.databinding.tool.reflection.ModelClass staticIdentifierType)
      • asPackage

        protected java.lang.String asPackage()
        Overrides:
        asPackage in class Expr
      • generateCode

        protected android.databinding.tool.writer.KCode generateCode()
        Specified by:
        generateCode in class Expr
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Expr