/** * Get the original pattern text */ public String toString() { if (originalText != null) { return originalText; } else { return "pattern matching " + getNodeTest().toString(); } }
/** * Get the original pattern text */ public String toString() { if (originalText != null) { return originalText; } else { return "pattern matching " + getNodeTest().toString(); } }
/** * Get the original pattern text */ public String toString() { if (originalText != null) { return originalText; } else { return "pattern matching " + getNodeTest().toString(); } }
use = makeExpressionVisitor().typeCheck(use, match.getNodeTest());
use = makeExpressionVisitor().typeCheck(use, match.getNodeTest());
public void validate() throws XPathException { stackFrameMap = getConfiguration().makeSlotManager(); checkTopLevel(null); // the check for duplicates is now done in the buildIndexes() method of XSLStylesheet if (match != null) { match = typeCheck("match", match); if (match.getNodeTest() instanceof EmptySequenceTest) { try { getConfiguration().getErrorListener().warning( new TransformerException("Match pattern cannot match any nodes", this)); } catch (TransformerException e) { compileError(XPathException.makeXPathException(e)); } } } // See if there are any required parameters. AxisIterator kids = iterateAxis(Axis.CHILD); while(true) { NodeInfo param = (NodeInfo)kids.next(); if (param == null) { break; } if (param instanceof XSLParam && ((XSLParam)param).isRequiredParam()) { hasRequiredParams = true; break; } } }
public void validate() throws XPathException { stackFrameMap = getConfiguration().makeSlotManager(); checkTopLevel(null); // the check for duplicates is now done in the buildIndexes() method of XSLStylesheet if (match != null) { match = typeCheck("match", match); if (match.getNodeTest() instanceof EmptySequenceTest) { try { getConfiguration().getErrorListener().warning( new TransformerException("Match pattern cannot match any nodes", this)); } catch (TransformerException e) { compileError(XPathException.makeXPathException(e)); } } } markTailCalls(); // See if there are any required parameters AxisIterator declaredParams = iterateAxis(Axis.CHILD); while(true) { NodeInfo param = (NodeInfo)declaredParams.next(); if (param == null) { break; } if (param instanceof XSLParam && ((XSLParam)param).isRequiredParam()) { hasRequiredParams = true; break; } } }
filter = count.getNodeTest(); } else if (from.getNodeKind() == Type.ELEMENT && count.getNodeKind() == Type.ELEMENT) { filter = NodeKindTest.ELEMENT;
filter = count.getNodeTest(); } else if (from.getNodeKind() == Type.ELEMENT && count.getNodeKind() == Type.ELEMENT) { filter = NodeKindTest.ELEMENT;
public void validate() throws XPathException { stackFrameMap = getConfiguration().makeSlotManager(); checkTopLevel(null); // the check for duplicates is now done in the buildIndexes() method of XSLStylesheet if (match != null) { match = typeCheck("match", match); if (match.getNodeTest() instanceof EmptySequenceTest) { try { getConfiguration().getErrorListener().warning( new TransformerException("Match pattern cannot match any nodes", this)); } catch (TransformerException e) { compileError(XPathException.makeXPathException(e)); } } } markTailCalls(); // See if there are any required parameters AxisIterator declaredParams = iterateAxis(Axis.CHILD); while(true) { NodeInfo param = (NodeInfo)declaredParams.next(); if (param == null) { break; } if (param instanceof XSLParam && ((XSLParam)param).isRequiredParam()) { hasRequiredParams = true; break; } } }
target.iterateAxis(Axis.PRECEDING_SIBLING, count.getNodeTest());
target.iterateAxis(Axis.PRECEDING_SIBLING, count.getNodeTest());
if (p.getNodeTest() instanceof EmptySequenceTest) { return;
if (p.getNodeTest() instanceof EmptySequenceTest) { return;
if (p.getNodeTest() instanceof EmptySequenceTest) { return;
Expression exp = visitor.typeCheck(step, parentPattern.getNodeTest()); refinedNodeTest = (NodeTest) exp.getItemType(th); } else if (ancestorPattern != null) {
Expression exp = visitor.typeCheck(step, parentPattern.getNodeTest()); refinedNodeTest = (NodeTest) exp.getItemType(th); } else if (ancestorPattern != null) {
if (getObjectName() == null) { contextItemType = match.getNodeTest();
false, role, makeExpressionVisitor()); use = makeExpressionVisitor().typeCheck(use, match.getNodeTest());
false, role, makeExpressionVisitor()); use = makeExpressionVisitor().typeCheck(use, match.getNodeTest());