Modifier and Type | Class and Description |
---|---|
pack-priv class |
Modifier and Type | Field and Description |
---|---|
pack-priv static final boolean | DEBUG_PREDICATECOUNTING
If true, diagnostic messages about predicate execution will be posted. |
protected transient boolean | m_foundLast
This is true if nextNode returns null. |
protected LocPathIterator | m_lpi
The owning location path iterator. |
protected int | |
pack-priv transient int | m_predicateIndex
Which predicate we are executing. |
private Expression[] | m_predicates
The list of predicate expressions. |
protected transient int[] | m_proximityPositions
An array of counts that correspond to the number of predicates the step contains. |
pack-priv static final long |
Access | Constructor and Description |
---|---|
pack-priv | PredicatedNodeTest(LocPathIterator
non-null reference to the parent iterator. locPathIterator)Construct an AxesWalker using a LocPathIterator. |
pack-priv |
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)Test whether a specified node is visible in the logical view of a TreeWalker or NodeIterator. |
public void | callPredicateVisitors(XPathVisitor
The visitor whose appropriate method will be called. visitor)This will traverse the heararchy, calling the visitor for each member. |
public boolean | Returns: true if traversal outside the context node's subtree can occur.Overrides com. Tell if this expression or it's subexpressions can traverse outside the current subtree. |
public Object | Returns: A new PredicatedNodeTest that can be used without mutating this one.Overrides java. Get a cloned PrdicatedNodeTest. |
protected void | countProximityPosition(int
The index into the m_proximityPositions array, where the increment
will occur. i)Count forward 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. |
pack-priv boolean | Returns: the result of executing the predicate expressions.The current context node. context, XPathContext The XPath runtime context. xctxt)Process the predicates. |
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 abstract int | Returns: the index of the last node that can be itterated to.XPath runtime context. xctxt)Redeclares com. Get the index of the last node that can be itterated to. |
public LocPathIterator | Returns: the owning location path iterator, which should not be null.Get the owning location path iterator. |
public Expression | Returns: A predicate expression.Index of the predicate. index)Get a predicate expression at the given index. |
public int | Returns: the number of predicates that this walker has.Get the number of predicates that this walker has. |
public int | Returns: The current predicate index, or -1 if no predicate is executing.Get which predicate is executing. |
public int | Returns: The node position of this walker in the sub-context node list.Get the current sub-context position. |
public int | Returns: The node position of this walker in the sub-context node list.The XPath runtime context. xctxt)Implements com. Get the current sub-context position. |
protected int | Returns: The node position of this walker in the sub-context node list.The index of the predicate where the proximity
should be taken from. predicateIndex)Get the current sub-context position. |
protected void | initPredicateInfo(Compiler
The Compiler object that has information about this
walker in the op map. compiler, int The op code position of this location step. opPos)Init predicate info. |
public void | initProximityPosition(int
The index into the m_proximityPositions array. i)Init the proximity position to zero for a forward axes. |
public boolean | |
protected String | Returns: Informative string about the argument.Node to give diagnostic information about, or null. n)Diagnostics. |
private void | readObject(ObjectInputStream
Input stream to read from stream)Read the object from a serialization stream. |
public void | |
public void | setLocPathIterator(LocPathIterator
non-null reference to the owning location path iterator. li)Set the location path iterator owner for this walker. |
public void | setPredicateCount(int
The number of predicates, which must be equal or less
than the existing count. count)Set the number of predicates that this walker has. |
DEBUG_PREDICATECOUNTING | back to summary |
---|---|
pack-priv static final boolean DEBUG_PREDICATECOUNTING If true, diagnostic messages about predicate execution will be posted. |
m_foundLast | back to summary |
---|---|
protected transient boolean m_foundLast This is true if nextNode returns null. |
m_lpi | back to summary |
---|---|
protected LocPathIterator m_lpi The owning location path iterator. |
m_predCount | back to summary |
---|---|
protected int m_predCount |
m_predicateIndex | back to summary |
---|---|
pack-priv transient int m_predicateIndex Which predicate we are executing. |
m_predicates | back to summary |
---|---|
private Expression[] m_predicates The list of predicate expressions. Is static and does not need to be deep cloned. |
m_proximityPositions | back to summary |
---|---|
protected transient int[] m_proximityPositions An array of counts that correspond to the number of predicates the step contains. |
serialVersionUID | back to summary |
---|---|
pack-priv static final long serialVersionUID Hides com. |
PredicatedNodeTest | back to summary |
---|---|
pack-priv PredicatedNodeTest(LocPathIterator locPathIterator) Construct an AxesWalker using a LocPathIterator.
|
PredicatedNodeTest | back to summary |
---|---|
pack-priv PredicatedNodeTest() Construct an AxesWalker. The location path iterator will have to be set before use. |
acceptNode | back to summary |
---|---|
public short acceptNode(int n) Test whether a specified node is visible in the logical view of a TreeWalker or NodeIterator. This function will be called by the implementation of TreeWalker and NodeIterator; it is not intended to be called directly from user code.
|
callPredicateVisitors | back to summary |
---|---|
public void callPredicateVisitors(XPathVisitor visitor) This will traverse the heararchy, calling the visitor for each member. If the called visitor method returns false, the subtree should not be called.
|
canTraverseOutsideSubtree | back to summary |
---|---|
public boolean canTraverseOutsideSubtree() Overrides com. Tell if this expression or it's subexpressions can traverse outside the current subtree.
|
clone | back to summary |
---|---|
public Object clone() throws CloneNotSupportedException Overrides java. Get a cloned PrdicatedNodeTest.
|
countProximityPosition | back to summary |
---|---|
protected void countProximityPosition(int i) Count forward 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.
|
executePredicates | back to summary |
---|---|
pack-priv boolean executePredicates(int context, XPathContext xctxt) throws TransformerException Process the predicates.
|
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.
|
getLastPos | back to summary |
---|---|
public abstract int getLastPos(XPathContext xctxt) Redeclares com. Get the index of the last node that can be itterated to.
|
getLocPathIterator | back to summary |
---|---|
public LocPathIterator getLocPathIterator() Get the owning location path iterator.
|
getPredicate | back to summary |
---|---|
public Expression getPredicate(int index) Get a predicate expression at the given index.
|
getPredicateCount | back to summary |
---|---|
public int getPredicateCount() Get the number of predicates that this walker has.
|
getPredicateIndex | back to summary |
---|---|
public int getPredicateIndex() Get which predicate is executing.
|
getProximityPosition | back to summary |
---|---|
public int getProximityPosition() Get the current sub-context position.
|
getProximityPosition | back to summary |
---|---|
public int getProximityPosition(XPathContext xctxt) Implements com. Get the current sub-context position.
|
getProximityPosition | back to summary |
---|---|
protected int getProximityPosition(int predicateIndex) Get the current sub-context position.
|
initPredicateInfo | back to summary |
---|---|
protected void initPredicateInfo(Compiler compiler, int opPos) throws TransformerException Init predicate info.
|
initProximityPosition | back to summary |
---|---|
public void initProximityPosition(int i) throws TransformerException Init the proximity position to zero for a forward axes.
|
isReverseAxes | back to summary |
---|---|
public boolean isReverseAxes() Tells if this is a reverse axes.
|
nodeToString | back to summary |
---|---|
protected String nodeToString(int n) Diagnostics.
|
readObject | back to summary |
---|---|
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException Read the object from a serialization stream.
|
resetProximityPositions | back to summary |
---|---|
public void resetProximityPositions() Reset the proximity positions counts. |
setLocPathIterator | back to summary |
---|---|
public void setLocPathIterator(LocPathIterator li) Set the location path iterator owner for this walker. Besides initialization, this function is called during cloning operations.
|
setPredicateCount | back to summary |
---|---|
public void setPredicateCount(int count) Set the number of predicates that this walker has. This does more that one would think, as it creates a new predicate array of the size of the count argument, and copies count predicates into the new one from the old, and then reassigns the predicates value. All this to keep from having to have a predicate count value.
|
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
the raw Expression object, which should not normally be null. exp)Implements com. Set the raw expression object for this object. |
m_index | back to summary |
---|---|
pack-priv int m_index |
PredOwner | back to summary |
---|---|
pack-priv PredOwner(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.
|