Examples of XQueryAST


Examples of org.exist.xquery.parser.XQueryAST

      contextInfo.addFlag(SINGLE_STEP_EXECUTION);
      resolvedFunction.analyze(contextInfo);
  }

  public static FunctionCall lookupFunction(Expression self, XQueryContext context, QName funcName, int arity) throws XPathException {
    final XQueryAST ast = new XQueryAST();
    ast.setLine(self.getLine());
    ast.setColumn(self.getColumn());
    final List<Expression> args = new ArrayList<Expression>(arity);
    for (int i = 0; i < arity; i++) {
      args.add(new Function.Placeholder(context));
    }
    final Expression fun = FunctionFactory.createFunction(context, funcName, ast, null, args, false);
View Full Code Here

Examples of org.exist.xquery.parser.XQueryAST

                    if (signature.isOverloaded())
                        {arity = signature.getArgumentTypes().length;}
                    else
                        {arity = signature.getArgumentCount();}
                    final FunctionDef def = ((InternalModule)module).getFunctionDef(signature.getName(), arity);
                    final XQueryAST ast = new XQueryAST();
                    ast.setLine(getLine());
                    ast.setColumn(getColumn());
                    final List<Expression> args = new ArrayList<Expression>(arity);
                    for (int i = 0; i < arity; i++) {
                        args.add(new Function.Placeholder(context));
                    }
                    final Function fn = Function.createFunction(tempContext, ast, def);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.