Package org.exist.xquery

Examples of org.exist.xquery.AnalyzeContextInfo


        }
    }

    @Override
  public void analyze(AnalyzeContextInfo contextInfo) throws XPathException {
    cachedContextInfo = new AnalyzeContextInfo(contextInfo);
        super.analyze(cachedContextInfo);
  }
View Full Code Here


      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();
    } catch (final TokenStreamException e) {
      error = e.toString();
    } catch (final XPathException e) {
View Full Code Here

        final List<Expression> params = new ArrayList<Expression>(getArgumentCount() - 1);
        for(int i = 1; i < getArgumentCount(); i++) {
            params.add(getArgument(i));
        }
        ref.setArguments(params);
        ref.analyze(new AnalyzeContextInfo(this, 0));
        // Evaluate the function
        return ref.eval(contextSequence);
    }
View Full Code Here

    final Module module = context.importModule(uri, prefix, location);

    context.getRootContext().resolveForwardReferences();

    if( !module.isInternalModule() ) {
          ((ExternalModule)module).getRootExpression().analyze( new AnalyzeContextInfo() );
        }
   
//    context.getRootContext().analyzeAndOptimizeIfModulesChanged((PathExpr) context.getRootExpression());
  }
View Full Code Here

              context.getProfiler().traceQueryStart();
              pm.queryStarted(context.getWatchDog());
             
              final FunctionCall call = new FunctionCall(context, function);
              call.setArguments(args);
              call.analyze(new AnalyzeContextInfo());
          call.eval(NodeSet.EMPTY_SET);
        }
        } catch(final XPathException e) {
        TriggerStatePerThread.setTriggerRunningState(TriggerStatePerThread.NO_TRIGGER_RUNNING, this, null);
        TriggerStatePerThread.setTransaction(null);
View Full Code Here

TOP

Related Classes of org.exist.xquery.AnalyzeContextInfo

Copyright © 2018 www.massapicom. 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.