requiredContextItemType = sqc.getRequiredContextItemType(); isUpdating = sqc.isUpdatingEnabled(); codeInjector = sqc.getCodeInjector();
requiredContextItemType = sqc.getRequiredContextItemType(); isUpdating = sqc.isUpdatingEnabled(); codeInjector = sqc.getCodeInjector();
return (T) getDefaultStaticQueryContext().getRequiredContextItemType();
return (T) getDefaultStaticQueryContext().getRequiredContextItemType();
private XPathContextMajor initialContext(DynamicQueryContext dynamicEnv, Controller controller) throws XPathException { Item contextItem = dynamicEnv.getContextItem(); controller.defineGlobalParameters(); XPathContextMajor context = controller.newXPathContext(); if (contextItem != null) { if (!staticContext.getUserQueryContext().getRequiredContextItemType().matchesItem( contextItem, false, dynamicEnv.getConfiguration())) { throw new XPathException("The supplied context item does not match the required context item type"); } UnfailingIterator single = SingletonIterator.makeIterator(contextItem); single.next(); context.setCurrentIterator(single); controller.setInitialContextItem(contextItem); } return context; }
private XPathContextMajor initialContext(DynamicQueryContext dynamicEnv, Controller controller) throws XPathException { Item contextItem = dynamicEnv.getContextItem(); controller.defineGlobalParameters(); XPathContextMajor context = controller.newXPathContext(); if (contextItem != null) { if (!staticContext.getUserQueryContext().getRequiredContextItemType().matchesItem( contextItem, false, dynamicEnv.getConfiguration())) { throw new XPathException("The supplied context item does not match the required context item type"); } UnfailingIterator single = SingletonIterator.makeIterator(contextItem); single.next(); context.setCurrentIterator(single); controller.setInitialContextItem(contextItem); } return context; }
visitor.setExecutable(exec); exp = visitor.simplify(exp); exp = visitor.typeCheck(exp, mainModule.getUserQueryContext().getRequiredContextItemType());
exp = visitor.simplify(exp); exp.checkForUpdatingSubexpressions(); exp = visitor.typeCheck(exp, mainModule.getUserQueryContext().getRequiredContextItemType());
if (!staticContext.getUserQueryContext().getRequiredContextItemType().matchesItem( contextItem, false, env.getConfiguration())) { throw new XPathException("The supplied context item does not match the required context item type");
if (!staticContext.getUserQueryContext().getRequiredContextItemType().matchesItem( contextItem, false, env.getConfiguration())) { throw new XPathException("The supplied context item does not match the required context item type");
exp = exp.simplify(); exp.checkForUpdatingSubexpressions(); ContextItemStaticInfo cit = config.makeContextItemStaticInfo(mainModule.getUserQueryContext().getRequiredContextItemType(), true); Expression e2 = exp.typeCheck(visitor, cit); if (e2 != exp) {