com.sun.org.apache.xpath.internal.axes#LocPathIterator
Modifier and Type | Field and Description |
---|---|
protected int | m_axis
The traversal axis from where the nodes will be filtered. |
protected DTMAxisIterator | m_iterator
The DTM inner traversal class, that corresponds to the super axis. |
pack-priv static final long |
Access | Constructor and Description |
---|---|
pack-priv | OneStepIterator(Compiler
A reference to the Compiler that contains the op map. compiler, int The position within the op map, which contains the
location path expression for this itterator. opPos, int analysis)Create a OneStepIterator object. |
public | OneStepIterator(DTMAxisIterator
The DTM iterator which this iterator will use. iterator, int One of Axis.Child, etc., or -1 if the axis is unknown. axis)Create a OneStepIterator object. |
Modifier and Type | Method and Description |
---|---|
public Object | Returns: A new iterator that can be used without mutating this one.Overrides com. Implements com. Get a cloned iterator. |
public DTMIterator | Returns: A cloned NodeIterator set of the start of the query.Overrides com. Implements com. Get a cloned Iterator that is reset to the beginning of the query. |
protected void | countProximityPosition(int
The predicate index. i)Overrides com. Count backwards one proximity position. |
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 int | Returns: Axis.CHILD, etc., or -1 if the axis is not known or is of multiple types.Overrides com. Implements com. Returns the axis being iterated, if it is known. |
public int | Returns: The number of nodes in the list, always greater or equal to zero.Overrides com. Implements com. The number of nodes in the list. |
protected int | getNextNode()
Overrides com. Get the next node via getFirstAttribute && getNextAttribute. |
protected int | Returns: The pridicate index, or -1.The predicate index of the proximity position. predicateIndex)Overrides com. Get the current sub-context position. |
public boolean | Returns: true for this class.Overrides com. Tells if this is a reverse axes. |
public void | reset()
Overrides com. Implements com. Reset the iterator. |
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_axis | back to summary |
---|---|
protected int m_axis The traversal axis from where the nodes will be filtered. |
m_iterator | back to summary |
---|---|
protected DTMAxisIterator m_iterator The DTM inner traversal class, that corresponds to the super axis.
|
serialVersionUID | back to summary |
---|---|
pack-priv static final long serialVersionUID Hides com. |
OneStepIterator | back to summary |
---|---|
pack-priv OneStepIterator(Compiler compiler, int opPos, int analysis) throws TransformerException Create a OneStepIterator object.
|
OneStepIterator | back to summary |
---|---|
public OneStepIterator(DTMAxisIterator iterator, int axis) throws TransformerException Create a OneStepIterator object.
|
clone | back to summary |
---|---|
public Object clone() throws CloneNotSupportedException Overrides com. Implements com. Get a cloned iterator.
|
cloneWithReset | back to summary |
---|---|
public DTMIterator cloneWithReset() throws CloneNotSupportedException Overrides com. Implements com. Get a cloned Iterator that is reset to the beginning of the query.
|
countProximityPosition | back to summary |
---|---|
protected void countProximityPosition(int i) Overrides com. Count backwards one proximity position.
|
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 |
getAxis | back to summary |
---|---|
public int getAxis() Overrides com. Implements com. Returns the axis being iterated, if it is known.
|
getLength | back to summary |
---|---|
public int getLength() Overrides com. Implements com. The number of nodes in the list. The range of valid child node indices
is 0 to
|
getNextNode | back to summary |
---|---|
protected int getNextNode() Overrides com. Get the next node via getFirstAttribute && getNextAttribute.
|
getProximityPosition | back to summary |
---|---|
protected int getProximityPosition(int predicateIndex) Overrides com. Get the current sub-context position. In order to do the reverse axes count, for the moment this re-searches the axes up to the predicate. An optimization on this is to cache the nodes searched, but, for the moment, this case is probably rare enough that the added complexity isn't worth it.
|
isReverseAxes | back to summary |
---|---|
public boolean isReverseAxes() Overrides com. Tells if this is a reverse axes. Overrides AxesWalker#isReverseAxes.
|
reset | back to summary |
---|---|
public void reset() Overrides com. Implements com. Reset the iterator. |
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.
|