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"); } }
byte[] getBytes() throws Exception { return ExpressionValue.getBytes(getObject(), getDataType()); }