public void buildPredicatesEvaluator(Properties namespaces) throws SAXPathException, NotFoundException, CannotCompileException, IllegalAccessException, InstantiationException { AssertArgument.isNotNull(namespaces, "namespaces"); if(predicatesEvaluator != null) { return; } if(step != null) { PredicatesEvaluatorBuilder builder = new PredicatesEvaluatorBuilder(step, attributeStep, this, namespaces); try { predicatesEvaluator = builder.build(); } catch (SAXPathException e) { throw new SAXPathException("Error processing XPath selector expression '" + xpathExpression + "'.", e); } // And update the QNames again now that we have the namespaces... targetElement = toQName(step, builder); if(attributeStep != null) { targetAttribute = toQName(attributeStep, builder); } } else { predicatesEvaluator = PassThruEvaluator.INSTANCE; } }
public void buildPredicatesEvaluator(Properties namespaces) throws SAXPathException, NotFoundException, CannotCompileException, IllegalAccessException, InstantiationException { AssertArgument.isNotNull(namespaces, "namespaces"); if(predicatesEvaluator != null) { return; } if(step != null) { PredicatesEvaluatorBuilder builder = new PredicatesEvaluatorBuilder(step, attributeStep, this, namespaces); try { predicatesEvaluator = builder.build(); } catch (SAXPathException e) { throw new SAXPathException("Error processing XPath selector expression '" + xpathExpression + "'.", e); } // And update the QNames again now that we have the namespaces... targetElement = toQName(step, builder); if(attributeStep != null) { targetAttribute = toQName(attributeStep, builder); } } else { predicatesEvaluator = PassThruEvaluator.INSTANCE; } }
public void buildPredicatesEvaluator(Properties namespaces) throws SAXPathException, NotFoundException, CannotCompileException, IllegalAccessException, InstantiationException { AssertArgument.isNotNull(namespaces, "namespaces"); if(predicatesEvaluator != null) { return; } if(step != null) { PredicatesEvaluatorBuilder builder = new PredicatesEvaluatorBuilder(step, attributeStep, this, namespaces); try { predicatesEvaluator = builder.build(); } catch (SAXPathException e) { throw new SAXPathException("Error processing XPath selector expression '" + xpathExpression + "'.", e); } // And update the QNames again now that we have the namespaces... targetElement = toQName(step, builder); if(attributeStep != null) { targetAttribute = toQName(attributeStep, builder); } } else { predicatesEvaluator = PassThruEvaluator.INSTANCE; } }
public void buildPredicatesEvaluator(Properties namespaces) throws SAXPathException, NotFoundException, CannotCompileException, IllegalAccessException, InstantiationException { AssertArgument.isNotNull(namespaces, "namespaces"); if(predicatesEvaluator != null) { return; } if(step != null) { PredicatesEvaluatorBuilder builder = new PredicatesEvaluatorBuilder(step, attributeStep, this, namespaces); try { predicatesEvaluator = builder.build(); } catch (SAXPathException e) { throw new SAXPathException("Error processing XPath selector expression '" + xpathExpression + "'.", e); } // And update the QNames again now that we have the namespaces... targetElement = toQName(step, builder); if(attributeStep != null) { targetAttribute = toQName(attributeStep, builder); } } else { predicatesEvaluator = PassThruEvaluator.INSTANCE; } }