|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xpath.Expression | +--org.apache.xpath.patterns.NodeTest | +--org.apache.xpath.axes.PredicatedNodeTest
Fields inherited from class org.apache.xpath.patterns.NodeTest |
SCORE_NODETEST,
SCORE_NONE,
SCORE_NSWILD,
SCORE_OTHER,
SCORE_QNAME,
SHOW_BYFUNCTION,
SUPPORTS_PRE_STRIPPING,
WILD |
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. |
java.lang.Object |
clone()
Get a cloned PrdicatedNodeTest. |
boolean |
deepEquals(Expression expr)
|
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. |
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. |
Methods inherited from class org.apache.xpath.patterns.NodeTest |
callVisitors,
debugWhatToShow,
execute,
execute,
execute,
getDefaultScore,
getLocalName,
getNamespace,
getNodeTypeTest,
getStaticScore,
getWhatToShow,
initNodeTest,
initNodeTest,
setLocalName,
setNamespace,
setStaticScore,
setWhatToShow |
Methods inherited from class org.apache.xpath.Expression |
asIterator,
asIteratorRaw,
asNode,
assertion,
bool,
error,
execute,
executeCharsToContentHandler,
exprAddChild,
exprGetChild,
exprGetNumChildren,
exprGetParent,
exprSetParent,
getColumnNumber,
getExpressionOwner,
getLineNumber,
getPublicId,
getSystemId,
isNodesetExpr,
isStableNumber,
num,
warn,
xstr |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
public int getPredicateCount()
public void setPredicateCount(int count)
count
- The number of predicates, which must be equal or less
than the existing count.public Expression getPredicate(int index)
index
- Index of the predicate.public int getProximityPosition()
public int getProximityPosition(XPathContext xctxt)
xctxt
- The XPath runtime context.public abstract int getLastPos(XPathContext xctxt)
xctxt
- XPath runtime context.public void resetProximityPositions()
public void initProximityPosition(int i) throws TransformerException
i
- The index into the m_proximityPositions array.public boolean isReverseAxes()
public int getPredicateIndex()
public void fixupVariables(java.util.Vector vars, int globalsSize)
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).public short acceptNode(int n)
n
- The node to check to see if it passes the filter or not.public LocPathIterator getLocPathIterator()
public void setLocPathIterator(LocPathIterator li)
li
- non-null reference to the owning location path iterator.public boolean canTraverseOutsideSubtree()
public void callPredicateVisitors(XPathVisitor visitor)
owner
- The owner of the visitor, where that path may be
rewritten if needed.visitor
- The visitor whose appropriate method will be called.public boolean deepEquals(Expression expr)
Expression.deepEquals(Expression)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |