| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | DEBUG_MATCHES
Set to true to send diagnostics about pattern matches to the consol. |
| protected int | m_axis
The axis for this test. |
| pack-priv Expression[] | m_predicates
The list of predicate expressions for this pattern step. |
| pack-priv StepPattern | m_relativePathPattern
Reference to nodetest and predicate for parent or ancestor. |
| pack-priv String | m_targetString
The target local name or psuedo name, for hash table lookup optimization. |
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public | StepPattern(int
Bit set defined mainly by whatToShow, String org..The namespace to be tested. namespace, String The local name to be tested. name, int The Axis for this test, one of of Axes.ANCESTORORSELF, etc. axis, int No longer used. axisForPredicate)Construct a StepPattern that tests for namespaces and node names. |
| public | StepPattern(int
Bit set defined mainly by whatToShow, int org..The Axis for this test, one of of Axes.ANCESTORORSELF, etc. axis, int No longer used. axisForPredicate)Construct a StepPattern that doesn't test for node names. |
| Modifier and Type | Method and Description |
|---|---|
| public void | calcScore()
Overrides com. Static calc of match score. |
| public void | calcTargetString()
Calculate the local name or psuedo name of the node that this pattern will test, for hash table lookup optimization. |
| protected void | |
| public void | callVisitors(ExpressionOwner owner, XPathVisitor visitor)
Overrides com. Implements com. 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. |
| private final boolean | Returns: true of the position of the context matches pos, false otherwise.The XPath runtime context. xctxt, int Which predicate we're evaluating of foo[1][2][3]. predPos, DTM The DTM of the current node. dtm, int The currentNode. context, int The position being requested, i.e. the value returned by
m_predicates[predPos].execute(xctxt). pos)New Method to check whether the current node satisfies a position predicate |
| public boolean | deepEquals(Expression expr)
Overrides com. Compare this object with another object and see if they are equal, include the sub heararchy. |
| public XObject | Returns: com.,
com.,
com.,
com., or
com..XPath runtime context. xctxt, int The current node context. currentNode)Overrides com. Execute this pattern step, including predicates. |
| public XObject | Returns: com.,
com.,
com.,
com., or
com..XPath runtime context. xctxt)Overrides com. Execute this pattern step, including predicates. |
| public XObject | Returns: The result of the expression in the form of aXObject.The XPath runtime context. xctxt, int The currentNode. currentNode, DTM The DTM of the current node. dtm, int The expanded type ID of the current node. expType)Overrides com. Execute an expression in the XPath runtime context, and return the result of the expression. |
| protected final boolean | Returns: true if the node should be accepted, false otherwise.The XPath runtime context. xctxt, DTM The DTM of the current node. dtm, int The current node context. currentNode)Execute the predicates on this step to determine if the current node should be filtered or accepted. |
| protected final XObject | Returns: com.,
com.,
com.,
com., or
com..The XPath runtime context. xctxt, DTM The DTM of the current node. dtm, int The current node context. currentNode)Execute the match pattern step relative to another step. |
| 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 The number of variables in the global variable area. globalsSize)Overrides com. This function is used to fixup variables from QNames to stack frame indexes at stylesheet build time. |
| public int | Returns: The Axis for this test, one of of Axes.ANCESTORORSELF, etc.Get the axis that this step follows. |
| public Expression | getExpression()
Implements com. Get the raw Expression object that this class wraps. |
| public int | Returns: the count of the nodes that match the test.XPath runtime context. xctxt)Implements com. Get the count of the nodes that match the test, which is the proximity position of the last node that can pass this test in the sub context selection. |
| public double | Returns: com.,
com.,
com.,
com., or
com..The XPath runtime context. xctxt, int The node to be tested. context)Get the match score of the given node. |
| public Expression | Returns: A predicate expression.The index of the predicate. i)Get a predicate expression. |
| public final int | Returns: the number of predicates for this match pattern step.Get the number of predicates for this match pattern step. |
| public Expression[] | Returns: List of expression objects.Set the list of predicate expressions for this pattern step. |
| private final int | Returns: the proximity position index of the current node based on the node test.XPath runtime context. xctxt, int Which predicate we're evaluating of foo[1][2][3]. predPos, boolean If true, don't terminate when the context node is found. findLast)Get the proximity position index of the current node based on this node test. |
| public int | Returns: the proximity position index of the current node based on the node test.XPath runtime context. xctxt)Implements com. Get the proximity position index of the current node based on this node test. |
| public StepPattern | Returns: The relative pattern expression.Get the reference to nodetest and predicate for parent or ancestor. |
| public String | Returns: local name or psuedo name of the node.Get the local name or psuedo name of the node that this pattern will test, for hash table lookup optimization. |
| public void | setAxis(int
The Axis for this test, one of of Axes.ANCESTORORSELF, etc. axis)Set the axis that this step should follow. |
| public void | setExpression(Expression exp)
Implements com. Set the raw expression object for this object. |
| public void | setPredicates(Expression[]
An array of expressions that define predicates
for this step. predicates)Set the predicates for this match pattern step. |
| public void | setRelativePathPattern(StepPattern
The relative pattern expression. expr)Set the reference to nodetest and predicate for parent or ancestor. |
| public String | Returns: A string representation of this step, built by reverse-engineering the contained info.Overrides java. Get the string represenentation of this step for diagnostic purposes. |
| DEBUG_MATCHES | back to summary |
|---|---|
| private static final boolean DEBUG_MATCHES Set to true to send diagnostics about pattern matches to the consol. | |
| m_axis | back to summary |
|---|---|
| protected int m_axis The axis for this test. | |
| m_predicates | back to summary |
|---|---|
| pack-priv Expression[] m_predicates The list of predicate expressions for this pattern step. | |
| m_relativePathPattern | back to summary |
|---|---|
| pack-priv StepPattern m_relativePathPattern Reference to nodetest and predicate for parent or ancestor. | |
| m_targetString | back to summary |
|---|---|
| pack-priv String m_targetString The target local name or psuedo name, for hash table lookup optimization. | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID Hides com. | |
| StepPattern | back to summary |
|---|---|
| public StepPattern(int whatToShow, String namespace, String name, int axis, int axisForPredicate) Construct a StepPattern that tests for namespaces and node names.
| |
| StepPattern | back to summary |
|---|---|
| public StepPattern(int whatToShow, int axis, int axisForPredicate) Construct a StepPattern that doesn't test for node names.
| |
| calcScore | back to summary |
|---|---|
| public void calcScore() Overrides com. Static calc of match score. | |
| calcTargetString | back to summary |
|---|---|
| public void calcTargetString() Calculate the local name or psuedo name of the node that this pattern will test, for hash table lookup optimization. | |
| callSubtreeVisitors | back to summary |
|---|---|
| protected void callSubtreeVisitors(XPathVisitor visitor) Call the visitors on the subtree. Factored out from callVisitors so it may be called by derived classes. | |
| 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. | |
| canTraverseOutsideSubtree | back to summary |
|---|---|
| public boolean canTraverseOutsideSubtree() Overrides com. Tell if this expression or it's subexpressions can traverse outside the current subtree. Note Ancestors tests with predicates are problematic, and will require special treatment.
| |
| checkProximityPosition | back to summary |
|---|---|
| private final boolean checkProximityPosition(XPathContext xctxt, int predPos, DTM dtm, int context, int pos) New Method to check whether the current node satisfies a position predicate
| |
| 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.
| |
| execute | back to summary |
|---|---|
| public XObject execute(XPathContext xctxt, int currentNode) throws TransformerException Overrides com. Execute this pattern step, including predicates.
| |
| execute | back to summary |
|---|---|
| public XObject execute(XPathContext xctxt) throws TransformerException Overrides com. Execute this pattern step, including predicates.
| |
| execute | back to summary |
|---|---|
| public XObject execute(XPathContext xctxt, int currentNode, DTM dtm, int expType) throws TransformerException Overrides com. Execute an expression in the XPath runtime context, and return the result of the expression.
| |
| executePredicates | back to summary |
|---|---|
| protected final boolean executePredicates(XPathContext xctxt, DTM dtm, int currentNode) throws TransformerException Execute the predicates on this step to determine if the current node should be filtered or accepted.
| |
| executeRelativePathPattern | back to summary |
|---|---|
| protected final XObject executeRelativePathPattern(XPathContext xctxt, DTM dtm, int currentNode) throws TransformerException Execute the match pattern step relative to another step.
| |
| 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.
| |
| getAxis | back to summary |
|---|---|
| public int getAxis() Get the axis that this step follows.
| |
| getExpression | back to summary |
|---|---|
| public Expression getExpression() Implements com. Doc from com. Get the raw Expression object that this class wraps.
| |
| getLastPos | back to summary |
|---|---|
| public int getLastPos(XPathContext xctxt) Implements com. Get the count of the nodes that match the test, which is the proximity position of the last node that can pass this test in the sub context selection. In XSLT 1-based indexing, this count is the index of the last node.
| |
| getMatchScore | back to summary |
|---|---|
| public double getMatchScore(XPathContext xctxt, int context) throws TransformerException Get the match score of the given node.
| |
| getPredicate | back to summary |
|---|---|
| public Expression getPredicate(int i) Get a predicate expression.
| |
| getPredicateCount | back to summary |
|---|---|
| public final int getPredicateCount() Get the number of predicates for this match pattern step.
| |
| getPredicates | back to summary |
|---|---|
| public Expression[] getPredicates() Set the list of predicate expressions for this pattern step.
| |
| getProximityPosition | back to summary |
|---|---|
| private final int getProximityPosition(XPathContext xctxt, int predPos, boolean findLast) Get the proximity position index of the current node based on this node test.
| |
| getProximityPosition | back to summary |
|---|---|
| public int getProximityPosition(XPathContext xctxt) Implements com. Get the proximity position index of the current node based on this node test.
| |
| getRelativePathPattern | back to summary |
|---|---|
| public StepPattern getRelativePathPattern() Get the reference to nodetest and predicate for parent or ancestor.
| |
| getTargetString | back to summary |
|---|---|
| public String getTargetString() Get the local name or psuedo name of the node that this pattern will test, for hash table lookup optimization.
| |
| setAxis | back to summary |
|---|---|
| public void setAxis(int axis) Set the axis that this step should follow.
| |
| setExpression | back to summary |
|---|---|
| public void setExpression(Expression exp) Implements com. Doc from com. Set the raw expression object for this object. | |
| setPredicates | back to summary |
|---|---|
| public void setPredicates(Expression[] predicates) Set the predicates for this match pattern step.
| |
| setRelativePathPattern | back to summary |
|---|---|
| public void setRelativePathPattern(StepPattern expr) Set the reference to nodetest and predicate for parent or ancestor.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Get the string represenentation of this step for diagnostic purposes.
| |
| 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 | |
| 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. | |