ufc.setFunctionName(functionName); ufc.setArguments(arguments); unboundFunctionCalls.add(ufc);
ufc.setFunctionName(functionName.getComponentName()); ufc.setArguments(arguments); unboundFunctionReferences.add(ufc);
ufc.setFunctionName(functionName); ufc.setArguments(arguments); unboundFunctionCalls.add(ufc);
ufc.setFunctionName(functionName.getComponentName()); ufc.setArguments(arguments); unboundFunctionReferences.add(ufc);
/** * Bind a function, given the URI and local parts of the function name, * and the list of expressions supplied as arguments. This method is called at compile * time. * * @param functionName The name of the function to be called * @param staticArgs The expressions supplied statically in the function call. The intention is * that the static type of the arguments (obtainable via getItemType() and getCardinality() may * be used as part of the binding algorithm. * @param env the static evaluation context * @param reasons If no matching function is found by the function library, it may add * a diagnostic explanation to this list explaining why none of the available * functions could be used. * @return An object representing the extension function to be called, if one is found; * null if no extension function was found matching the required name and arity. */ public Expression bind(SymbolicName.F functionName, Expression[] staticArgs, StaticContext env, List<String> reasons) { UserFunction fn = functions.get(functionName); if (fn == null) { return null; } UserFunctionCall fc = new UserFunctionCall(); fc.setFunctionName(functionName.getComponentName()); fc.setArguments(staticArgs); fc.setFunction(fn); fc.setStaticType(fn.getResultType()); return fc; }
/** * Bind a function, given the URI and local parts of the function name, * and the list of expressions supplied as arguments. This method is called at compile * time. * * @param functionName The name of the function to be called * @param staticArgs The expressions supplied statically in the function call. The intention is * that the static type of the arguments (obtainable via getItemType() and getCardinality() may * be used as part of the binding algorithm. * @param env the static evaluation context * @param reasons If no matching function is found by the function library, it may add * a diagnostic explanation to this list explaining why none of the available * functions could be used. * @return An object representing the extension function to be called, if one is found; * null if no extension function was found matching the required name and arity. */ public Expression bind(SymbolicName.F functionName, Expression[] staticArgs, StaticContext env, List<String> reasons) { UserFunction fn = functions.get(functionName); if (fn == null) { return null; } UserFunctionCall fc = new UserFunctionCall(); fc.setFunctionName(functionName.getComponentName()); fc.setArguments(staticArgs); fc.setFunction(fn); fc.setStaticType(fn.getResultType()); return fc; }
fc.setFunctionName(functionName); fc.setArguments(staticArgs); fc.setFunction(fn);
fc.setFunctionName(functionName); fc.setArguments(staticArgs); fc.setConfirmed(true);
fc.setFunctionName(functionName); fc.setArguments(staticArgs); fc.setFunction(fn);
fc.setFunctionName(functionName); fc.setArguments(staticArgs); fc.setConfirmed(true);
ufc.setFunctionName(fd.getFunctionName()); ufc.setArguments(arguments); ufc.setStaticType(fd.getResultType());
ufc.setFunctionName(fd.getFunctionName()); ufc.setArguments(arguments); ufc.setStaticType(fd.getResultType());
if (fd != null) { UserFunctionCall ufc = new UserFunctionCall(); ufc.setFunctionName(fd.getFunctionName()); ufc.setArguments(arguments); ufc.setStaticType(fd.getResultType());
if (fd != null) { UserFunctionCall ufc = new UserFunctionCall(); ufc.setFunctionName(fd.getFunctionName()); ufc.setArguments(arguments); ufc.setStaticType(fd.getResultType());
fc.setFunctionName(functionName.getComponentName()); fc.setArguments(staticArgs); fc.setFunction(fn);
fc.setFunctionName(functionName.getComponentName()); fc.setArguments(staticArgs); fc.setFunction(fn);