APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xpath.internal.objects

public Class XRTreeFragSelectWrapper

extends XRTreeFrag
implements Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable
Imports
com.sun.org.apache.xalan.internal.res.XSLMessages, com.sun.org.apache.xml.internal.dtm.DTMIterator, com.sun.org.apache.xml.internal.utils.QName, .XMLString, com.sun.org.apache.xpath.internal.Expression, .XPathContext, com.sun.org.apache.xpath.internal.res.XPATHErrorResources, java.util.List

This class makes an select statement act like an result tree fragment.

Field Summary

Modifier and TypeField and Description
pack-priv static final long
Inherited from com.sun.org.apache.xpath.internal.objects.XRTreeFrag:
m_allowRelease

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public DTMIterator

Returns:

The document fragment as a DTMIterator
asNodeIterator
()

Overrides com.sun.org.apache.xpath.internal.objects.XRTreeFrag.asNodeIterator.

Cast result object to a DTMIterator.

public void
detach()

Overrides com.sun.org.apache.xpath.internal.objects.XRTreeFrag.detach.

Detaches the DTMIterator from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state.

public XObject

Returns:

the result of executing the select expression
execute
(XPathContext
The XPath execution context.
xctxt
)

Overrides com.sun.org.apache.xpath.internal.objects.XObject.execute.

For support of literal objects in xpaths.

public void
fixupVariables(List<QName>
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).
vars
,
int globalsSize)

Overrides com.sun.org.apache.xpath.internal.objects.XObject.fixupVariables.

This function is used to fixup variables from QNames to stack frame indexes at stylesheet build time.

public int

Returns:

the string type
getType
()

Overrides com.sun.org.apache.xpath.internal.objects.XRTreeFrag.getType.

Tell what kind of class this is.

public double

Returns:

The result tree fragment as a number or NaN
num
()

Overrides com.sun.org.apache.xpath.internal.objects.XRTreeFrag.num.

Cast result object to a number.

public int

Returns:

The document fragment this wraps
rtf
()

Overrides com.sun.org.apache.xpath.internal.objects.XRTreeFrag.rtf.

Cast result object to a result tree fragment.

public String

Returns:

The document fragment node data or the empty string.
str
()

Overrides com.sun.org.apache.xpath.internal.objects.XRTreeFrag.str.

Cast result object to a string.

public XMLString

Returns:

The document fragment node data or the empty string.
xstr
()

Overrides com.sun.org.apache.xpath.internal.objects.XRTreeFrag.xstr.

Cast result object to an XMLString.

Inherited from com.sun.org.apache.xpath.internal.objects.XRTreeFrag:
allowDetachToReleaseappendToFsbboolconvertToNodesetequalsgetTypeStringobject

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides com.sun.org.apache.xpath.internal.objects.XRTreeFrag.serialVersionUID.

Constructor Detail

XRTreeFragSelectWrapperback to summary
public XRTreeFragSelectWrapper(Expression expr)

Method Detail

asNodeIteratorback to summary
public DTMIterator asNodeIterator()

Overrides com.sun.org.apache.xpath.internal.objects.XRTreeFrag.asNodeIterator.

Cast result object to a DTMIterator.

Returns:DTMIterator

The document fragment as a DTMIterator

detachback to summary
public void detach()

Overrides com.sun.org.apache.xpath.internal.objects.XRTreeFrag.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.

executeback to summary
public XObject execute(XPathContext xctxt) throws TransformerException

Overrides com.sun.org.apache.xpath.internal.objects.XObject.execute.

For support of literal objects in xpaths.

Parameters
xctxt:XPathContext

The XPath execution context.

Returns:XObject

the result of executing the select expression

Exceptions
TransformerException:

Doc from com.sun.org.apache.xpath.internal.Expression.execute.

if a runtime exception occurs.

fixupVariablesback to summary
public void fixupVariables(List<QName> vars, int globalsSize)

Overrides com.sun.org.apache.xpath.internal.objects.XObject.fixupVariables.

This function is used to fixup variables from QNames to stack frame indexes at stylesheet build time.

Parameters
vars:List<QName>

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).

getTypeback to summary
public int getType()

Overrides com.sun.org.apache.xpath.internal.objects.XRTreeFrag.getType.

Tell what kind of class this is.

Returns:int

the string type

numback to summary
public double num() throws TransformerException

Overrides com.sun.org.apache.xpath.internal.objects.XRTreeFrag.num.

Cast result object to a number.

Returns:double

The result tree fragment as a number or NaN

rtfback to summary
public int rtf()

Overrides com.sun.org.apache.xpath.internal.objects.XRTreeFrag.rtf.

Cast result object to a result tree fragment.

Returns:int

The document fragment this wraps

strback to summary
public String str()

Overrides com.sun.org.apache.xpath.internal.objects.XRTreeFrag.str.

Cast result object to a string.

Returns:String

The document fragment node data or the empty string.

xstrback to summary
public XMLString xstr()

Overrides com.sun.org.apache.xpath.internal.objects.XRTreeFrag.xstr.

Cast result object to an XMLString.

Returns:XMLString

The document fragment node data or the empty string.