public class LambdaExpr extends Expr
KEY_END, KEY_JOIN, KEY_JOIN_END, KEY_JOIN_START, KEY_START, mChildren, NO_ID
Constructor and Description |
---|
LambdaExpr(Expr expr,
CallbackExprModel callbackExprModel) |
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() |
java.lang.String |
generateConstructor() |
CallbackExprModel |
getCallbackExprModel() |
int |
getCallbackId() |
CallbackWrapper |
getCallbackWrapper() |
ExecutionPath |
getExecutionPath() |
Expr |
getExpr() |
protected java.lang.String |
getInvertibleError() |
void |
injectSafeUnboxing(ModelAnalyzer modelAnalyzer,
ExprModel model)
Called after experiment model is sealed to avoid NPE problems caused by boxed primitives.
|
boolean |
isDynamic()
Whether the result of this expression can change or not.
|
void |
markAsUsed() |
Expr |
resolveListeners(ModelClass valueType,
Expr parent) |
protected ModelClass |
resolveType(ModelAnalyzer modelAnalyzer) |
void |
setup(ModelClass klass,
ModelMethod method,
int callbackId) |
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, isEqualityCheck, isIsUsedInCallback, isObservable, isRead, isUsed, join, join, markAsBindingExpression, markAsReadIfDone, markAsUsedInCallback, markFlagsAsRead, onSwappedWith, provideScopeLocation, recursivelyInjectSafeUnboxing, resetResolvedType, resolveTwoWayExpressions, safeUnboxChild, setId, setModel, setRequirementId, setUnwrapObservableFields, shouldReadNow, toCode, toExecutionPath, toExecutionPathInOrder, toExecutionPathInOrder, toFullCode, trimShouldReadFlags, unwrapObservableField, updateExpr
public LambdaExpr(Expr expr, CallbackExprModel callbackExprModel)
public Expr getExpr()
public CallbackExprModel getCallbackExprModel()
protected ModelClass resolveType(ModelAnalyzer modelAnalyzer)
resolveType
in class Expr
protected java.util.List<Dependency> constructDependencies()
constructDependencies
in class Expr
public CallbackWrapper getCallbackWrapper()
public Expr resolveListeners(ModelClass valueType, Expr parent)
resolveListeners
in class Expr
protected java.lang.String computeUniqueKey()
computeUniqueKey
in class Expr
public boolean isDynamic()
Expr
public void injectSafeUnboxing(ModelAnalyzer modelAnalyzer, ExprModel model)
Expr
injectSafeUnboxing
in class Expr
protected android.databinding.tool.writer.KCode generateCode()
generateCode
in class Expr
public Expr cloneToModel(ExprModel model)
cloneToModel
in class Expr
public java.lang.String generateConstructor()
public void markAsUsed()
markAsUsed
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
public final ExecutionPath getExecutionPath()
public int getCallbackId()
public void setup(ModelClass klass, ModelMethod method, int callbackId)