Methods Summary |
---|
public com.sun.org.apache.xml.internal.dtm.DTMIterator | asNodeIterator()Cast result object to a DTMIterator.
throw new RuntimeException(XSLMessages.createXPATHMessage(XPATHErrorResources.ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER, null)); //"asNodeIterator() not supported by XRTreeFragSelectWrapper!");
|
public void | detach()Detaches the DTMIterator from the set which it iterated
over, releasing any computational resources and placing the iterator
in the INVALID state. After detach has been invoked,
calls to nextNode or previousNode will
raise a runtime exception.
In general, detach should only be called once on the object.
if(m_allowRelease)
{
m_selected.detach();
m_selected = null;
}
super.detach();
|
public com.sun.org.apache.xpath.internal.objects.XObject | execute(com.sun.org.apache.xpath.internal.XPathContext xctxt)For support of literal objects in xpaths.
m_selected = ((Expression)m_obj).execute(xctxt);
m_selected.allowDetachToRelease(m_allowRelease);
if (m_selected.getType() == CLASS_STRING)
return m_selected;
else
return new XString(m_selected.str());
|
public void | fixupVariables(java.util.Vector vars, int globalsSize)This function is used to fixup variables from QNames to stack frame
indexes at stylesheet build time.
((Expression)m_obj).fixupVariables(vars, globalsSize);
|
public int | getType()Tell what kind of class this is.
return CLASS_STRING;
|
public double | num()Cast result object to a number.
return m_selected.num();
|
public int | rtf()Cast result object to a result tree fragment.
throw new RuntimeException(XSLMessages.createXPATHMessage(XPATHErrorResources.ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER, null)); //"rtf() not supported by XRTreeFragSelectWrapper!");
|
public java.lang.String | str()Cast result object to a string.
return m_selected.str();
|
public com.sun.org.apache.xml.internal.utils.XMLString | xstr()Cast result object to an XMLString.
return m_selected.xstr();
|