Пример #1
0
 /**
  * Fixup all function references.
  *
  * @param compiledFunction the Instruction representing this function in the compiled code
  * @throws XPathException if an error occurs.
  */
 private void fixupInstruction(UserFunction compiledFunction) throws XPathException {
   ExpressionVisitor visitor = makeExpressionVisitor();
   try {
     for (UserFunctionCall reference : references) {
       UserFunctionCall call = (reference);
       call.setFunction(compiledFunction);
       call.checkFunctionCall(compiledFunction, visitor);
       call.computeArgumentEvaluationModes();
     }
   } catch (XPathException err) {
     compileError(err);
   }
 }