| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| protected LocPathIterator[] | m_exprs
The location path iterators, one for each location path contained in the union expression. |
| protected DTMIterator[] | m_iterators
The location path iterators, one for each location path contained in the union expression. |
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | UnionPathIterator(Compiler
The Compiler which is creating
this expression. compiler, int The position of this iterator in the
opcode list from the compiler. opPos)Create a UnionPathIterator object, including creation of location path iterators from the opcode list, and call back into the Compiler to create predicate expressions. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addIterator(DTMIterator
non-null reference to a location path iterator. expr)Add an iterator to the union list. |
| public void | callVisitors(ExpressionOwner owner, XPathVisitor 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 LocPathIterator that holds the same position as this iterator. |
| protected LocPathIterator | Returns: New location path iterator.The Compiler which is creating
this expression. compiler, int The position of this iterator in the opPos)Create a new location path iterator. |
| public static LocPathIterator | Returns: Object that is derived from LocPathIterator.The Compiler which is creating
this expression. compiler, int The position of this iterator in the
opcode list from the compiler. opPos)This will return an iterator capable of handling the union of paths given. |
| public boolean | deepEquals(Expression 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 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. |
| protected void | loadLocationPaths(Compiler
The Compiler which is creating
this expression. compiler, int The position of this iterator in the
opcode list from the compiler. opPos, int The insert position of the iterator. count)Initialize the location path iterators. |
| 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. |
| private void | readObject(ObjectInputStream
Input stream to read from stream)Hides com. Read the object from a serialization stream. |
| public void | setRoot(int
The XPath runtime context for this
transformation. context, Object environment)Overrides com. Implements com. Initialize the context values for this expression after it is cloned. |
| m_exprs | back to summary |
|---|---|
| protected LocPathIterator[] m_exprs The location path iterators, one for each location path contained in the union expression. | |
| m_iterators | back to summary |
|---|---|
| protected DTMIterator[] m_iterators The location path iterators, one for each location path contained in the union expression.
| |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID Hides com. | |
| UnionPathIterator | back to summary |
|---|---|
| public UnionPathIterator() Constructor to create an instance which you can add location paths to. | |
| UnionPathIterator | back to summary |
|---|---|
| public UnionPathIterator(Compiler compiler, int opPos) throws TransformerException Create a UnionPathIterator object, including creation of location path iterators from the opcode list, and call back into the Compiler to create predicate expressions.
| |
| addIterator | back to summary |
|---|---|
| public void addIterator(DTMIterator expr) Add an iterator to the union list.
| |
| 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 LocPathIterator that holds the same position as this iterator.
| |
| createDTMIterator | back to summary |
|---|---|
| protected LocPathIterator createDTMIterator(Compiler compiler, int opPos) throws TransformerException Create a new location path iterator.
| |
| createUnionIterator | back to summary |
|---|---|
| public static LocPathIterator createUnionIterator(Compiler compiler, int opPos) throws TransformerException This will return an iterator capable of handling the union of paths given.
| |
| 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.
| |
| getAxis | back to summary |
|---|---|
| public int getAxis() Overrides com. Implements com. Returns the axis being iterated, if it is known.
| |
| loadLocationPaths | back to summary |
|---|---|
| protected void loadLocationPaths(Compiler compiler, int opPos, int count) throws TransformerException Initialize the location path iterators. Recursive.
| |
| 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 DTMIterator is created, the first call to nextNode() returns the first node in the set.
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException Hides com. Read the object from a serialization stream.
| |
| 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int |
| 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 exp)
Implements com. Set the raw expression object for this object. |
| m_index | back to summary |
|---|---|
| pack-priv int m_index | |
| iterOwner | back to summary |
|---|---|
| pack-priv iterOwner(int index) | |
| 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. | |