APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.org.apache.xpath.internal.axes

public Class FilterExprIterator

extends BasicTestIterator
Class Inheritance
Imports
com.sun.org.apache.xml.internal.dtm.DTM, com.sun.org.apache.xml.internal.utils.QName, com.sun.org.apache.xpath.internal.Expression, .ExpressionOwner, .XPathVisitor, com.sun.org.apache.xpath.internal.objects.XNodeSet, java.util.List

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Modifier and TypeField and Description
private boolean
private Expression
m_expr

The contained expression.

private transient XNodeSet
m_exprObj

The result of executing m_expr.

private boolean
pack-priv static final long

Constructor Summary

AccessConstructor and Description
public
FilterExprIterator()

Create a FilterExprIterator object.

public
FilterExprIterator(Expression expr)

Create a FilterExprIterator object.

Method Summary

Modifier and TypeMethod and Description
public void
callPredicateVisitors(XPathVisitor
The visitor whose appropriate method will be called.
visitor
)

Overrides com.sun.org.apache.xpath.internal.axes.PredicatedNodeTest.callPredicateVisitors.

This will traverse the heararchy, calling the visitor for each member.

public boolean
deepEquals(Expression expr)

Overrides com.sun.org.apache.xpath.internal.axes.PredicatedNodeTest.deepEquals.

Compare this object with another object and see if they are equal, include the sub heararchy.

public void
detach()

Overrides com.sun.org.apache.xpath.internal.axes.LocPathIterator.detach.

Implements com.sun.org.apache.xml.internal.dtm.DTMIterator.detach.

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

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.axes.PredicatedNodeTest.fixupVariables.

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

public int

Returns:

One of WalkerFactory#BIT_DESCENDANT, etc.
getAnalysisBits
()

Overrides com.sun.org.apache.xpath.internal.axes.LocPathIterator.getAnalysisBits.

Implements com.sun.org.apache.xpath.internal.axes.PathComponent.getAnalysisBits.

Get the analysis bits for this walker, as defined in the WalkerFactory.

public Expression
getInnerExpression()

Get the inner contained expression of this filter.

protected int

Returns:

The next node on the axis, or DTM.NULL.
getNextNode
()

Implements abstract com.sun.org.apache.xpath.internal.axes.BasicTestIterator.getNextNode.

Get the next node via getNextXXX.

public boolean

Returns:

true as a default.
isDocOrdered
()

Overrides com.sun.org.apache.xpath.internal.axes.LocPathIterator.isDocOrdered.

Implements com.sun.org.apache.xml.internal.dtm.DTMIterator.isDocOrdered.

Returns true if all the nodes in the iteration well be returned in document order.

public void
setInnerExpression(Expression expr)

Set the inner contained expression of this filter.

public void
setRoot(int
The XPath runtime context for this transformation.
context
,
Object environment)

Overrides com.sun.org.apache.xpath.internal.axes.LocPathIterator.setRoot.

Implements com.sun.org.apache.xml.internal.dtm.DTMIterator.setRoot.

Initialize the context values for this expression after it is cloned.

Inherited from com.sun.org.apache.xpath.internal.axes.BasicTestIterator:
cloneWithResetnextNode

Field Detail

m_canDetachNodesetback to summary
private boolean m_canDetachNodeset
m_exprback to summary
private Expression m_expr

The contained expression. Should be non-null.

m_exprObjback to summary
private transient XNodeSet m_exprObj

The result of executing m_expr. Needs to be deep cloned on clone op.

m_mustHardResetback to summary
private boolean m_mustHardReset
serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides com.sun.org.apache.xpath.internal.axes.BasicTestIterator.serialVersionUID.

Constructor Detail

FilterExprIteratorback to summary
public FilterExprIterator()

Create a FilterExprIterator object.

FilterExprIteratorback to summary
public FilterExprIterator(Expression expr)

Create a FilterExprIterator object.

Method Detail

callPredicateVisitorsback to summary
public void callPredicateVisitors(XPathVisitor visitor)

