public class FieldAssignmentExpr extends Expr
@={a.b}
is inverted to @{code a.b = value;}KEY_END, KEY_JOIN, KEY_JOIN_END, KEY_JOIN_START, KEY_START, mChildren, NO_ID
Constructor and Description |
---|
FieldAssignmentExpr(Expr target,
java.lang.String name,
Expr value) |
Modifier and Type | Method and Description |
---|---|
Expr |
cloneToModel(ExprModel model) |
protected java.lang.String |
computeUniqueKey() |
protected java.util.List<Dependency> |
constructDependencies() |
protected android.databinding.tool.writer.KCode |
generateCode() |
protected java.lang.String |
getInvertibleError() |
Expr |
getTarget() |
Expr |
getValueExpr() |
void |
injectSafeUnboxing(ModelAnalyzer modelAnalyzer,
ExprModel model)
Called after experiment model is sealed to avoid NPE problems caused by boxed primitives.
|
protected ModelClass |
resolveType(ModelAnalyzer modelAnalyzer) |
java.util.List<ExecutionPath> |
toExecutionPath(java.util.List<ExecutionPath> paths) |
java.lang.String |
toString() |
addJustMeToExecutionPath, addLocation, asPackage, assertIsInvertible, canBeEvaluatedToAVariable, canBeInvalidated, cloneToModel, considerElevatingConditionals, constructDynamicChildrenDependencies, enableDirectInvalidation, generateInverse, 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, isDynamic, 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, toExecutionPathInOrder, toExecutionPathInOrder, toFullCode, trimShouldReadFlags, unwrapObservableField, updateExpr
protected java.lang.String computeUniqueKey()
computeUniqueKey
in class Expr
public Expr getTarget()
public Expr getValueExpr()
protected ModelClass resolveType(ModelAnalyzer modelAnalyzer)
resolveType
in class Expr
public void injectSafeUnboxing(ModelAnalyzer modelAnalyzer, ExprModel model)
Expr
injectSafeUnboxing
in class Expr
protected java.util.List<Dependency> constructDependencies()
constructDependencies
in class Expr
protected android.databinding.tool.writer.KCode generateCode()
generateCode
in class Expr
public Expr cloneToModel(ExprModel model)
cloneToModel
in class Expr
protected java.lang.String getInvertibleError()
getInvertibleError
in class Expr
public java.util.List<ExecutionPath> toExecutionPath(java.util.List<ExecutionPath> paths)
toExecutionPath
in class Expr