android.databinding.tool.expr
Class FieldAccessExpr

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

public class FieldAccessExpr
extends Expr


Field Summary
 
Fields inherited from class android.databinding.tool.expr.Expr
KEY_JOIN, mChildren, NO_ID
 
Method Summary
protected  java.lang.String asPackage()
           
protected  java.lang.String computeUniqueKey()
           
protected  java.util.List<Dependency> constructDependencies()
           
protected  android.databinding.tool.writer.KCode generateCode(boolean expand)
           
 java.lang.String getBrName()
           
 Expr getChild()
           
 Callable getGetter()
           
 java.lang.String getInvertibleError()
           
 int getMinApi()
           
 java.lang.String getName()
           
 boolean hasBindableAnnotations()
           
 boolean isDynamic()
          Whether the result of this expression can change or not.
 Expr resolveListeners(ModelClass listener, Expr parent)
           
 Expr resolveTwoWayExpressions(Expr parent)
           
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 value)
           
 void updateExpr(ModelAnalyzer modelAnalyzer)
           
 
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, setBindingExpression, setId, setModel, setRequirementId, setTwoWay, shouldReadNow, toCode, toCode, toExecutionPath, toExecutionPathInOrder, toExecutionPathInOrder, toFullCode, toString, trimShouldReadFlags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getChild

public Expr getChild()

getGetter

public Callable getGetter()

toExecutionPath

public java.util.List<ExecutionPath> toExecutionPath(java.util.List<ExecutionPath> paths)
Overrides:
toExecutionPath 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.

getMinApi

public int getMinApi()

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 Expr
Returns:
True if the result of this expression may change due to variables

hasBindableAnnotations

public boolean hasBindableAnnotations()

resolveListeners

public Expr resolveListeners(ModelClass listener,
                             Expr parent)
Overrides:
resolveListeners in class Expr

constructDependencies

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

computeUniqueKey

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

getName

public java.lang.String getName()

getBrName

public java.lang.String getBrName()

updateExpr

public void updateExpr(ModelAnalyzer modelAnalyzer)
Overrides:
updateExpr in class Expr

resolveType

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

resolveTwoWayExpressions

public Expr resolveTwoWayExpressions(Expr parent)
Overrides:
resolveTwoWayExpressions in class Expr

asPackage

protected java.lang.String asPackage()
Overrides:
asPackage 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 value)
Overrides:
toInverseCode in class Expr