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