public class FilterExprWalker extends AxesWalker
m_axis, m_nextWalker, m_traverserm_foundLast, m_lpi, m_predCount, m_proximityPositionsm_name, m_whatToShow, SCORE_NODETEST, SCORE_NONE, SCORE_NSWILD, SCORE_OTHER, SCORE_QNAME, SHOW_BYFUNCTION, WILD| Constructor and Description |
|---|
FilterExprWalker(WalkingIterator locPathIterator)
Construct a FilterExprWalker using a LocPathIterator.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
Object |
clone() |
boolean |
deepEquals(Expression expr)
Compare this object with another object and see if they are equal, include the sub heararchy.
|
void |
detach()
Detaches the walker from the set which it iterated over, releasing any computational resources
and placing the iterator in the INVALID state.
|
static XNodeSet |
executeFilterExpr(int context,
XPathContext xctxt,
PrefixResolver prefixResolver,
boolean isTopLevel,
Expression expr)
Execute the expression.
|
int |
getAnalysisBits()
Get the analysis bits for this path component, as defined in the WalkerFactory.
|
int |
getAxis()
Returns the axis being iterated, if it is known.
|
int |
getLastPos(XPathContext xctxt)
Get the number of nodes in the node list, which, in the XSLT 1 based counting system, is the
last index position.
|
int |
getNextNode()
Get the next node in document order on the axes.
|
void |
init(Compiler compiler,
int opPos,
int stepType)
Initialize an AxesWalker during the parse of the XPath expression.
|
void |
setRoot(int root)
Set the root node of the TreeWalker.
|
callVisitors, getDTM, getNextWalker, getRoot, nextNode, setNextWalker, setPrevWalker, wicanTraverseOutsideSubtree, countProximityPosition, getPredicate, getPredicateCount, getProximityPosition, getProximityPosition, getProximityPosition, initPredicateInfo, initProximityPosition, isReverseAxes, nodeToString, resetProximityPositions, setLocPathIterator, setPredicateCountcalcScore, execute, execute, execute, getLocalName, getNamespace, getNodeTypeTest, getStaticScore, getWhatToShow, initNodeTest, initNodeTest, setLocalName, setNamespace, setStaticScore, setWhatToShowasIterator, asNode, assertion, bool, error, execute, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isSameClass, isStableNumber, numpublic FilterExprWalker(WalkingIterator locPathIterator)
locPathIterator - non-null reference to the parent iterator.public void init(Compiler compiler, int opPos, int stepType) throws TransformerException
init in class AxesWalkercompiler - The Compiler object that has information about this walker in the op map.opPos - The op code position of this location step.stepType - The type of location step.TransformerException - if anypublic void detach()
detach in class AxesWalkerpublic void setRoot(int root)
setRoot in class AxesWalkerroot - The context node of this step.public static XNodeSet executeFilterExpr(int context, XPathContext xctxt, PrefixResolver prefixResolver, boolean isTopLevel, Expression expr) throws WrappedRuntimeException
WrappedRuntimeExceptionpublic Object clone() throws CloneNotSupportedException
clone in class AxesWalkerCloneNotSupportedExceptionpublic short acceptNode(int n)
acceptNode in class PredicatedNodeTestn - The node to check to see if it passes the filter or not.public int getNextNode()
getNextNode in class AxesWalkerpublic int getLastPos(XPathContext xctxt)
getLastPos in interface SubContextListgetLastPos in class AxesWalkerxctxt - The XPath runtime context.public int getAnalysisBits()
getAnalysisBits in interface PathComponentgetAnalysisBits in class AxesWalkerpublic int getAxis()
getAxis in class AxesWalkerpublic void callPredicateVisitors(XPathVisitor visitor)
callPredicateVisitors in class PredicatedNodeTestvisitor - The visitor whose appropriate method will be called.public boolean deepEquals(Expression expr)
deepEquals in class AxesWalkerexpr - Another expression object.Copyright © 2022–2024 HtmlUnit. All rights reserved.