Overrides com.sun.org.apache.xpath.internal.axes.PredicatedNodeTest.callPredicateVisitors.

This will traverse the heararchy, calling the visitor for each member. If the called visitor method returns false, the subtree should not be called.

Parameters
visitor:XPathVisitor

The visitor whose appropriate method will be called.

deepEqualsback to summary
public boolean deepEquals(Expression expr)

Overrides com.sun.org.apache.xpath.internal.axes.PredicatedNodeTest.deepEquals.

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

Compare this object with another object and see if they are equal, include the sub heararchy.

See Also
Expression#deepEquals(Expression)
detachback to summary
public void detach()

Overrides com.sun.org.apache.xpath.internal.axes.LocPathIterator.detach.

Implements com.sun.org.apache.xml.internal.dtm.DTMIterator.detach.

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

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

Overrides com.sun.org.apache.xpath.internal.axes.PredicatedNodeTest.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).

getAnalysisBitsback to summary
public int getAnalysisBits()

Overrides com.sun.org.apache.xpath.internal.axes.LocPathIterator.getAnalysisBits.

Implements com.sun.org.apache.xpath.internal.axes.PathComponent.getAnalysisBits.

Get the analysis bits for this walker, as defined in the WalkerFactory.

Returns:int

One of WalkerFactory#BIT_DESCENDANT, etc.

getInnerExpressionback to summary
public Expression getInnerExpression()

Get the inner contained expression of this filter.

getNextNodeback to summary
protected int getNextNode()

Implements abstract com.sun.org.apache.xpath.internal.axes.BasicTestIterator.getNextNode.

Get the next node via getNextXXX. Bottlenecked for derived class override.

Returns:int

The next node on the axis, or DTM.NULL.

isDocOrderedback to summary
public boolean isDocOrdered()

Overrides com.sun.org.apache.xpath.internal.axes.LocPathIterator.isDocOrdered.

Implements com.sun.org.apache.xml.internal.dtm.DTMIterator.isDocOrdered.

Returns true if all the nodes in the iteration well be returned in document order.

Warning

This can only be called after setRoot has been called!

Returns:boolean

true as a default.

setInnerExpressionback to summary
public void setInnerExpression(Expression expr)

Set the inner contained expression of this filter.

setRootback to summary
public void setRoot(int context, Object environment)

Overrides com.sun.org.apache.xpath.internal.axes.LocPathIterator.setRoot.

Implements com.sun.org.apache.xml.internal.dtm.DTMIterator.setRoot.

Initialize the context values for this expression after it is cloned.

Parameters
context:int

The XPath runtime context for this transformation.

com.sun.org.apache.xpath.internal.axes back to summary

pack-priv Class FilterExprIterator.filterExprOwner

extends Object
implements ExpressionOwner
Class Inheritance
  • java.lang.Object
  • com.sun.org.apache.xpath.internal.axes.FilterExprIterator.filterExprOwner
All Implemented Interfaces
com.sun.org.apache.xpath.internal.ExpressionOwner

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Expression
getExpression()

Implements com.sun.org.apache.xpath.internal.ExpressionOwner.getExpression.

Get the raw Expression object that this class wraps.

public void
setExpression(Expression exp)

Implements com.sun.org.apache.xpath.internal.ExpressionOwner.setExpression.

Set the raw expression object for this object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

filterExprOwnerback to summary
pack-priv filterExprOwner()

Method Detail

getExpressionback to summary
public Expression getExpression()

Implements com.sun.org.apache.xpath.internal.ExpressionOwner.getExpression.

Doc from com.sun.org.apache.xpath.internal.ExpressionOwner.getExpression.

Get the raw Expression object that this class wraps.

See Also
ExpressionOwner#getExpression()
setExpressionback to summary
public void setExpression(Expression exp)

Implements com.sun.org.apache.xpath.internal.ExpressionOwner.setExpression.

Doc from com.sun.org.apache.xpath.internal.ExpressionOwner.setExpression.

Set the raw expression object for this object.

See Also
ExpressionOwner#setExpression(Expression)