Package android.databinding.tool.expr
Class CallbackArgExpr
- java.lang.Object
-
- android.databinding.tool.expr.Expr
-
- android.databinding.tool.expr.IdentifierExpr
-
- android.databinding.tool.expr.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.-
-
Field Summary
-
Fields inherited from class android.databinding.tool.expr.Expr
KEY_END, KEY_JOIN, KEY_JOIN_END, KEY_JOIN_START, KEY_START, mChildren, NO_ID
-
-
Constructor Summary
Constructors Constructor Description CallbackArgExpr(int argIndex, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExprcloneToModel(ExprModel model)protected java.lang.StringcomputeUniqueKey()protected java.util.List<Dependency>constructDependencies()protected android.databinding.tool.writer.KCodegenerateCode()java.lang.StringgetInvertibleError()java.lang.StringgetName()booleanisDynamic()Whether the result of this expression can change or not.protected android.databinding.tool.reflection.ModelClassresolveType(android.databinding.tool.reflection.ModelAnalyzer modelAnalyzer)voidsetClassFromCallback(android.databinding.tool.reflection.ModelClass modelClass)-
Methods inherited from class android.databinding.tool.expr.IdentifierExpr
asPackage, generateInverse, getUserDefinedType, injectSafeUnboxing, isDeclared, setDeclared, setUserDefinedType, toString
-
Methods inherited from class android.databinding.tool.expr.Expr
addJustMeToExecutionPath, addLocation, assertIsInvertible, canBeEvaluatedToAVariable, canBeInvalidated, cloneToModel, considerElevatingConditionals, constructDynamicChildrenDependencies, enableDirectInvalidation, getAllCalculationPaths, getChildren, getDefaultValue, getDependants, getDependencies, getId, getInvalidFlags, getLocations, getModel, getParents, getPredicateInvalidFlags, getReadSoFar, getRequirementFlagIndex, getRequirementId, getResolvedType, getShouldReadFlags, getShouldReadFlagsWithConditionals, getUniqueKey, getUpdateRegistrationCall, getVersion, hasConditionalDependant, hasId, hasNestedCannotRead, invalidateReadFlags, isBindingExpression, isConditional, isEqualityCheck, isIsUsedInCallback, isObservable, isRead, isUsed, join, join, markAsBindingExpression, markAsReadIfDone, markAsUsed, markAsUsedInCallback, markFlagsAsRead, onSwappedWith, provideScopeLocation, recursivelyInjectSafeUnboxing, resetResolvedType, resolveListeners, resolveTwoWayExpressions, safeUnboxChild, setId, setModel, setRequirementId, setUnwrapObservableFields, shouldReadNow, toCode, toExecutionPath, toExecutionPath, toExecutionPathInOrder, toExecutionPathInOrder, toFullCode, trimShouldReadFlags, unwrapChildTo, unwrapObservableField, unwrapObservableFieldChildren, updateExpr
-
-
-
-
Method Detail
-
isDynamic
public boolean isDynamic()
Description copied from class:ExprWhether 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:
isDynamicin classIdentifierExpr- 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:
resolveTypein classIdentifierExpr
-
constructDependencies
protected java.util.List<Dependency> constructDependencies()
- Overrides:
constructDependenciesin classIdentifierExpr
-
generateCode
protected android.databinding.tool.writer.KCode generateCode()
- Overrides:
generateCodein classIdentifierExpr
-
computeUniqueKey
protected java.lang.String computeUniqueKey()
- Overrides:
computeUniqueKeyin classIdentifierExpr
-
getInvertibleError
public java.lang.String getInvertibleError()
- Overrides:
getInvertibleErrorin classIdentifierExpr- Returns:
- The reason the expression wasn't invertible or null if it was invertible.
-
getName
public java.lang.String getName()
- Overrides:
getNamein classIdentifierExpr
-
cloneToModel
public Expr cloneToModel(ExprModel model)
- Overrides:
cloneToModelin classIdentifierExpr
-
-