public void function(int function, int numOfChildren) { CompiledValue[] cvArr = new CompiledValue[numOfChildren]; for (int i = numOfChildren - 1; i >= 0; i--) { cvArr[i] = (CompiledValue) pop(); } push(new CompiledFunction(cvArr, function)); }
@Override public Object evaluate(ExecutionContext context) throws FunctionDomainException, TypeMismatchException, NameResolutionException, QueryInvocationTargetException { if (this._function == LITERAL_element) { Object arg = _args[0].evaluate(context); return call(arg, context); } else if (this._function == LITERAL_nvl) { return Functions.nvl(_args[0], _args[1], context); } else if (this._function == LITERAL_to_date) { return Functions.to_date(_args[0], _args[1], context); } else { throw new QueryInvalidException( "UnSupported function was used in the query"); } }
CompiledValue[] cvArray = cf.getArguments(); int function = cf.getFunction(); int len = cvArray.length; CompiledValue[] newCvArray = new CompiledValue[len]; return new CompiledFunction(newCvArray, function);
new CompiledConstruction(Object.class, new ArrayList()), new CompiledDivision(compiledValue1, compiledValue2, 13), new CompiledFunction(new CompiledValue[] {compiledValue1, compiledValue2}, 13), new CompiledGroupBySelect(true, true, compiledValue1, new ArrayList(), new ArrayList(), new ArrayList<>(), compiledValue2, new ArrayList<>(), new ArrayList<>(),