示例#1
0
 private void initType(ExpressionValue ev) {
   if (ev.isBooleanValue()) {
     isBooleanFunction = true;
   } else if (ev.isNumberValue()) {
     isBooleanFunction = false;
   } else if (ev instanceof FunctionNVar) {
     expression = ((FunctionNVar) ev).getExpression();
     fVars = ((FunctionNVar) ev).getFunctionVariables();
   } else {
     Application.debug(
         "InvalidFunction:"
             + expression.toString()
             + " "
             + ev.toString()
             + ev.getClass().getName());
     throw new MyError(kernel.getApplication(), "InvalidFunction");
   }
 }
示例#2
0
 public String toString() {
   return expression.toString();
 }