Modifier and Type | Class and Description |
---|---|
pack-priv class |
Modifier and Type | Field 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 |
Access | Constructor and Description |
---|---|
public | FilterExprWalker(WalkingIterator
non-null reference to the parent iterator. locPathIterator)Construct a FilterExprWalker using a LocPathIterator. |
Modifier and Type | Method and Description |
---|---|
public short | Returns: a constant to determine whether the node is accepted, rejected, or skipped, as defined above .The node to check to see if it passes the filter or not. n)Overrides com. This method needs to override AxesWalker.acceptNode because FilterExprWalkers don't need to, and shouldn't, do a node test. |
public void | callPredicateVisitors(XPathVisitor
The visitor whose appropriate method will be called. visitor)Overrides com. This will traverse the heararchy, calling the visitor for each member. |
public Object | Returns: A new FilterExprWalker that can be used without mutating this one.Overrides com. Get a cloned FilterExprWalker. |
public boolean | deepEquals(Expression
Another expression object. expr)Overrides com. Compare this object with another object and see if they are equal, include the sub heararchy. |
public void | detach()
Overrides com. 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. 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.Overrides com. Implements com. Get the analysis bits for this walker, as defined in the WalkerFactory. |
public int | Returns: Axis.CHILD, etc., or -1 if the axis is not known or is of multiple types.Overrides com. Returns the axis being iterated, if it is known. |
public Expression | |
public int | Returns: the index of the last node that can be itterated to.XPath runtime context. xctxt)Overrides com. Implements com. Get the index of the last node that can be itterated to. |
public int | Returns: The new node, ornull if the current node has no
next node in the TreeWalker's logical view.Overrides com. Moves the |
public void | init(Compiler
non-null reference to the Compiler that is constructing. compiler, int positive opcode position for this step. opPos, int The type of step. stepType)Overrides com. Init a FilterExprWalker. |
public boolean | Returns: true as a default.Overrides com. Returns true if all the nodes in the iteration well be returned in document order. |
public void | |
public void | setRoot(int
non-null reference to the root, or starting point of
the query. root)Overrides com. Set the root node of the TreeWalker. |
m_canDetachNodeset | back to summary |
---|---|
private boolean m_canDetachNodeset |
m_expr | back to summary |
---|---|
private Expression m_expr The contained expression. Should be non-null. |
m_exprObj | back to summary |
---|---|
private transient XNodeSet m_exprObj The result of executing m_expr. Needs to be deep cloned on clone op. |
m_mustHardReset | back to summary |
---|---|
private boolean m_mustHardReset |
serialVersionUID | back to summary |
---|---|
pack-priv static final long serialVersionUID Hides com. |
FilterExprWalker | back to summary |
---|---|
public FilterExprWalker(WalkingIterator locPathIterator) Construct a FilterExprWalker using a LocPathIterator.
|
acceptNode | back to summary |
---|---|
public short acceptNode(int n) Overrides com. This method needs to override AxesWalker.acceptNode because FilterExprWalkers don't need to, and shouldn't, do a node test.
|
callPredicateVisitors | back to summary |
---|---|
public void callPredicateVisitors(XPathVisitor visitor) Overrides com. This will traverse the heararchy, calling the visitor for each member. If the called visitor method returns false, the subtree should not be called.
|
clone | back to summary |
---|---|
public Object clone() throws CloneNotSupportedException Overrides com. Get a cloned FilterExprWalker.
|
deepEquals | back to summary |
---|---|
public boolean deepEquals(Expression expr) Overrides com. Doc from com. Compare this object with another object and see if they are equal, include the sub heararchy.
|
detach | back to summary |
---|---|
public void detach() Overrides com. Detaches the walker from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state. |
fixupVariables | back to summary |
---|---|
public void fixupVariables(List<QName> vars, int globalsSize) Overrides com. This function is used to fixup variables from QNames to stack frame indexes at stylesheet build time.
|
getAnalysisBits | back to summary |
---|---|
public int getAnalysisBits() Overrides com. Implements com. Get the analysis bits for this walker, as defined in the WalkerFactory.
|
getAxis | back to summary |
---|---|
public int getAxis() Overrides com. Returns the axis being iterated, if it is known.
|
getInnerExpression | back to summary |
---|---|
public Expression getInnerExpression() Get the inner contained expression of this filter. |
getLastPos | back to summary |
---|---|
public int getLastPos(XPathContext xctxt) Overrides com. Implements com. Get the index of the last node that can be itterated to.
|
getNextNode | back to summary |
---|---|
public int getNextNode() Overrides com. Moves the
|
init | back to summary |
---|---|
public void init(Compiler compiler, int opPos, int stepType) throws TransformerException Overrides com. Init a FilterExprWalker.
|
isDocOrdered | back to summary |
---|---|
public boolean isDocOrdered() Overrides com. 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!
|
setInnerExpression | back to summary |
---|---|
public void setInnerExpression(Expression expr) Set the inner contained expression of this filter. |
setRoot | back to summary |
---|---|
public void setRoot(int root) Overrides com. Set the root node of the TreeWalker.
|
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public Expression | getExpression()
Implements com. Get the raw Expression object that this class wraps. |
public void | setExpression(Expression
the raw Expression object, which should not normally be null. exp)Implements com. Set the raw expression object for this object. |
filterExprOwner | back to summary |
---|---|
pack-priv filterExprOwner() |
getExpression | back to summary |
---|---|
public Expression getExpression() Implements com. Doc from com. Get the raw Expression object that this class wraps.
|
setExpression | back to summary |
---|---|
public void setExpression(Expression exp) Implements com. Doc from com. Set the raw expression object for this object.
|