Class CallbackArgExpr

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

    public class CallbackArgExpr
    extends IdentifierExpr
    This expressions that are used to reference arguments in callbacks.

    • Constructor Detail

      • CallbackArgExpr

        public CallbackArgExpr​(int argIndex,
                               java.lang.String name)
    • Method Detail

      • 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 IdentifierExpr
        Returns:
        True if the result of this expression may change due to variables
      • setClassFromCallback

        public void setClassFromCallback​(android.databinding.tool.reflection.ModelClass modelClass)
      • resolveType

        protected android.databinding.tool.reflection.ModelClass resolveType​(android.databinding.tool.reflection.ModelAnalyzer modelAnalyzer)
        Overrides:
        resolveType in class IdentifierExpr
      • getInvertibleError

        public java.lang.String getInvertibleError()
        Overrides:
        getInvertibleError in class IdentifierExpr
        Returns:
        The reason the expression wasn't invertible or null if it was invertible.