public class XRTreeFrag extends XObject implements Cloneable
Modifier and Type | Field and Description |
---|---|
protected boolean |
m_allowRelease |
CLASS_BOOLEAN, CLASS_NODESET, CLASS_NULL, CLASS_NUMBER, CLASS_RTREEFRAG, CLASS_STRING, CLASS_UNKNOWN, CLASS_UNRESOLVEDVARIABLE, m_obj
Constructor and Description |
---|
XRTreeFrag(Expression expr)
Create an XRTreeFrag Object.
|
XRTreeFrag(int root,
XPathContext xctxt)
Create an XRTreeFrag Object.
|
XRTreeFrag(int root,
XPathContext xctxt,
ExpressionNode parent)
Create an XRTreeFrag Object.
|
Modifier and Type | Method and Description |
---|---|
void |
allowDetachToRelease(boolean allowRelease)
Specify if it's OK for detach to release the iterator for reuse.
|
void |
appendToFsb(FastStringBuffer fsb)
Cast result object to a string.
|
DTMIterator |
asNodeIterator()
Cast result object to a DTMIterator.
|
boolean |
bool()
Cast result object to a boolean.
|
NodeList |
convertToNodeset()
Cast result object to a nodelist.
|
void |
detach()
Detaches the
DTMIterator from the set which it iterated
over, releasing any computational resources and placing the iterator
in the INVALID state. |
boolean |
equals(XObject obj2)
Tell if two objects are functionally equal.
|
int |
getType()
Tell what kind of class this is.
|
String |
getTypeString()
Given a request type, return the equivalent string.
|
double |
num()
Cast result object to a number.
|
Object |
object()
Return a java object that's closest to the representation
that should be handed to an extension.
|
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.
|
boolWithSideEffects, callVisitors, castToType, create, create, deepEquals, destruct, dispatchCharactersEvents, error, error, execute, fixupVariables, getFresh, greaterThan, greaterThanOrEqual, iter, lessThan, lessThanOrEqual, mutableNodeset, nodelist, nodeset, notEquals, numWithSideEffects, reset, rtf, rtree, rtree, setObject, toString
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
public XRTreeFrag(int root, XPathContext xctxt, ExpressionNode parent)
public XRTreeFrag(int root, XPathContext xctxt)
public XRTreeFrag(Expression expr)
public Object object()
public void allowDetachToRelease(boolean allowRelease)
allowDetachToRelease
in class XObject
allowRelease
- true if it is OK for detach to release this iterator
for pooling.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.public int getType()
public String getTypeString()
getTypeString
in class XObject
public double num() throws TransformerException
num
in class XObject
TransformerException
public boolean bool()
public XMLString xstr()
public void appendToFsb(FastStringBuffer fsb)
appendToFsb
in class XObject
public String str()
public int rtf()
public DTMIterator asNodeIterator()
ExsltCommon
.public NodeList convertToNodeset()
public boolean equals(XObject obj2)
equals
in class XObject
obj2
- Object to compare this toTransformerException
Copyright © 2018 JBoss by Red Hat. All rights reserved.