android.databinding.tool.expr
Class TernaryExpr

java.lang.Object
  extended by android.databinding.tool.expr.Expr
      extended by android.databinding.tool.expr.TernaryExpr
All Implemented Interfaces:
VersionProvider, android.databinding.tool.processing.scopes.LocationScopeProvider, android.databinding.tool.processing.scopes.ScopeProvider

public class TernaryExpr
extends Expr


Field Summary
 
Fields inherited from class android.databinding.tool.expr.Expr
KEY_JOIN, mChildren, NO_ID
 
Method Summary
protected  java.lang.String computeUniqueKey()
           
protected  java.util.List<Dependency> constructDependencies()
           
protected  android.databinding.tool.writer.KCode generateCode(boolean expand)
           
 Expr getIfFalse()
           
 Expr getIfTrue()
           
 java.lang.String getInvertibleError()
           
 Expr getPred()
           
protected  java.util.BitSet getPredicateInvalidFlags()
           
 boolean isConditional()
           
protected  ModelClass resolveType(ModelAnalyzer modelAnalyzer)
           
 java.util.List<ExecutionPath> toExecutionPath(java.util.List<ExecutionPath> paths)
           
 android.databinding.tool.writer.KCode toInverseCode(android.databinding.tool.writer.KCode variable)
           
 
Methods inherited from class android.databinding.tool.expr.Expr
addJustMeToExecutionPath, addLocation, addTwoWay, asPackage, assertIsInvertible, canBeEvaluatedToAVariable, canBeInvalidated, computeChildrenKey, considerElevatingConditionals, constructDynamicChildrenDependencies, enableDirectInvalidation, getAllCalculationPaths, getChildren, getDefaultValue, getDependants, getDependencies, getId, getInvalidFlags, getLocations, getModel, getParents, getReadSoFar, getRequirementFlagIndex, getRequirementId, getResolvedType, getShouldReadFlags, getShouldReadFlagsWithConditionals, getUniqueKey, getVersion, hasConditionalDependant, hasId, hasNestedCannotRead, invalidateReadFlags, isBindingExpression, isDynamic, 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, toExecutionPathInOrder, toExecutionPathInOrder, toFullCode, toString, trimShouldReadFlags, updateExpr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getPred

public Expr getPred()

getIfTrue

public Expr getIfTrue()

getIfFalse

public Expr getIfFalse()

computeUniqueKey

protected java.lang.String computeUniqueKey()
Overrides:
computeUniqueKey in class Expr

getInvertibleError

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

resolveType

protected ModelClass resolveType(ModelAnalyzer modelAnalyzer)
Specified by:
resolveType in class Expr

constructDependencies

protected java.util.List<Dependency> constructDependencies()
Specified by:
constructDependencies in class Expr

toExecutionPath

public java.util.List<ExecutionPath> toExecutionPath(java.util.List<ExecutionPath> paths)
Overrides:
toExecutionPath in class Expr

getPredicateInvalidFlags

protected java.util.BitSet getPredicateInvalidFlags()
Overrides:
getPredicateInvalidFlags in class Expr

generateCode

protected android.databinding.tool.writer.KCode generateCode(boolean expand)
Specified by:
generateCode in class Expr

toInverseCode

public android.databinding.tool.writer.KCode toInverseCode(android.databinding.tool.writer.KCode variable)
Overrides:
toInverseCode in class Expr

isConditional

public boolean isConditional()
Overrides:
isConditional in class Expr