|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xpath.Expression org.apache.xpath.objects.XObject org.apache.xpath.objects.XRTreeFrag org.apache.xpath.objects.XRTreeFragSelectWrapper
This class makes an select statement act like an result tree fragment.
Field Summary | |
(package private) XObject |
m_selected
|
Fields inherited from class org.apache.xpath.objects.XRTreeFrag |
m_allowRelease, m_dtm, m_dtmRoot, m_xctxt |
Fields inherited from class org.apache.xpath.objects.XObject |
CLASS_BOOLEAN, CLASS_NODESET, CLASS_NULL, CLASS_NUMBER, CLASS_RTREEFRAG, CLASS_STRING, CLASS_UNKNOWN, CLASS_UNRESOLVEDVARIABLE, m_obj |
Fields inherited from class org.apache.xpath.Expression |
|
Constructor Summary | |
XRTreeFragSelectWrapper(Expression expr)
|
Method Summary | |
DTMIterator |
asNodeIterator()
Cast result object to a DTMIterator. |
void |
detach()
Detaches the DTMIterator from the set which it iterated
over, releasing any computational resources and placing the iterator
in the INVALID state. |
XObject |
execute(XPathContext xctxt)
For support of literal objects in xpaths. |
void |
fixupVariables(Vector vars,
int globalsSize)
This function is used to fixup variables from QNames to stack frame indexes at stylesheet build time. |
int |
getType()
Tell what kind of class this is. |
double |
num()
Cast result object to a number. |
int |
rtf()
Cast result object to a result tree fragment. |
String |
str()
Cast result object to a string. |
XMLString |
xstr()
Cast result object to an XMLString. |
Methods inherited from class org.apache.xpath.objects.XRTreeFrag |
allowDetachToRelease, appendToFsb, bool, convertToNodeset, destruct, equals, finalize, getTypeString, object |
Methods inherited from class org.apache.xpath.objects.XObject |
boolWithSideEffects, callVisitors, castToType, create, create, deepEquals, dispatchCharactersEvents, error, error, getFresh, greaterThan, greaterThanOrEqual, iter, lessThan, lessThanOrEqual, mutableNodeset, nodelist, nodeset, notEquals, numWithSideEffects, reset, rtf, rtree, rtree, toString |
Methods inherited from class org.apache.xpath.Expression |
asIterator, asIteratorRaw, asNode, assertion, bool, canTraverseOutsideSubtree, error, execute, execute, execute, executeCharsToContentHandler, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isNodesetExpr, isSameClass, isStableNumber, num, warn, xstr |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
XObject m_selected
Constructor Detail |
public XRTreeFragSelectWrapper(Expression expr)
Method Detail |
public void fixupVariables(Vector vars, int globalsSize)
fixupVariables
in class XObject
vars
- List of QNames that correspond to variables. This list
should be searched backwards for the first qualified name that
corresponds to the variable reference qname. The position of the
QName in the vector from the start of the vector will be its position
in the stack frame (but variables above the globalsTop value will need
to be offset to the current stack frame).public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException
execute
in class XObject
xctxt
- The XPath execution context.
javax.xml.transform.TransformerException
public void detach()
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.
detach
in class XRTreeFrag
public double num() throws javax.xml.transform.TransformerException
num
in class XRTreeFrag
javax.xml.transform.TransformerException
public XMLString xstr()
xstr
in class XRTreeFrag
public String str()
str
in class XRTreeFrag
public int getType()
getType
in class XRTreeFrag
public int rtf()
rtf
in class XRTreeFrag
public DTMIterator asNodeIterator()
asNodeIterator
in class XRTreeFrag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |