| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
| <!--NewPage-->
|
| <HTML>
|
| <HEAD>
|
| <!-- Generated by javadoc on Thu Nov 22 17:12:59 EST 2007 -->
|
| <TITLE>
|
| Xalan-Java 2.7.1: Class StepPattern
|
| </TITLE>
|
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
|
| </HEAD>
|
| <BODY BGCOLOR="white">
|
|
|
| <!-- ========== START OF NAVBAR ========== -->
|
| <A NAME="navbar_top"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
|
| <TR>
|
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
|
| <TR ALIGN="center" VALIGN="top">
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StepPattern.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
| </TR>
|
| </TABLE>
|
| </TD>
|
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
| </EM>
|
| </TD>
|
| </TR>
|
|
|
| <TR>
|
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../org/apache/xpath/patterns/UnionPattern.html"><B>NEXT CLASS</B></A></FONT></TD>
|
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
|
| <A HREF="StepPattern.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | <A HREF="#fields_inherited_from_class_org.apache.xpath.patterns.NodeTest">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
| </TR>
|
| </TABLE>
|
| <!-- =========== END OF NAVBAR =========== -->
|
|
|
| <HR>
|
| <!-- ======== START OF CLASS DATA ======== -->
|
| <H2>
|
| <FONT SIZE="-1">
|
| org.apache.xpath.patterns</FONT>
|
| <BR>
|
| Class StepPattern</H2>
|
| <PRE>
|
| java.lang.Object
|
| |
|
| +--<A HREF="../../../../org/apache/xpath/Expression.html">org.apache.xpath.Expression</A>
|
| |
|
| +--<A HREF="../../../../org/apache/xpath/patterns/NodeTest.html">org.apache.xpath.patterns.NodeTest</A>
|
| |
|
| +--<B>org.apache.xpath.patterns.StepPattern</B>
|
| </PRE>
|
| <DL>
|
| <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/xpath/patterns/ContextMatchStepPattern.html">ContextMatchStepPattern</A>, <A HREF="../../../../org/apache/xpath/patterns/FunctionPattern.html">FunctionPattern</A></DD>
|
| </DL>
|
| <HR>
|
| <DL>
|
| <DT>public class <B>StepPattern</B><DT>extends <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html">NodeTest</A><DT>implements <A HREF="../../../../org/apache/xpath/axes/SubContextList.html">SubContextList</A>, <A HREF="../../../../org/apache/xpath/ExpressionOwner.html">ExpressionOwner</A></DL>
|
|
|
| <P>
|
| This class represents a single pattern match step.
|
| <P>
|
| <DL>
|
| <DT><B>See Also: </B><DD><A HREF="../../../../serialized-form.html#org.apache.xpath.patterns.StepPattern">Serialized Form</A><DT><B>Usage:</B><DD><i><font size="-1" color="#00FF00"> **For advanced use only**</font></i></DD> |
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <P>
|
| <!-- ======== INNER CLASS SUMMARY ======== -->
|
|
|
|
|
| <!-- =========== FIELD SUMMARY =========== -->
|
|
|
| <A NAME="fields_inherited_from_class_org.apache.xpath.patterns.NodeTest"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| <TD><B>Fields inherited from class org.apache.xpath.patterns.<A HREF="../../../../org/apache/xpath/patterns/NodeTest.html">NodeTest</A></B></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_NODETEST">SCORE_NODETEST</A>,
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_NONE">SCORE_NONE</A>,
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_NSWILD">SCORE_NSWILD</A>,
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_OTHER">SCORE_OTHER</A>,
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_QNAME">SCORE_QNAME</A>,
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SHOW_BYFUNCTION">SHOW_BYFUNCTION</A>,
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SUPPORTS_PRE_STRIPPING">SUPPORTS_PRE_STRIPPING</A>,
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#WILD">WILD</A></CODE></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=2><FONT SIZE="+2">
|
| <B>Constructor Summary</B></FONT></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#StepPattern(int, int, int)">StepPattern</A></B>(int whatToShow, |
| int axis, |
| int axisForPredicate)</CODE>
|
|
|
| <BR>
|
| Construct a StepPattern that doesn't test for node names.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#StepPattern(int, java.lang.String, java.lang.String, int, int)">StepPattern</A></B>(int whatToShow, |
| java.lang.String namespace, |
| java.lang.String name, |
| int axis, |
| int axisForPredicate)</CODE>
|
|
|
| <BR>
|
| Construct a StepPattern that tests for namespaces and node names.</TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <!-- ========== METHOD SUMMARY =========== -->
|
|
|
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=2><FONT SIZE="+2">
|
| <B>Method Summary</B></FONT></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> void</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#calcScore()">calcScore</A></B>()</CODE>
|
|
|
| <BR>
|
| Static calc of match score.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> void</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#calcTargetString()">calcTargetString</A></B>()</CODE>
|
|
|
| <BR>
|
| Calculate the local name or psuedo name of the node that this pattern will test, |
| for hash table lookup optimization.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> void</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#callVisitors(org.apache.xpath.ExpressionOwner, org.apache.xpath.XPathVisitor)">callVisitors</A></B>(<A HREF="../../../../org/apache/xpath/ExpressionOwner.html">ExpressionOwner</A> owner, |
| <A HREF="../../../../org/apache/xpath/XPathVisitor.html">XPathVisitor</A> visitor)</CODE>
|
|
|
| <BR>
|
| </TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#canTraverseOutsideSubtree()">canTraverseOutsideSubtree</A></B>()</CODE>
|
|
|
| <BR>
|
| Tell if this expression or it's subexpressions can traverse outside |
| the current subtree.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#deepEquals(org.apache.xpath.Expression)">deepEquals</A></B>(<A HREF="../../../../org/apache/xpath/Expression.html">Expression</A> expr)</CODE>
|
|
|
| <BR>
|
| </TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../org/apache/xpath/objects/XObject.html">XObject</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#execute(org.apache.xpath.XPathContext)">execute</A></B>(<A HREF="../../../../org/apache/xpath/XPathContext.html">XPathContext</A> xctxt)</CODE>
|
|
|
| <BR>
|
| Execute this pattern step, including predicates.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../org/apache/xpath/objects/XObject.html">XObject</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#execute(org.apache.xpath.XPathContext, int)">execute</A></B>(<A HREF="../../../../org/apache/xpath/XPathContext.html">XPathContext</A> xctxt, |
| int currentNode)</CODE>
|
|
|
| <BR>
|
| Execute this pattern step, including predicates.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../org/apache/xpath/objects/XObject.html">XObject</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#execute(org.apache.xpath.XPathContext, int, org.apache.xml.dtm.DTM, int)">execute</A></B>(<A HREF="../../../../org/apache/xpath/XPathContext.html">XPathContext</A> xctxt, |
| int currentNode, |
| <A HREF="../../../../org/apache/xml/dtm/DTM.html">DTM</A> dtm, |
| int expType)</CODE>
|
|
|
| <BR>
|
| Execute an expression in the XPath runtime context, and return the |
| result of the expression.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> void</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#fixupVariables(java.util.Vector, int)">fixupVariables</A></B>(java.util.Vector vars, |
| int globalsSize)</CODE>
|
|
|
| <BR>
|
| This function is used to fixup variables from QNames to stack frame |
| indexes at stylesheet build time.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> int</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#getAxis()">getAxis</A></B>()</CODE>
|
|
|
| <BR>
|
| Get the axis that this step follows.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../org/apache/xpath/Expression.html">Expression</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#getExpression()">getExpression</A></B>()</CODE>
|
|
|
| <BR>
|
| </TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> int</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#getLastPos(org.apache.xpath.XPathContext)">getLastPos</A></B>(<A HREF="../../../../org/apache/xpath/XPathContext.html">XPathContext</A> xctxt)</CODE>
|
|
|
| <BR>
|
| 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.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> double</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#getMatchScore(org.apache.xpath.XPathContext, int)">getMatchScore</A></B>(<A HREF="../../../../org/apache/xpath/XPathContext.html">XPathContext</A> xctxt, |
| int context)</CODE>
|
|
|
| <BR>
|
| Get the match score of the given node.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../org/apache/xpath/Expression.html">Expression</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#getPredicate(int)">getPredicate</A></B>(int i)</CODE>
|
|
|
| <BR>
|
| Get a predicate expression.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> int</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#getPredicateCount()">getPredicateCount</A></B>()</CODE>
|
|
|
| <BR>
|
| Get the number of predicates for this match pattern step.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../org/apache/xpath/Expression.html">Expression</A>[]</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#getPredicates()">getPredicates</A></B>()</CODE>
|
|
|
| <BR>
|
| Set the list of predicate expressions for this pattern step.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> int</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#getProximityPosition(org.apache.xpath.XPathContext)">getProximityPosition</A></B>(<A HREF="../../../../org/apache/xpath/XPathContext.html">XPathContext</A> xctxt)</CODE>
|
|
|
| <BR>
|
| Get the proximity position index of the current node based on this |
| node test.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../org/apache/xpath/patterns/StepPattern.html">StepPattern</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#getRelativePathPattern()">getRelativePathPattern</A></B>()</CODE>
|
|
|
| <BR>
|
| Get the reference to nodetest and predicate for |
| parent or ancestor.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> java.lang.String</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#getTargetString()">getTargetString</A></B>()</CODE>
|
|
|
| <BR>
|
| Get the local name or psuedo name of the node that this pattern will test, |
| for hash table lookup optimization.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> void</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#setAxis(int)">setAxis</A></B>(int axis)</CODE>
|
|
|
| <BR>
|
| Set the axis that this step should follow.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> void</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#setExpression(org.apache.xpath.Expression)">setExpression</A></B>(<A HREF="../../../../org/apache/xpath/Expression.html">Expression</A> exp)</CODE>
|
|
|
| <BR>
|
| </TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> void</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#setPredicates(org.apache.xpath.Expression[])">setPredicates</A></B>(<A HREF="../../../../org/apache/xpath/Expression.html">Expression</A>[] predicates)</CODE>
|
|
|
| <BR>
|
| Set the predicates for this match pattern step.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> void</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#setRelativePathPattern(org.apache.xpath.patterns.StepPattern)">setRelativePathPattern</A></B>(<A HREF="../../../../org/apache/xpath/patterns/StepPattern.html">StepPattern</A> expr)</CODE>
|
|
|
| <BR>
|
| Set the reference to nodetest and predicate for |
| parent or ancestor.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> java.lang.String</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/patterns/StepPattern.html#toString()">toString</A></B>()</CODE>
|
|
|
| <BR>
|
| Get the string represenentation of this step for diagnostic purposes.</TD>
|
| </TR>
|
| </TABLE>
|
| <A NAME="methods_inherited_from_class_org.apache.xpath.patterns.NodeTest"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| <TD><B>Methods inherited from class org.apache.xpath.patterns.<A HREF="../../../../org/apache/xpath/patterns/NodeTest.html">NodeTest</A></B></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#debugWhatToShow(int)">debugWhatToShow</A>,
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#getDefaultScore()">getDefaultScore</A>,
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#getLocalName()">getLocalName</A>,
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#getNamespace()">getNamespace</A>,
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#getNodeTypeTest(int)">getNodeTypeTest</A>,
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#getStaticScore()">getStaticScore</A>,
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#getWhatToShow()">getWhatToShow</A>,
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#initNodeTest(int)">initNodeTest</A>,
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#initNodeTest(int, java.lang.String, java.lang.String)">initNodeTest</A>,
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#setLocalName(java.lang.String)">setLocalName</A>,
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#setNamespace(java.lang.String)">setNamespace</A>,
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#setStaticScore(org.apache.xpath.objects.XNumber)">setStaticScore</A>,
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#setWhatToShow(int)">setWhatToShow</A></CODE></TD>
|
| </TR>
|
| </TABLE>
|
| <A NAME="methods_inherited_from_class_org.apache.xpath.Expression"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| <TD><B>Methods inherited from class org.apache.xpath.<A HREF="../../../../org/apache/xpath/Expression.html">Expression</A></B></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><A HREF="../../../../org/apache/xpath/Expression.html#asIterator(org.apache.xpath.XPathContext, int)">asIterator</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#asIteratorRaw(org.apache.xpath.XPathContext, int)">asIteratorRaw</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#asNode(org.apache.xpath.XPathContext)">asNode</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#assertion(boolean, java.lang.String)">assertion</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#bool(org.apache.xpath.XPathContext)">bool</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#error(org.apache.xpath.XPathContext, java.lang.String, java.lang.Object[])">error</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#execute(org.apache.xpath.XPathContext, boolean)">execute</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#executeCharsToContentHandler(org.apache.xpath.XPathContext, org.xml.sax.ContentHandler)">executeCharsToContentHandler</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#exprAddChild(org.apache.xpath.ExpressionNode, int)">exprAddChild</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#exprGetChild(int)">exprGetChild</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#exprGetNumChildren()">exprGetNumChildren</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#exprGetParent()">exprGetParent</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#exprSetParent(org.apache.xpath.ExpressionNode)">exprSetParent</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#getColumnNumber()">getColumnNumber</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#getExpressionOwner()">getExpressionOwner</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#getLineNumber()">getLineNumber</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#getPublicId()">getPublicId</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#getSystemId()">getSystemId</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#isNodesetExpr()">isNodesetExpr</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#isStableNumber()">isStableNumber</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#num(org.apache.xpath.XPathContext)">num</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#warn(org.apache.xpath.XPathContext, java.lang.String, java.lang.Object[])">warn</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#xstr(org.apache.xpath.XPathContext)">xstr</A></CODE></TD>
|
| </TR>
|
| </TABLE>
|
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE>equals,
|
| getClass,
|
| hashCode,
|
| notify,
|
| notifyAll,
|
| wait,
|
| wait,
|
| wait</CODE></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <P>
|
|
|
| <!-- ============ FIELD DETAIL =========== -->
|
|
|
|
|
| <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
| <A NAME="constructor_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=1><FONT SIZE="+2">
|
| <B>Constructor Detail</B></FONT></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <A NAME="StepPattern(int, java.lang.String, java.lang.String, int, int)"><!-- --></A><H3>
|
| StepPattern</H3>
|
| <PRE>
|
| public <B>StepPattern</B>(int whatToShow, |
| java.lang.String namespace, |
| java.lang.String name, |
| int axis, |
| int axisForPredicate)</PRE>
|
| <DL>
|
| <DD>Construct a StepPattern that tests for namespaces and node names.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>whatToShow</CODE> - Bit set defined mainly by <A HREF="../../../../org/w3c/dom/traversal/NodeFilter.html"><CODE>NodeFilter</CODE></A>.<DD><CODE>namespace</CODE> - The namespace to be tested.<DD><CODE>name</CODE> - The local name to be tested.<DD><CODE>axis</CODE> - The Axis for this test, one of of Axes.ANCESTORORSELF, etc.<DD><CODE>axisForPredicate</CODE> - No longer used.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="StepPattern(int, int, int)"><!-- --></A><H3>
|
| StepPattern</H3>
|
| <PRE>
|
| public <B>StepPattern</B>(int whatToShow, |
| int axis, |
| int axisForPredicate)</PRE>
|
| <DL>
|
| <DD>Construct a StepPattern that doesn't test for node names.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>whatToShow</CODE> - Bit set defined mainly by <A HREF="../../../../org/w3c/dom/traversal/NodeFilter.html"><CODE>NodeFilter</CODE></A>.<DD><CODE>axis</CODE> - The Axis for this test, one of of Axes.ANCESTORORSELF, etc.<DD><CODE>axisForPredicate</CODE> - No longer used.</DL>
|
| </DD>
|
| </DL>
|
|
|
| <!-- ============ METHOD DETAIL ========== -->
|
|
|
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=1><FONT SIZE="+2">
|
| <B>Method Detail</B></FONT></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <A NAME="calcTargetString()"><!-- --></A><H3>
|
| calcTargetString</H3>
|
| <PRE>
|
| public void <B>calcTargetString</B>()</PRE>
|
| <DL>
|
| <DD>Calculate the local name or psuedo name of the node that this pattern will test, |
| for hash table lookup optimization.<DD><DL>
|
| <DT><B>See Also: </B><DD><A HREF="../../../../org/apache/xpath/compiler/PsuedoNames.html"><CODE>PsuedoNames</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getTargetString()"><!-- --></A><H3>
|
| getTargetString</H3>
|
| <PRE>
|
| public java.lang.String <B>getTargetString</B>()</PRE>
|
| <DL>
|
| <DD>Get the local name or psuedo name of the node that this pattern will test, |
| for hash table lookup optimization.<DD><DL>
|
| <DT><B>Returns:</B><DD>local name or psuedo name of the node.<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/xpath/compiler/PsuedoNames.html"><CODE>PsuedoNames</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="fixupVariables(java.util.Vector, int)"><!-- --></A><H3>
|
| fixupVariables</H3>
|
| <PRE>
|
| public void <B>fixupVariables</B>(java.util.Vector vars, |
| int globalsSize)</PRE>
|
| <DL>
|
| <DD>This function is used to fixup variables from QNames to stack frame |
| indexes at stylesheet build time.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>vars</CODE> - 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).<DD><CODE>globalsSize</CODE> - The number of variables in the global variable area.<DT><B>Overrides:</B><DD><A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#fixupVariables(java.util.Vector, int)">fixupVariables</A> in class <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html">NodeTest</A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setRelativePathPattern(org.apache.xpath.patterns.StepPattern)"><!-- --></A><H3>
|
| setRelativePathPattern</H3>
|
| <PRE>
|
| public void <B>setRelativePathPattern</B>(<A HREF="../../../../org/apache/xpath/patterns/StepPattern.html">StepPattern</A> expr)</PRE>
|
| <DL>
|
| <DD>Set the reference to nodetest and predicate for |
| parent or ancestor.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>expr</CODE> - The relative pattern expression.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getRelativePathPattern()"><!-- --></A><H3>
|
| getRelativePathPattern</H3>
|
| <PRE>
|
| public <A HREF="../../../../org/apache/xpath/patterns/StepPattern.html">StepPattern</A> <B>getRelativePathPattern</B>()</PRE>
|
| <DL>
|
| <DD>Get the reference to nodetest and predicate for |
| parent or ancestor.<DD><DL>
|
| <DT><B>Returns:</B><DD>The relative pattern expression.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getPredicates()"><!-- --></A><H3>
|
| getPredicates</H3>
|
| <PRE>
|
| public <A HREF="../../../../org/apache/xpath/Expression.html">Expression</A>[] <B>getPredicates</B>()</PRE>
|
| <DL>
|
| <DD>Set the list of predicate expressions for this pattern step.<DD><DL>
|
| <DT><B>Returns:</B><DD>List of expression objects.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="canTraverseOutsideSubtree()"><!-- --></A><H3>
|
| canTraverseOutsideSubtree</H3>
|
| <PRE>
|
| public boolean <B>canTraverseOutsideSubtree</B>()</PRE>
|
| <DL>
|
| <DD>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.<DD><DL>
|
| <DT><B>Returns:</B><DD>true if traversal outside the context node's subtree can occur.<DT><B>Overrides:</B><DD><A HREF="../../../../org/apache/xpath/Expression.html#canTraverseOutsideSubtree()">canTraverseOutsideSubtree</A> in class <A HREF="../../../../org/apache/xpath/Expression.html">Expression</A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getPredicate(int)"><!-- --></A><H3>
|
| getPredicate</H3>
|
| <PRE>
|
| public <A HREF="../../../../org/apache/xpath/Expression.html">Expression</A> <B>getPredicate</B>(int i)</PRE>
|
| <DL>
|
| <DD>Get a predicate expression.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>i</CODE> - The index of the predicate.<DT><B>Returns:</B><DD>A predicate expression.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getPredicateCount()"><!-- --></A><H3>
|
| getPredicateCount</H3>
|
| <PRE>
|
| public final int <B>getPredicateCount</B>()</PRE>
|
| <DL>
|
| <DD>Get the number of predicates for this match pattern step.<DD><DL>
|
| <DT><B>Returns:</B><DD>the number of predicates for this match pattern step.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setPredicates(org.apache.xpath.Expression[])"><!-- --></A><H3>
|
| setPredicates</H3>
|
| <PRE>
|
| public void <B>setPredicates</B>(<A HREF="../../../../org/apache/xpath/Expression.html">Expression</A>[] predicates)</PRE>
|
| <DL>
|
| <DD>Set the predicates for this match pattern step.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>predicates</CODE> - An array of expressions that define predicates |
| for this step.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="calcScore()"><!-- --></A><H3>
|
| calcScore</H3>
|
| <PRE>
|
| public void <B>calcScore</B>()</PRE>
|
| <DL>
|
| <DD>Static calc of match score.<DD><DL>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="execute(org.apache.xpath.XPathContext, int)"><!-- --></A><H3>
|
| execute</H3>
|
| <PRE>
|
| public <A HREF="../../../../org/apache/xpath/objects/XObject.html">XObject</A> <B>execute</B>(<A HREF="../../../../org/apache/xpath/XPathContext.html">XPathContext</A> xctxt, |
| int currentNode) |
| throws <A HREF="../../../../javax/xml/transform/TransformerException.html">TransformerException</A></PRE>
|
| <DL>
|
| <DD>Execute this pattern step, including predicates.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>xctxt</CODE> - XPath runtime context.<DD><CODE>currentNode</CODE> - The current node context.<DT><B>Returns:</B><DD><A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_NODETEST"><CODE>NodeTest.SCORE_NODETEST</CODE></A>, |
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_NONE"><CODE>NodeTest.SCORE_NONE</CODE></A>, |
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_NSWILD"><CODE>NodeTest.SCORE_NSWILD</CODE></A>, |
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_QNAME"><CODE>NodeTest.SCORE_QNAME</CODE></A>, or |
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_OTHER"><CODE>NodeTest.SCORE_OTHER</CODE></A>.<DT><B>Throws:</B><DD><A HREF="../../../../javax/xml/transform/TransformerException.html">TransformerException</A> - <DT><B>Overrides:</B><DD><A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#execute(org.apache.xpath.XPathContext, int)">execute</A> in class <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html">NodeTest</A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="execute(org.apache.xpath.XPathContext)"><!-- --></A><H3>
|
| execute</H3>
|
| <PRE>
|
| public <A HREF="../../../../org/apache/xpath/objects/XObject.html">XObject</A> <B>execute</B>(<A HREF="../../../../org/apache/xpath/XPathContext.html">XPathContext</A> xctxt) |
| throws <A HREF="../../../../javax/xml/transform/TransformerException.html">TransformerException</A></PRE>
|
| <DL>
|
| <DD>Execute this pattern step, including predicates.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>xctxt</CODE> - XPath runtime context.<DT><B>Returns:</B><DD><A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_NODETEST"><CODE>NodeTest.SCORE_NODETEST</CODE></A>, |
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_NONE"><CODE>NodeTest.SCORE_NONE</CODE></A>, |
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_NSWILD"><CODE>NodeTest.SCORE_NSWILD</CODE></A>, |
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_QNAME"><CODE>NodeTest.SCORE_QNAME</CODE></A>, or |
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_OTHER"><CODE>NodeTest.SCORE_OTHER</CODE></A>.<DT><B>Throws:</B><DD><A HREF="../../../../javax/xml/transform/TransformerException.html">TransformerException</A> - <DT><B>Overrides:</B><DD><A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#execute(org.apache.xpath.XPathContext)">execute</A> in class <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html">NodeTest</A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="execute(org.apache.xpath.XPathContext, int, org.apache.xml.dtm.DTM, int)"><!-- --></A><H3>
|
| execute</H3>
|
| <PRE>
|
| public <A HREF="../../../../org/apache/xpath/objects/XObject.html">XObject</A> <B>execute</B>(<A HREF="../../../../org/apache/xpath/XPathContext.html">XPathContext</A> xctxt, |
| int currentNode, |
| <A HREF="../../../../org/apache/xml/dtm/DTM.html">DTM</A> dtm, |
| int expType) |
| throws <A HREF="../../../../javax/xml/transform/TransformerException.html">TransformerException</A></PRE>
|
| <DL>
|
| <DD>Execute an expression in the XPath runtime context, and return the |
| result of the expression.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>xctxt</CODE> - The XPath runtime context.<DD><CODE>currentNode</CODE> - The currentNode.<DD><CODE>dtm</CODE> - The DTM of the current node.<DD><CODE>expType</CODE> - The expanded type ID of the current node.<DT><B>Returns:</B><DD>The result of the expression in the form of a <code>XObject</code>.<DT><B>Throws:</B><DD><A HREF="../../../../javax/xml/transform/TransformerException.html">TransformerException</A> - if a runtime exception |
| occurs.<DT><B>Overrides:</B><DD><A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#execute(org.apache.xpath.XPathContext, int, org.apache.xml.dtm.DTM, int)">execute</A> in class <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html">NodeTest</A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getProximityPosition(org.apache.xpath.XPathContext)"><!-- --></A><H3>
|
| getProximityPosition</H3>
|
| <PRE>
|
| public int <B>getProximityPosition</B>(<A HREF="../../../../org/apache/xpath/XPathContext.html">XPathContext</A> xctxt)</PRE>
|
| <DL>
|
| <DD>Get the proximity position index of the current node based on this |
| node test.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/apache/xpath/axes/SubContextList.html#getProximityPosition(org.apache.xpath.XPathContext)">getProximityPosition</A> in interface <A HREF="../../../../org/apache/xpath/axes/SubContextList.html">SubContextList</A><DT><B>Parameters:</B><DD><CODE>xctxt</CODE> - XPath runtime context.<DT><B>Returns:</B><DD>the proximity position index of the current node based on the |
| node test.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getLastPos(org.apache.xpath.XPathContext)"><!-- --></A><H3>
|
| getLastPos</H3>
|
| <PRE>
|
| public int <B>getLastPos</B>(<A HREF="../../../../org/apache/xpath/XPathContext.html">XPathContext</A> xctxt)</PRE>
|
| <DL>
|
| <DD>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.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/apache/xpath/axes/SubContextList.html#getLastPos(org.apache.xpath.XPathContext)">getLastPos</A> in interface <A HREF="../../../../org/apache/xpath/axes/SubContextList.html">SubContextList</A><DT><B>Parameters:</B><DD><CODE>xctxt</CODE> - XPath runtime context.<DT><B>Returns:</B><DD>the count of the nodes that match the test.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="toString()"><!-- --></A><H3>
|
| toString</H3>
|
| <PRE>
|
| public java.lang.String <B>toString</B>()</PRE>
|
| <DL>
|
| <DD>Get the string represenentation of this step for diagnostic purposes.<DD><DL>
|
| <DT><B>Returns:</B><DD>A string representation of this step, built by reverse-engineering |
| the contained info.<DT><B>Overrides:</B><DD>toString in class java.lang.Object</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getMatchScore(org.apache.xpath.XPathContext, int)"><!-- --></A><H3>
|
| getMatchScore</H3>
|
| <PRE>
|
| public double <B>getMatchScore</B>(<A HREF="../../../../org/apache/xpath/XPathContext.html">XPathContext</A> xctxt, |
| int context) |
| throws <A HREF="../../../../javax/xml/transform/TransformerException.html">TransformerException</A></PRE>
|
| <DL>
|
| <DD>Get the match score of the given node.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>xctxt</CODE> - The XPath runtime context.<DD><CODE>context</CODE> - The node to be tested.<DT><B>Returns:</B><DD><A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_NODETEST"><CODE>NodeTest.SCORE_NODETEST</CODE></A>, |
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_NONE"><CODE>NodeTest.SCORE_NONE</CODE></A>, |
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_NSWILD"><CODE>NodeTest.SCORE_NSWILD</CODE></A>, |
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_QNAME"><CODE>NodeTest.SCORE_QNAME</CODE></A>, or |
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#SCORE_OTHER"><CODE>NodeTest.SCORE_OTHER</CODE></A>.<DT><B>Throws:</B><DD><A HREF="../../../../javax/xml/transform/TransformerException.html">TransformerException</A> - </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setAxis(int)"><!-- --></A><H3>
|
| setAxis</H3>
|
| <PRE>
|
| public void <B>setAxis</B>(int axis)</PRE>
|
| <DL>
|
| <DD>Set the axis that this step should follow.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>axis</CODE> - The Axis for this test, one of of Axes.ANCESTORORSELF, etc.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getAxis()"><!-- --></A><H3>
|
| getAxis</H3>
|
| <PRE>
|
| public int <B>getAxis</B>()</PRE>
|
| <DL>
|
| <DD>Get the axis that this step follows.<DD><DL>
|
| <DT><B>Returns:</B><DD>The Axis for this test, one of of Axes.ANCESTORORSELF, etc.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="callVisitors(org.apache.xpath.ExpressionOwner, org.apache.xpath.XPathVisitor)"><!-- --></A><H3>
|
| callVisitors</H3>
|
| <PRE>
|
| public void <B>callVisitors</B>(<A HREF="../../../../org/apache/xpath/ExpressionOwner.html">ExpressionOwner</A> owner, |
| <A HREF="../../../../org/apache/xpath/XPathVisitor.html">XPathVisitor</A> visitor)</PRE>
|
| <DL>
|
| <DD><DL>
|
| <DT><B>Overrides:</B><DD><A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#callVisitors(org.apache.xpath.ExpressionOwner, org.apache.xpath.XPathVisitor)">callVisitors</A> in class <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html">NodeTest</A><DT><B>See Also: </B><DD><A HREF="../../../../org/apache/xpath/XPathVisitable.html#callVisitors(org.apache.xpath.ExpressionOwner, org.apache.xpath.XPathVisitor)"><CODE>XPathVisitable.callVisitors(ExpressionOwner, XPathVisitor)</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getExpression()"><!-- --></A><H3>
|
| getExpression</H3>
|
| <PRE>
|
| public <A HREF="../../../../org/apache/xpath/Expression.html">Expression</A> <B>getExpression</B>()</PRE>
|
| <DL>
|
| <DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/apache/xpath/ExpressionOwner.html#getExpression()">getExpression</A> in interface <A HREF="../../../../org/apache/xpath/ExpressionOwner.html">ExpressionOwner</A><DT><B>See Also: </B><DD><A HREF="../../../../org/apache/xpath/ExpressionOwner.html#getExpression()"><CODE>ExpressionOwner.getExpression()</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setExpression(org.apache.xpath.Expression)"><!-- --></A><H3>
|
| setExpression</H3>
|
| <PRE>
|
| public void <B>setExpression</B>(<A HREF="../../../../org/apache/xpath/Expression.html">Expression</A> exp)</PRE>
|
| <DL>
|
| <DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/apache/xpath/ExpressionOwner.html#setExpression(org.apache.xpath.Expression)">setExpression</A> in interface <A HREF="../../../../org/apache/xpath/ExpressionOwner.html">ExpressionOwner</A><DT><B>See Also: </B><DD><A HREF="../../../../org/apache/xpath/ExpressionOwner.html#setExpression(org.apache.xpath.Expression)"><CODE>ExpressionOwner.setExpression(Expression)</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="deepEquals(org.apache.xpath.Expression)"><!-- --></A><H3>
|
| deepEquals</H3>
|
| <PRE>
|
| public boolean <B>deepEquals</B>(<A HREF="../../../../org/apache/xpath/Expression.html">Expression</A> expr)</PRE>
|
| <DL>
|
| <DD><DL>
|
| <DT><B>Overrides:</B><DD><A HREF="../../../../org/apache/xpath/patterns/NodeTest.html#deepEquals(org.apache.xpath.Expression)">deepEquals</A> in class <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html">NodeTest</A><DT><B>See Also: </B><DD><A HREF="../../../../org/apache/xpath/Expression.html#deepEquals(org.apache.xpath.Expression)"><CODE>Expression.deepEquals(Expression)</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <!-- ========= END OF CLASS DATA ========= -->
|
| <HR>
|
|
|
| <!-- ========== START OF NAVBAR ========== -->
|
| <A NAME="navbar_bottom"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
|
| <TR>
|
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
|
| <TR ALIGN="center" VALIGN="top">
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StepPattern.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
| </TR>
|
| </TABLE>
|
| </TD>
|
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
| </EM>
|
| </TD>
|
| </TR>
|
|
|
| <TR>
|
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| <A HREF="../../../../org/apache/xpath/patterns/NodeTest.html"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../org/apache/xpath/patterns/UnionPattern.html"><B>NEXT CLASS</B></A></FONT></TD>
|
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
|
| <A HREF="StepPattern.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | <A HREF="#fields_inherited_from_class_org.apache.xpath.patterns.NodeTest">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
| </TR>
|
| </TABLE>
|
| <!-- =========== END OF NAVBAR =========== -->
|
|
|
| <HR>
|
| Copyright © 2006 Apache XML Project. All Rights Reserved.
|
| </BODY>
|
| </HTML>
|