/** * Pop the current template element. */ public void popElemTemplateElement() { m_currentTemplateElements.pop(); }
/** * Push a funcion result for the currently active EXSLT * <code>func:function</code>. * * @param val the result of executing an EXSLT * <code>func:result</code> instruction for the current * <code>func:function</code>. */ public void pushCurrentFuncResult(Object val) { m_currentFuncResult.push(val); }
/** * Determines whether an EXSLT <code>func:result</code> instruction has been * executed for the currently active EXSLT <code>func:function</code>. * * @return <code>true</code> if and only if a <code>func:result</code> * instruction has been executed */ public boolean currentFuncResultSeen() { return !m_currentFuncResult.empty() && m_currentFuncResult.peek() != null; }
/** * Retrieves the current ElemTemplateElement that is * being executed. * * @return The current ElemTemplateElement that is executing, * should not normally be null. */ public ElemTemplateElement getCurrentElement() { return (m_currentTemplateElements.size() > 0) ? (ElemTemplateElement) m_currentTemplateElements.peek() : null; }
/** * Returns where an object is on this stack. * * @param o the desired object. * @return the distance from the top of the stack where the object is] * located; the return value <code>-1</code> indicates that the * object is not on the stack. * @since JDK1.0 */ public int search(Object o) { int i = lastIndexOf(o); if (i >= 0) { return size() - i; } return -1; }
int currentTemplateElementsTop = m_currentTemplateElements.size(); m_currentTemplateElements.push(null); m_currentTemplateElements.setElementAt(t,currentTemplateElementsTop); t.execute(this); m_currentTemplateElements.pop(); xctxt.popSAXLocator();
org.apache.xpath.objects.XMLStringFactoryImpl.getFactory()); m_saxLocations.removeAllElements(); m_axesIteratorStack.removeAllElements(); m_contextNodeLists.removeAllElements(); m_predicatePos.removeAllElements(); m_predicateRoots.RemoveAllNoClear(); m_prefixResolvers.removeAllElements(); m_prefixResolvers.push(null); m_currentNodes.push(DTM.NULL); m_currentExpressionNodes.push(DTM.NULL); m_saxLocations.push(null);
realStack = new ObjectStack(); while (!realStack.isEmpty() && (priorityVal(element) <= priorityVal((Character) realStack.top())) && (element !='(')) br.append(realStack.pop()); realStack.push(element); while ((!(realStack.top().equals('(')))) br.append(realStack.pop()); realStack.pop(); while (!realStack.isEmpty()) br.append(realStack.pop());
= new ObjectStack(XPathContext.RECURSIONLIMIT); ObjectStack m_currentFuncResult = new ObjectStack();
/** * Get the current namespace context for the xpath. * * @param pr the prefix resolver to be used for resolving prefixes to * namespace URLs. */ public final void setNamespaceContext(PrefixResolver pr) { m_prefixResolvers.setTop(pr); }
/** * Get the current locater in the stylesheet. * * @return The location within the stylesheet, or null if not known. */ public SourceLocator getSAXLocator() { return (SourceLocator) m_saxLocations.peek(); }
/** * Get the stack of ElemTemplateElements. * * @return A copy of stack that contains the xsl element instructions, * the earliest called in index zero, and the latest called in index size()-1. */ public Vector getElementCallstack() { Vector elems = new Vector(); int nStackSize = m_currentTemplateElements.size(); for(int i = 0; i < nStackSize; i++) { ElemTemplateElement elem = (ElemTemplateElement) m_currentTemplateElements.elementAt(i); if(null != elem) { elems.addElement(elem); } } return elems; }
/** * Get the count of how many elements are * active. * @return The number of active elements on * the currentTemplateElements stack. */ public int getCurrentTemplateElementsCount() { return m_currentTemplateElements.size(); }
m_currentTemplateElements.removeAllElements(); m_currentMatchTemplates.removeAllElements(); m_currentMatchedNodes.removeAllElements();
int currentTemplateElementsTop = m_currentTemplateElements.size(); m_currentTemplateElements.push(null); m_currentTemplateElements.setElementAt(t,currentTemplateElementsTop); t.execute(this); m_currentTemplateElements.pop(); xctxt.popSAXLocator();
org.apache.xpath.objects.XMLStringFactoryImpl.getFactory()); m_saxLocations.removeAllElements(); m_axesIteratorStack.removeAllElements(); m_contextNodeLists.removeAllElements(); m_predicatePos.removeAllElements(); m_predicateRoots.RemoveAllNoClear(); m_prefixResolvers.removeAllElements(); m_prefixResolvers.push(null); m_currentNodes.push(DTM.NULL); m_currentExpressionNodes.push(DTM.NULL); m_saxLocations.push(null);
/** * Returns where an object is on this stack. * * @param o the desired object. * @return the distance from the top of the stack where the object is] * located; the return value <code>-1</code> indicates that the * object is not on the stack. * @since JDK1.0 */ public int search(Object o) { int i = lastIndexOf(o); if (i >= 0) { return size() - i; } return -1; }
= new ObjectStack(XPathContext.RECURSIONLIMIT); ObjectStack m_currentFuncResult = new ObjectStack();
/** * Set the top of the current template elements * stack. * * @param e The current ElemTemplateElement about to * be executed. */ public void setCurrentElement(ElemTemplateElement e) { m_currentTemplateElements.setTop(e); }
/** * Retrieves the current ElemTemplateElement that is * being executed. * * @return The current ElemTemplateElement that is executing, * should not normally be null. */ public ElemTemplateElement getCurrentElement() { return (m_currentTemplateElements.size() > 0) ? (ElemTemplateElement) m_currentTemplateElements.peek() : null; }