Home | History | Annotate | Download | only in expr

Lines Matching refs:Expr

17 package android.databinding.tool.expr;
38 abstract public class Expr implements VersionProvider, LocationScopeProvider {
41 protected List<Expr> mChildren = new ArrayList<Expr>();
43 // any expression that refers to this. Useful if this expr is duplicate and being replaced
44 private List<Expr> mParents = new ArrayList<Expr>();
103 Expr(Iterable<Expr> children) {
104 for (Expr expr : children) {
105 mChildren.add(expr);
110 Expr(Expr... children) {
166 return true; // anything except arg expr can be evaluated to a variable
173 public Expr resolveListeners(ModelClass valueType, Expr parent) {
175 Expr child = mChildren.get(i);
182 public Expr resolveTwoWayExpressions(Expr parent) {
184 final Expr child = mChildren.get(i);
278 for (Expr expr : mChildren) {
279 expr.mParents.add(this);
283 public void onSwappedWith(Expr existing) {
284 for (Expr child : mChildren) {
289 private void onParentSwapped(Expr oldParent, Expr newParent) {
295 public List<Expr> getChildren() {
299 public List<Expr> getParents() {
320 for (Expr expr : mChildren) {
321 if (expr.isDynamic()) {
354 for (Expr node : mChildren) {
452 public boolean considerElevatingConditionals(Expr justRead) {
504 // for predicate flags, this expr may already be calculated to get the predicate
511 final Expr expr = mModel.findFlagExpression(i);
512 if (expr == null) {
515 if (!expr.isConditional()) {
519 final BitSet readForConditional = (BitSet) expr.findConditionalFlags().clone();
542 Preconditions.check(isConditional(), "should not call this on a non-conditional expr");
587 final Expr dependant = dependency.getDependant();
615 public boolean shouldReadNow(final List<Expr> justRead) {
635 for (Expr child : getChildren()) {
645 final Map<String, Expr> exprMap = mModel.getExprMap();
647 final Expr parent = mParents.get(i);
652 for (Expr child : mChildren) {
668 protected static String join(List<Expr> items) {
727 Expr dependant = dependency.getDependant();