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:
- 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.
Methods inherited from class android.databinding.tool.expr.Expr |
addJustMeToExecutionPath, addLocation, addTwoWay, assertIsInvertible, canBeEvaluatedToAVariable, canBeInvalidated, computeChildrenKey, considerElevatingConditionals, constructDynamicChildrenDependencies, enableDirectInvalidation, getAllCalculationPaths, getChildren, getDefaultValue, getDependants, getDependencies, getId, getInvalidFlags, getLocations, getModel, getParents, getPredicateInvalidFlags, getReadSoFar, getRequirementFlagIndex, getRequirementId, getResolvedType, getShouldReadFlags, getShouldReadFlagsWithConditionals, getUniqueKey, getVersion, hasConditionalDependant, hasId, hasNestedCannotRead, invalidateReadFlags, isBindingExpression, isConditional, isEqualityCheck, isIsUsedInCallback, isObservable, isRead, isTwoWay, isUsed, join, join, markAsReadIfDone, markAsUsed, markAsUsedInCallback, markFlagsAsRead, onSwappedWith, provideScopeLocation, resetResolvedType, resolveListeners, resolveTwoWayExpressions, setBindingExpression, setId, setModel, setRequirementId, setTwoWay, shouldReadNow, toCode, toCode, toExecutionPath, toExecutionPath, toExecutionPathInOrder, toExecutionPathInOrder, toFullCode, toString, trimShouldReadFlags, updateExpr |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CallbackArgExpr
public CallbackArgExpr(int argIndex,
java.lang.String name)
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(ModelClass modelClass)
resolveType
protected ModelClass resolveType(ModelAnalyzer modelAnalyzer)
- Overrides:
resolveType
in class IdentifierExpr
constructDependencies
protected java.util.List<Dependency> constructDependencies()
- Overrides:
constructDependencies
in class IdentifierExpr
generateCode
protected android.databinding.tool.writer.KCode generateCode(boolean expand)
- Overrides:
generateCode
in class IdentifierExpr
computeUniqueKey
protected java.lang.String computeUniqueKey()
- Overrides:
computeUniqueKey
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.
getName
public java.lang.String getName()
- Overrides:
getName
in class IdentifierExpr