コード例 #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;
 }