/** * Push the current context node, expression node, and prefix resolver. * * @param cn the <a href="http://www.w3.org/TR/xslt#dt-current-node">current node</a>. * @param en the sub-expression context node. * @param nc the namespace context (prefix resolver. */ public final void pushExpressionState(int cn, int en, PrefixResolver nc) { m_currentNodes.push(cn); m_currentExpressionNodes.push(cn); m_prefixResolvers.push(nc); }
/** * Unimplemented. See org.w3c.dom.Node * * @return null */ public Node getFirstChild() { error(XMLErrorResources.ER_FUNCTION_NOT_SUPPORTED); //"getFirstChild not supported!"); return null; }
/** * Pop the current locater. */ public void popSAXLocator() { m_saxLocations.pop(); }
/** * Push a current namespace context for the xpath. * * @param pr the prefix resolver to be used for resolving prefixes to * namespace URLs. */ public final void pushNamespaceContext(PrefixResolver pr) { m_prefixResolvers.push(pr); }
/** * Get count of functions defined in this extension element * * * @return count of functions defined in this extension element */ public int getFunctionCount() { return (null != m_functions) ? m_functions.size() : 0; }
public static void waitThread(Thread worker, Runnable task) throws InterruptedException { m_tpool.waitThread(worker, task); }
/** * Returns clone of current IntStack * * @return clone of current IntStack */ public Object clone() throws CloneNotSupportedException { return (IntStack) super.clone(); } }
/** * Set whether to strip whitespaces and push in current value of * m_shouldStripWS in m_shouldStripWhitespaceStack. * * @param shouldStrip Flag indicating whether to strip whitespace nodes */ protected void pushShouldStripWhitespace(boolean shouldStrip) { m_shouldStripWS = shouldStrip; if (null != m_shouldStripWhitespaceStack) m_shouldStripWhitespaceStack.push(shouldStrip); }
/** * Set whether to strip whitespaces at this point by popping out * m_shouldStripWhitespaceStack. * */ protected void popShouldStripWhitespace() { if (null != m_shouldStripWhitespaceStack) m_shouldStripWS = m_shouldStripWhitespaceStack.popAndTop(); }
/** * Push true if the current template rule is null, false * otherwise. */ public void popCurrentTemplateRuleIsNull() { m_currentTemplateRuleIsNull.pop(); }
/** * Called by CoRoutineSAXParser. Launches the CoroutineSAXParser * in a thread, and prepares it to invoke the parser from that thread * upon request. * */ public static void runTransformThread(Runnable runnable) { ThreadControllerWrapper.runThread(runnable, -1); }
/** * Pop the current location path iterator root. */ public final void popIteratorRoot() { m_iteratorRoots.popQuick(); }
/** * Get the current node that is the expression's context (i.e. for current() support). * * @return The current sub-expression node. */ public final int getCurrentExpressionNode() { return m_currentExpressionNodes.peek(); }
/** * 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); }
/** * Unimplemented. See org.w3c.dom.Node * * @return null */ public Node getPreviousSibling() { error(XMLErrorResources.ER_FUNCTION_NOT_SUPPORTED); //"getPreviousSibling not supported!"); return null; }
/** * Return the count of elements defined for this extension element * * * @return the count of elements defined for this extension element */ public int getElementCount() { return (null != m_elements) ? m_elements.size() : 0; }
/** * Unimplemented. See org.w3c.dom.Node * * @return null */ public Element getOwnerElement() { error(XMLErrorResources.ER_FUNCTION_NOT_SUPPORTED); //"getOwnerElement not supported!"); return null; }
/** * Unimplemented. See org.w3c.dom.Document * * @return null */ public Element getDocumentElement() { error(XMLErrorResources.ER_FUNCTION_NOT_SUPPORTED); return null; }