Examples of foundErrors()


Examples of org.exist.xquery.parser.XQueryTreeParser.foundErrors()

            }
            final AST ast = parser.getAST();
            LOG.debug("generated AST: " + ast.toStringTree());
            expr = new PathExpr(context);
            treeParser.xpath(ast, expr);
            if (treeParser.foundErrors()) {
                LOG.debug(treeParser.getErrorMessage());
            }
            expr.analyze(new AnalyzeContextInfo());
            for (final SequenceIterator i = other.iterate(); i.hasNext();) {
                final NodeProxy p = (NodeProxy) i.nextItem();
View Full Code Here

Examples of org.exist.xquery.parser.XQueryTreeParser.foundErrors()

                treeParser.xpointer(ast, expr);
            } else {
                treeParser.xpath(ast, expr);
            }
           
            if(treeParser.foundErrors()) {
                //AST treeAst = treeParser.getAST();
                throw new StaticXQueryException(ast.getLine(), ast.getColumn(), treeParser.getErrorMessage(), treeParser.getLastException());
            }
           
            context.getRootContext().resolveForwardReferences();
View Full Code Here

Examples of org.exist.xquery.parser.XQueryTreeParser.foundErrors()

      }
      final AST ast = parser.getAST();
     
      final PathExpr path = new PathExpr(pContext);
      astParser.xpath(ast, path);
      if(astParser.foundErrors()) {
        throw astParser.getLastException();
      }
      path.analyze(new AnalyzeContextInfo());
    } catch (final RecognitionException e) {     
      error = e.toString();
View Full Code Here

Examples of org.exist.xquery.parser.XQueryTreeParser.foundErrors()

        AST ast = xparser.getAST();
        System.out.println("generated AST: " + ast.toStringTree());
 
        PathExpr expr = new PathExpr(context);
        treeParser.xpath(ast, expr);
        if (treeParser.foundErrors()) {
          System.err.println(treeParser.getErrorMessage());
          return;
        }
        expr.analyze(new AnalyzeContextInfo());
        // execute the query
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.