Modifier and Type | Field and Description |
---|---|
protected AxesWalker | m_firstWalker
The head of the step walker list. |
protected AxesWalker | m_lastUsedWalker
The last used step walker in the walker list. |
pack-priv static final long |
Access | Constructor and Description |
---|---|
pack-priv | WalkingIterator(Compiler
The Compiler which is creating
this expression. compiler, int The position of this iterator in the
opcode list from the compiler. opPos, int analysis, boolean True if walkers should be
loaded, or false if this is a derived iterator and
it doesn't wish to load child walkers. shouldLoadWalkers)Create a WalkingIterator iterator, including creation of step walkers from the opcode list, and call back into the Compiler to create predicate expressions. |
public | WalkingIterator(PrefixResolver
The namespace context for this iterator,
should be OK if null. nscontext)Create a WalkingIterator object. |
Modifier and Type | Method and Description |
---|---|
public void | callVisitors(ExpressionOwner
The owner of the visitor, where that path may be
rewritten if needed. owner, XPathVisitor The visitor whose appropriate method will be called. visitor)Overrides com. Implements com. This will traverse the heararchy, calling the visitor for each member. |
public Object | Returns: A clone of this iterator that holds the same node position.Overrides com. Implements com. Get a cloned WalkingIterator that holds the same position as this iterator. |
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. Implements com. Detaches the iterator 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 Expression | getExpression()
Implements com. Get the raw Expression object that this class wraps. |
public final AxesWalker | Returns: The head of the walker list, or null if this iterator does not implement walkers.Get the head of the walker list. |
public final AxesWalker | |
public int | Returns: The nextNode in the set being iterated over, or
null if there are no more members in that set.Implements abstract com. Implements com. Returns the next node in the set and advances the position of the iterator in the set. |
public void | reset()
Overrides com. Implements com. Reset the iterator. |
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. |
public final void | |
public final void | |
public void | setRoot(int
The XPath runtime context for this
transformation. context, Object The environment object.
The environment in which this iterator operates, which should provide:
environment)
At this time the exact implementation of this environment is application dependent. Probably a proper interface will be created fairly soon. Overrides com. Implements com. Initialize the context values for this expression after it is cloned. |
m_firstWalker | back to summary |
---|---|
protected AxesWalker m_firstWalker The head of the step walker list. |
m_lastUsedWalker | back to summary |
---|---|
protected AxesWalker m_lastUsedWalker The last used step walker in the walker list. |
serialVersionUID | back to summary |
---|---|
pack-priv static final long serialVersionUID Hides com. |
WalkingIterator | back to summary |
---|---|
pack-priv WalkingIterator(Compiler compiler, int opPos, int analysis, boolean shouldLoadWalkers) throws TransformerException Create a WalkingIterator iterator, including creation of step walkers from the opcode list, and call back into the Compiler to create predicate expressions.
|
WalkingIterator | back to summary |
---|---|
public WalkingIterator(PrefixResolver nscontext) Create a WalkingIterator object.
|
callVisitors | back to summary |
---|---|
public void callVisitors(ExpressionOwner owner, XPathVisitor visitor) Overrides com. Implements com. Doc from 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. Implements com. Get a cloned WalkingIterator that holds the same position as this iterator.
|
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. Implements com. Detaches the iterator from the set which it iterated over, releasing
any computational resources and placing the iterator in the INVALID
state. After |
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.
|
getExpression | back to summary |
---|---|
public Expression getExpression() Implements com. Doc from com. Get the raw Expression object that this class wraps.
|
getFirstWalker | back to summary |
---|---|
public final AxesWalker getFirstWalker() Get the head of the walker list.
|
getLastUsedWalker | back to summary |
---|---|
public final AxesWalker getLastUsedWalker() Get the last used walker.
|
nextNode | back to summary |
---|---|
public int nextNode() Implements abstract com. Implements com. Returns the next node in the set and advances the position of the iterator in the set. After a NodeIterator is created, the first call to nextNode() returns the first node in the set.
|
reset | back to summary |
---|---|
public void reset() Overrides com. Implements com. Reset the iterator. |
setExpression | back to summary |
---|---|
public void setExpression(Expression exp) Implements com. Doc from com. Set the raw expression object for this object.
|
setFirstWalker | back to summary |
---|---|
public final void setFirstWalker(AxesWalker walker) Set the head of the walker list.
|
setLastUsedWalker | back to summary |
---|---|
public final void setLastUsedWalker(AxesWalker walker) Set the last used walker.
|
setRoot | back to summary |
---|---|
public void setRoot(int context, Object environment) Overrides com. Implements com. Initialize the context values for this expression after it is cloned.
|