View | Details | Raw Unified | Return to bug 9420
Collapse All | Expand All

(-)AttrPtg_1.1_0.java (-8 / +32 lines)
Lines 191-199 Link Here
191
        return SIZE;
191
        return SIZE;
192
    }
192
    }
193
193
194
    public String toFormulaString()
194
    public String toFormulaString(
195
    {
195
    ) {
196
        return "SUM()";
196
      if(semiVolatile.isSet(field_1_options)) {
197
        return "ATTR(semiVolatile)";
198
      }
199
      if(optiIf.isSet(field_1_options)) {
200
        return "IF";
201
      }
202
      if( optiChoose.isSet(field_1_options)) {
203
        return "CHOOSE";
204
      }
205
      if(optGoto.isSet(field_1_options)) {
206
        return "GOTO";
207
      }
208
      if(sum.isSet(field_1_options)) {
209
        return "SUM";
210
      }
211
      if(baxcel.isSet(field_1_options)) {
212
        return "ATTR(baxcel)";
213
      }
214
      if(space.isSet(field_1_options)) {
215
        return "";
216
      }
217
      return "UNKNOWN ATTRIBUTE";
197
    }
218
    }
198
219
199
    public int getNumberOfOperands()
220
    public int getNumberOfOperands()
Lines 207-215 Link Here
207
    }
228
    }
208
        
229
        
209
    public String toFormulaString(String[] operands) {
230
    public String toFormulaString(String[] operands) {
210
        return "SUM(" + operands[ 0 ] + ")";
231
      if(space.isSet(field_1_options)) {
211
    }    
232
        return operands[ 0 ];
212
    
233
      }
213
 
234
      else {
214
    
235
        return toFormulaString() + "(" + operands[ 0 ] + ")";
236
      }
237
    }
238
215
}
239
}

Return to bug 9420