/** * 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(); }
/** * 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(); }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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 call stack of xsl:template elements. * * @return A copy of stack that contains the xsl:template * (ElemTemplate) instructions, the earliest called in index * zero, and the latest called in index size()-1. */ public Vector getTemplateCallstack() { 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 && (elem.getXSLToken() != Constants.ELEMNAME_TEMPLATE)) { elems.addElement(elem); } } return elems; }
int currentTemplateElementsTop = m_currentTemplateElements.size(); m_currentTemplateElements.push(null);
int currentTemplateElementsTop = m_currentTemplateElements.size(); m_currentTemplateElements.push(null);
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }