org.apache.xpath.objects
Class XRTreeFragSelectWrapper
- Cloneable, Serializable, ExpressionNode, SourceLocator, XPathVisitable
public class XRTreeFragSelectWrapper
implements Cloneable
This class makes an select statement act like an result tree fragment.
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(java.util.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.
|
allowDetachToRelease , appendToFsb , asNodeIterator , bool , convertToNodeset , detach , equals , getType , getTypeString , num , object , rtf , str , xstr |
allowDetachToRelease , appendToFsb , bool , boolWithSideEffects , callVisitors , castToType , create , create , deepEquals , destruct , detach , dispatchCharactersEvents , equals , execute , fixupVariables , getFresh , getType , getTypeString , greaterThan , greaterThanOrEqual , iter , lessThan , lessThanOrEqual , mutableNodeset , nodelist , nodeset , notEquals , num , numWithSideEffects , object , reset , rtf , rtf , rtree , rtree , str , toString , xstr |
asIterator , asIteratorRaw , asNode , assertion , bool , canTraverseOutsideSubtree , deepEquals , error , execute , execute , execute , execute , executeCharsToContentHandler , exprAddChild , exprGetChild , exprGetNumChildren , exprGetParent , exprSetParent , fixupVariables , getColumnNumber , getExpressionOwner , getLineNumber , getPublicId , getSystemId , isNodesetExpr , isStableNumber , num , warn , xstr |
XRTreeFragSelectWrapper
public XRTreeFragSelectWrapper(Expression expr)
Create an XRTreeFrag Object.
detach
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.
- detach in interface XRTreeFrag
execute
public XObject execute(XPathContext xctxt)
throws javax.xml.transform.TransformerException
For support of literal objects in xpaths.
- execute in interface XObject
xctxt
- The XPath execution context.
- the result of executing the select expression
fixupVariables
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.
- fixupVariables in interface 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).
getType
public int getType()
Tell what kind of class this is.
- getType in interface XRTreeFrag
num
public double num()
throws javax.xml.transform.TransformerException
Cast result object to a number.
- num in interface XRTreeFrag
- The result tree fragment as a number or NaN
rtf
public int rtf()
Cast result object to a result tree fragment.
- rtf in interface XRTreeFrag
- The document fragment this wraps
str
public String str()
Cast result object to a string.
- str in interface XRTreeFrag
- The document fragment node data or the empty string.
xstr
public XMLString xstr()
Cast result object to an XMLString.
- xstr in interface XRTreeFrag
- The document fragment node data or the empty string.
Copyright B) 2005 Apache XML Project. All Rights Reserved.