Home
last modified time | relevance | path

Searched refs:xctxt (Results 1 – 25 of 119) sorted by relevance

12345

/external/apache-xml/src/main/java/org/apache/xpath/
DExpression.java91 public XObject execute(XPathContext xctxt, int currentNode) in execute() argument
96 return execute(xctxt); in execute()
115 XPathContext xctxt, int currentNode, DTM dtm, int expType) in execute() argument
120 return execute(xctxt); in execute()
135 public abstract XObject execute(XPathContext xctxt) in execute() argument
152 public XObject execute(XPathContext xctxt, boolean destructiveOK) in execute() argument
155 return execute(xctxt); in execute()
168 public double num(XPathContext xctxt) in num() argument
171 return execute(xctxt).num(); in num()
183 public boolean bool(XPathContext xctxt) in bool() argument
[all …]
DXPath.java299 XPathContext xctxt, org.w3c.dom.Node contextNode, in execute() argument
304 xctxt, xctxt.getDTMHandleFromNode(contextNode), in execute()
325 XPathContext xctxt, int contextNode, PrefixResolver namespaceContext) in execute() argument
329 xctxt.pushNamespaceContext(namespaceContext); in execute()
331 xctxt.pushCurrentNodeAndExpression(contextNode, contextNode); in execute()
337 xobj = m_mainExp.execute(xctxt); in execute()
342 ErrorListener el = xctxt.getErrorListener(); in execute()
367 ErrorListener el = xctxt.getErrorListener(); in execute()
378 xctxt.popNamespaceContext(); in execute()
380 xctxt.popCurrentNodeAndExpression(); in execute()
[all …]
DVariableStack.java304 public XObject getLocalVariable(XPathContext xctxt, int index) in getLocalVariable() argument
314 xctxt.getSAXLocator()); in getLocalVariable()
319 return (_stackFrames[index] = val.execute(xctxt)); in getLocalVariable()
361 public XObject getLocalVariable(XPathContext xctxt, int index, boolean destructiveOK) in getLocalVariable() argument
371 xctxt.getSAXLocator()); in getLocalVariable()
376 return (_stackFrames[index] = val.execute(xctxt)); in getLocalVariable()
444 public XObject getGlobalVariable(XPathContext xctxt, final int index) in getGlobalVariable() argument
452 return (_stackFrames[index] = val.execute(xctxt)); in getGlobalVariable()
471 public XObject getGlobalVariable(XPathContext xctxt, final int index, boolean destructiveOK) in getGlobalVariable() argument
479 return (_stackFrames[index] = val.execute(xctxt)); in getGlobalVariable()
[all …]
/external/apache-xml/src/main/java/org/apache/xpath/patterns/
DStepPattern.java330 public XObject execute(XPathContext xctxt, int currentNode) in execute() argument
334 DTM dtm = xctxt.getDTM(currentNode); in execute()
340 return execute(xctxt, currentNode, dtm, expType); in execute()
360 public XObject execute(XPathContext xctxt) in execute() argument
363 return execute(xctxt, xctxt.getCurrentNode()); in execute()
382 XPathContext xctxt, int currentNode, DTM dtm, int expType) in execute() argument
390 return m_relativePathPattern.execute(xctxt); in execute()
398 score = super.execute(xctxt, currentNode, dtm, expType); in execute()
405 if (!executePredicates(xctxt, dtm, currentNode)) in execute()
410 return m_relativePathPattern.executeRelativePathPattern(xctxt, dtm, in execute()
[all …]
DContextMatchStepPattern.java60 public XObject execute(XPathContext xctxt) in execute() argument
64 if (xctxt.getIteratorRoot() == xctxt.getCurrentNode()) in execute()
86 XPathContext xctxt, StepPattern prevStep) in executeRelativePathPattern() argument
91 int context = xctxt.getCurrentNode(); in executeRelativePathPattern()
92 DTM dtm = xctxt.getDTM(context); in executeRelativePathPattern()
96 int predContext = xctxt.getCurrentNode(); in executeRelativePathPattern()
102 boolean iterRootIsAttr = (dtm.getNodeType(xctxt.getIteratorRoot()) in executeRelativePathPattern()
117 xctxt.pushCurrentNode(relative); in executeRelativePathPattern()
119 score = execute(xctxt); in executeRelativePathPattern()
125 if (executePredicates(xctxt, dtm, context)) in executeRelativePathPattern()
[all …]
/external/apache-xml/src/main/java/org/apache/xalan/templates/
DFuncDocument.java73 public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException in execute() argument
75 int context = xctxt.getCurrentNode(); in execute()
76 DTM dtm = xctxt.getDTM(context); in execute()
79 XObject arg = (XObject) this.getArg0().execute(xctxt); in execute()
91 XObject arg2 = arg1Expr.execute(xctxt); in execute()
102 warn(xctxt, XSLTErrorResources.WG_EMPTY_SECOND_ARG, null); in execute()
103 XNodeSet nodes = new XNodeSet(xctxt.getDTMManager()); in execute()
106 DTM baseDTM = xctxt.getDTM(baseNode); in execute()
140 assertion(null != xctxt.getNamespaceContext(), "Namespace context can not be null!"); in execute()
141 base = xctxt.getNamespaceContext().getBaseIdentifier(); in execute()
[all …]
DFuncKey.java56 public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException in execute() argument
60 TransformerImpl transformer = (TransformerImpl) xctxt.getOwnerObject(); in execute()
62 int context = xctxt.getCurrentNode(); in execute()
63 DTM dtm = xctxt.getDTM(context); in execute()
72 String xkeyname = getArg0().execute(xctxt).str(); in execute()
73 QName keyname = new QName(xkeyname, xctxt.getNamespaceContext()); in execute()
74 XObject arg = getArg1().execute(xctxt); in execute()
98 dtm = xctxt.getDTM(pos); in execute()
119 kmgr.getNodeSetDTMByKey(xctxt, docContext, keyname, ref, in execute()
120 xctxt.getNamespaceContext()); in execute()
[all …]
DElemForEach.java294 XPathContext xctxt, Vector keys, DTMIterator sourceNodes) in sortNodes() argument
298 NodeSorter sorter = new NodeSorter(xctxt); in sortNodes()
301 xctxt.pushContextNodeList(sourceNodes); in sortNodes()
305 sorter.sort(sourceNodes, keys, xctxt); in sortNodes()
310 xctxt.popContextNodeList(); in sortNodes()
328 final XPathContext xctxt = transformer.getXPathContext(); in transformSelectedNodes() local
329 final int sourceNode = xctxt.getCurrentNode(); in transformSelectedNodes()
330 DTMIterator sourceNodes = m_selectExpression.asIterator(xctxt, in transformSelectedNodes()
342 sourceNodes = sortNodes(xctxt, keys, sourceNodes); in transformSelectedNodes()
344 xctxt.pushCurrentNode(DTM.NULL); in transformSelectedNodes()
[all …]
DElemApplyTemplates.java199 final XPathContext xctxt = transformer.getXPathContext(); in transformSelectedNodes() local
200 final int sourceNode = xctxt.getCurrentNode(); in transformSelectedNodes()
201 DTMIterator sourceNodes = m_selectExpression.asIterator(xctxt, sourceNode); in transformSelectedNodes()
202 VariableStack vars = xctxt.getVarStack(); in transformSelectedNodes()
211 xctxt.pushCurrentNode(DTM.NULL); in transformSelectedNodes()
212 xctxt.pushCurrentExpressionNode(DTM.NULL); in transformSelectedNodes()
213 xctxt.pushSAXLocatorNull(); in transformSelectedNodes()
221 sourceNodes = sortNodes(xctxt, keys, sourceNodes); in transformSelectedNodes()
230 DTM dtm = xctxt.getDTM(sourceNode); in transformSelectedNodes()
251 xctxt.pushContextNodeList(sourceNodes); in transformSelectedNodes()
[all …]
DTemplateList.java430 public TemplateSubPatternAssociation getHead(XPathContext xctxt, in getHead() argument
492 public ElemTemplate getTemplateFast(XPathContext xctxt, in getTemplateFast() argument
547 xctxt.pushNamespaceContextNull(); in getTemplateFast()
557 xctxt.setNamespaceContext(template); in getTemplateFast()
559 if ((head.m_stepPattern.execute(xctxt, targetNode, dtm, expTypeID) != NodeTest.SCORE_NONE) in getTemplateFast()
563 checkConflicts(head, xctxt, targetNode, mode); in getTemplateFast()
572 xctxt.popNamespaceContext(); in getTemplateFast()
593 public ElemTemplate getTemplate(XPathContext xctxt, in getTemplate() argument
601 TemplateSubPatternAssociation head = getHead(xctxt, targetNode, dtm); in getTemplate()
608 xctxt.pushNamespaceContextNull(); in getTemplate()
[all …]
DFuncFormatNumb.java53 public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException in execute() argument
58 (ElemTemplateElement) xctxt.getNamespaceContext(); in execute()
62 double num = getArg0().execute(xctxt).num(); in execute()
63 String patternStr = getArg1().execute(xctxt).str(); in execute()
77 String dfName = arg2Expr.execute(xctxt).str(); in execute()
78 QName qname = new QName(dfName, xctxt.getNamespaceContext()); in execute()
84 warn(xctxt, XSLTErrorResources.WG_NO_DECIMALFORMAT_DECLARATION, in execute()
154 public void warn(XPathContext xctxt, String msg, Object args[]) in warn() argument
159 ErrorListener errHandler = xctxt.getErrorListener(); in warn()
162 (SAXSourceLocator)xctxt.getSAXLocator())); in warn()
/external/apache-xml/src/main/java/org/apache/xpath/functions/
DFunctionDef1Arg.java51 protected int getArg0AsNode(XPathContext xctxt) in getArg0AsNode() argument
56 ? xctxt.getCurrentNode() : m_arg0.asNode(xctxt); in getArg0AsNode()
81 protected XMLString getArg0AsString(XPathContext xctxt) in getArg0AsString() argument
86 int currentNode = xctxt.getCurrentNode(); in getArg0AsString()
91 DTM dtm = xctxt.getDTM(currentNode); in getArg0AsString()
97 return m_arg0.execute(xctxt).xstr(); in getArg0AsString()
113 protected double getArg0AsNumber(XPathContext xctxt) in getArg0AsNumber() argument
119 int currentNode = xctxt.getCurrentNode(); in getArg0AsNumber()
124 DTM dtm = xctxt.getDTM(currentNode); in getArg0AsNumber()
131 return m_arg0.execute(xctxt).num(); in getArg0AsNumber()
DFuncId.java55 private StringVector getNodesByID(XPathContext xctxt, int docContext, in getNodesByID() argument
66 DTM dtm = xctxt.getDTM(docContext); in getNodesByID()
83 nodeSet.addNodeInDocOrder(node, xctxt); in getNodesByID()
106 public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException in execute() argument
109 int context = xctxt.getCurrentNode(); in execute()
110 DTM dtm = xctxt.getDTM(context); in execute()
114 error(xctxt, XPATHErrorResources.ER_CONTEXT_HAS_NO_OWNERDOC, null); in execute()
116 XObject arg = m_arg0.execute(xctxt); in execute()
118 XNodeSet nodes = new XNodeSet(xctxt.getDTMManager()); in execute()
133 usedrefs = getNodesByID(xctxt, docContext, refval, usedrefs, nodeSet, in execute()
[all …]
DFuncSystemProperty.java56 public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException in execute() argument
59 String fullName = m_arg0.execute(xctxt).str(); in execute()
76 namespace = xctxt.getNamespaceContext().getNamespaceForPrefix(prefix); in execute()
87 warn(xctxt, XPATHErrorResources.WG_PROPERTY_NOT_SUPPORTED, in execute()
95 warn(xctxt, XPATHErrorResources.WG_DONT_DO_ANYTHING_WITH_NS, in execute()
102 if(!xctxt.isSecureProcessing()) in execute()
108 warn(xctxt, XPATHErrorResources.WG_SECURITY_EXCEPTION, in execute()
118 warn(xctxt, XPATHErrorResources.WG_SECURITY_EXCEPTION, in execute()
130 if(!xctxt.isSecureProcessing()) in execute()
136 warn(xctxt, XPATHErrorResources.WG_SECURITY_EXCEPTION, in execute()
[all …]
DFuncPosition.java57 public int getPositionInContextNodeList(XPathContext xctxt) in getPositionInContextNodeList() argument
62 SubContextList iter = m_isTopLevel ? null : xctxt.getSubContextList(); in getPositionInContextNodeList()
66 int prox = iter.getProximityPosition(xctxt); in getPositionInContextNodeList()
72 DTMIterator cnl = xctxt.getContextNodeList(); in getPositionInContextNodeList()
95 int currentNode = xctxt.getContextNode(); in getPositionInContextNodeList()
120 public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException in execute() argument
122 double pos = (double) getPositionInContextNodeList(xctxt); in execute()
DFuncNormalizeSpace.java46 public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException in execute() argument
48 XMLString s1 = getArg0AsString(xctxt); in execute()
65 public void executeCharsToContentHandler(XPathContext xctxt, in executeCharsToContentHandler() argument
72 int node = getArg0AsNode(xctxt); in executeCharsToContentHandler()
75 DTM dtm = xctxt.getDTM(node); in executeCharsToContentHandler()
81 XObject obj = execute(xctxt); in executeCharsToContentHandler()
DFuncLast.java59 public int getCountOfContextNodeList(XPathContext xctxt) in getCountOfContextNodeList() argument
65 SubContextList iter = m_isTopLevel ? null : xctxt.getSubContextList(); in getCountOfContextNodeList()
69 return iter.getLastPos(xctxt); in getCountOfContextNodeList()
71 DTMIterator cnl = xctxt.getContextNodeList(); in getCountOfContextNodeList()
91 public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException in execute() argument
93 XNumber xnum = new XNumber((double) getCountOfContextNodeList(xctxt)); in execute()
/external/apache-xml/src/main/java/org/apache/xpath/axes/
DLocPathIterator.java206 public XObject execute(XPathContext xctxt) in execute() argument
212 iter.setRoot(xctxt.getCurrentNode(), xctxt); in execute() local
232 XPathContext xctxt, org.xml.sax.ContentHandler handler) in executeCharsToContentHandler() argument
238 int current = xctxt.getCurrentNode(); in executeCharsToContentHandler()
239 clone.setRoot(current, xctxt); in executeCharsToContentHandler()
264 XPathContext xctxt, int contextNode) in asIterator() argument
269 iter.setRoot(contextNode, xctxt); in asIterator()
293 public int asNode(XPathContext xctxt) in asNode() argument
298 int current = xctxt.getCurrentNode(); in asNode()
300 iter.setRoot(current, xctxt); in asNode()
[all …]
DPredicatedNodeTest.java210 public int getProximityPosition(XPathContext xctxt) in getProximityPosition() argument
223 public abstract int getLastPos(XPathContext xctxt); in getLastPos() argument
321 boolean executePredicates(int context, XPathContext xctxt) in executePredicates() argument
330 PrefixResolver savedResolver = xctxt.getNamespaceContext(); in executePredicates()
335 xctxt.pushSubContextList(this); in executePredicates()
336 xctxt.pushNamespaceContext(m_lpi.getPrefixResolver()); in executePredicates()
337 xctxt.pushCurrentNode(context); in executePredicates()
342 XObject pred = m_predicates[i].execute(xctxt); in executePredicates()
398 xctxt.popCurrentNode(); in executePredicates()
399 xctxt.popNamespaceContext(); in executePredicates()
[all …]
DFilterExprIteratorSimple.java87 public static XNodeSet executeFilterExpr(int context, XPathContext xctxt, in executeFilterExpr() argument
94 PrefixResolver savedResolver = xctxt.getNamespaceContext(); in executeFilterExpr()
99 xctxt.pushCurrentNode(context); in executeFilterExpr()
100 xctxt.setNamespaceContext(prefixResolver); in executeFilterExpr()
110 VariableStack vars = xctxt.getVarStack(); in executeFilterExpr()
116 result = (org.apache.xpath.objects.XNodeSet) expr.execute(xctxt); in executeFilterExpr()
123 result = (org.apache.xpath.objects.XNodeSet) expr.execute(xctxt); in executeFilterExpr()
134 xctxt.popCurrentNode(); in executeFilterExpr()
135 xctxt.setNamespaceContext(savedResolver); in executeFilterExpr()
/external/apache-xml/src/main/java/org/apache/xalan/transformer/
DKeyTable.java96 int doc, PrefixResolver nscontext, QName name, Vector keyDeclarations, XPathContext xctxt) in KeyTable() argument
105 m_keyNodes.setRoot(doc, xctxt); in KeyTable()
135 XPathContext xctxt = ki.getXPathContext(); in getNodeSetDTMByKey() local
136 refNodes = new XNodeSet(xctxt.getDTMManager()) { in getNodeSetDTMByKey()
190 XPathContext xctxt = ki.getXPathContext(); in getRefsTable() local
205 keyDeclaration.getUse().execute(xctxt, in getRefsTable()
211 addValueInRefsTable(xctxt, exprResult, currentNode); in getRefsTable()
217 DTM dtm = xctxt.getDTM(currentNodeInUseClause); in getRefsTable()
220 addValueInRefsTable(xctxt, exprResult, currentNode); in getRefsTable()
239 private void addValueInRefsTable(XPathContext xctxt, XMLString ref, int node) { in addValueInRefsTable() argument
[all …]
/external/apache-xml/src/main/java/org/apache/xpath/operations/
DVariable.java185 public XObject execute(XPathContext xctxt) in execute() argument
188 return execute(xctxt, false); in execute()
204 …public XObject execute(XPathContext xctxt, boolean destructiveOK) throws javax.xml.transform.Trans… in execute() argument
206 org.apache.xml.utils.PrefixResolver xprefixResolver = xctxt.getNamespaceContext(); in execute()
214 result = xctxt.getVarStack().getGlobalVariable(xctxt, m_index, destructiveOK); in execute()
216 result = xctxt.getVarStack().getLocalVariable(xctxt, m_index, destructiveOK); in execute()
219 result = xctxt.getVarStack().getVariableOrParam(xctxt,m_qname); in execute()
225 warn(xctxt, XPATHErrorResources.WG_ILLEGAL_VARIABLE_REFERENCE, in execute()
231 result = new XNodeSet(xctxt.getDTMManager()); in execute()
DAnd.java45 public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException in execute() argument
48 XObject expr1 = m_left.execute(xctxt); in execute()
52 XObject expr2 = m_right.execute(xctxt); in execute()
69 public boolean bool(XPathContext xctxt) in bool() argument
72 return (m_left.bool(xctxt) && m_right.bool(xctxt)); in bool()
DOr.java45 public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException in execute() argument
48 XObject expr1 = m_left.execute(xctxt); in execute()
52 XObject expr2 = m_right.execute(xctxt); in execute()
69 public boolean bool(XPathContext xctxt) in bool() argument
72 return (m_left.bool(xctxt) || m_right.bool(xctxt)); in bool()
/external/apache-xml/src/main/java/org/apache/xpath/objects/
DXRTreeFrag.java50 public XRTreeFrag(int root, XPathContext xctxt, ExpressionNode parent) in XRTreeFrag() argument
54 initDTM(root, xctxt); in XRTreeFrag()
61 public XRTreeFrag(int root, XPathContext xctxt) in XRTreeFrag() argument
64 initDTM(root, xctxt); in XRTreeFrag()
67 private final void initDTM(int root, XPathContext xctxt){ in initDTM() argument
69 final DTM dtm = xctxt.getDTM(root); in initDTM()
71 m_DTMXRTreeFrag = xctxt.getDTMXRTreeFrag(xctxt.getDTMIdentity(dtm)); in initDTM()

12345