org.apache.xpath.axes
public abstract class PredicatedNodeTest extends NodeTest implements SubContextList
Method Summary | |
---|---|
short | acceptNode(int n)
Test whether a specified node is visible in the logical view of a
TreeWalker or NodeIterator. |
void | callPredicateVisitors(XPathVisitor visitor)
This will traverse the heararchy, calling the visitor for
each member. |
boolean | canTraverseOutsideSubtree()
Tell if this expression or it's subexpressions can traverse outside
the current subtree.
|
Object | clone()
Get a cloned PrdicatedNodeTest.
|
boolean | deepEquals(Expression expr) |
void | fixupVariables(Vector vars, int globalsSize)
This function is used to fixup variables from QNames to stack frame
indexes at stylesheet build time. |
abstract int | getLastPos(XPathContext xctxt)
Get the index of the last node that can be itterated to.
|
LocPathIterator | getLocPathIterator()
Get the owning location path iterator.
|
Expression | getPredicate(int index)
Get a predicate expression at the given index.
|
int | getPredicateCount()
Get the number of predicates that this walker has.
|
int | getPredicateIndex()
Get which predicate is executing.
|
int | getProximityPosition()
Get the current sub-context position.
|
int | getProximityPosition(XPathContext xctxt)
Get the current sub-context position.
|
void | initProximityPosition(int i)
Init the proximity position to zero for a forward axes.
|
boolean | isReverseAxes()
Tells if this is a reverse axes.
|
void | resetProximityPositions()
Reset the proximity positions counts. |
void | setLocPathIterator(LocPathIterator li)
Set the location path iterator owner for this walker. |
void | setPredicateCount(int count)
Set the number of predicates that this walker has. |
Parameters: n The node to check to see if it passes the filter or not.
Returns: a constant to determine whether the node is accepted, rejected, or skipped, as defined above .
Parameters: visitor The visitor whose appropriate method will be called.
Returns: true if traversal outside the context node's subtree can occur.
Returns: A new PredicatedNodeTest that can be used without mutating this one.
Throws: CloneNotSupportedException
See Also: deepEquals
Parameters: 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).
Parameters: xctxt XPath runtime context.
Returns: the index of the last node that can be itterated to.
Returns: the owning location path iterator, which should not be null.
Parameters: index Index of the predicate.
Returns: A predicate expression.
Returns: the number of predicates that this walker has.
Returns: The current predicate index, or -1 if no predicate is executing.
Returns: The node position of this walker in the sub-context node list.
Parameters: xctxt The XPath runtime context.
Returns: The node position of this walker in the sub-context node list.
Parameters: i The index into the m_proximityPositions array.
Throws: javax.xml.transform.TransformerException
Returns: false, unless a derived class overrides.
Parameters: li non-null reference to the owning location path iterator.
Parameters: count The number of predicates, which must be equal or less than the existing count.