@Override public int getCost() { int cost = 3; for (Expression e : args) { if (e != null) { cost += e.getCost(); } } return cost; }
@Override public int getCost() { return (on == null) ? 1 : on.getCost() + 1; }
@Override public int getCost() { return condition.getCost(); }
@Override public int getCost() { return expr.getCost(); }
@Override public int getCost() { int cost = left.getCost(); return cost; }
@Override public int getCost() { int cost = 1; for (Expression e : list) { cost += e.getCost(); } return cost; }
@Override public int getCost() { return left.getCost() + query.getCostAsExpression(); }