@Override public int getCost() { int cost = left.getCost(); for (Expression e : valueList) { cost += e.getCost(); } return cost; }
public int getCost() { int cost = javaMethod.hasConnectionParam() ? 25 : 5; for (Expression e : args) { cost += e.getCost(); } return cost; }
@Override public int getCost() { int cost = 5; for (Expression e : args) { cost += e.getCost(); } return cost; }
@Override public int getCost() { int cost = 1; for (Expression e : list) { cost += e.getCost(); } return cost; }
@Override public int getCost() { return (on == null) ? 1 : on.getCost() + 1; }