| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
| <!--NewPage-->
|
| <HTML>
|
| <HEAD>
|
| <!-- Generated by javadoc on Thu Nov 22 17:12:58 EST 2007 -->
|
| <TITLE>
|
| Xalan-Java 2.7.1: Class XNumber
|
| </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/XNumber.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/objects/XNull.html"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.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="XNumber.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.objects.XObject">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.objects</FONT>
|
| <BR>
|
| Class XNumber</H2>
|
| <PRE>
|
| java.lang.Object
|
| |
|
| +--<A HREF="../../../../org/apache/xpath/Expression.html">org.apache.xpath.Expression</A>
|
| |
|
| +--<A HREF="../../../../org/apache/xpath/objects/XObject.html">org.apache.xpath.objects.XObject</A>
|
| |
|
| +--<B>org.apache.xpath.objects.XNumber</B>
|
| </PRE>
|
| <HR>
|
| <DL>
|
| <DT>public class <B>XNumber</B><DT>extends <A HREF="../../../../org/apache/xpath/objects/XObject.html">XObject</A></DL>
|
|
|
| <P>
|
| This class represents an XPath number, and is capable of |
| converting the number to other types, such as a string.
|
| <P>
|
| <DL>
|
| <DT><B>See Also: </B><DD><A HREF="../../../../serialized-form.html#org.apache.xpath.objects.XNumber">Serialized Form</A><DT><B>Usage:</B><DD></DD>
|
| </DL>
|
| <HR>
|
|
|
| <P>
|
| <!-- ======== INNER CLASS SUMMARY ======== -->
|
|
|
|
|
| <!-- =========== FIELD SUMMARY =========== -->
|
|
|
| <A NAME="fields_inherited_from_class_org.apache.xpath.objects.XObject"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| <TD><B>Fields inherited from class org.apache.xpath.objects.<A HREF="../../../../org/apache/xpath/objects/XObject.html">XObject</A></B></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><A HREF="../../../../org/apache/xpath/objects/XObject.html#CLASS_BOOLEAN">CLASS_BOOLEAN</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#CLASS_NODESET">CLASS_NODESET</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#CLASS_NULL">CLASS_NULL</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#CLASS_NUMBER">CLASS_NUMBER</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#CLASS_RTREEFRAG">CLASS_RTREEFRAG</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#CLASS_STRING">CLASS_STRING</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#CLASS_UNKNOWN">CLASS_UNKNOWN</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#CLASS_UNRESOLVEDVARIABLE">CLASS_UNRESOLVEDVARIABLE</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/objects/XNumber.html#XNumber(double)">XNumber</A></B>(double d)</CODE>
|
|
|
| <BR>
|
| Construct a XNodeSet object.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/objects/XNumber.html#XNumber(java.lang.Number)">XNumber</A></B>(java.lang.Number num)</CODE>
|
|
|
| <BR>
|
| Construct a XNodeSet object.</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> boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/objects/XNumber.html#bool()">bool</A></B>()</CODE>
|
|
|
| <BR>
|
| Cast result object to a boolean.</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/objects/XNumber.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/objects/XNumber.html#equals(org.apache.xpath.objects.XObject)">equals</A></B>(<A HREF="../../../../org/apache/xpath/objects/XObject.html">XObject</A> obj2)</CODE>
|
|
|
| <BR>
|
| Tell if two objects are functionally equal.</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/objects/XNumber.html#getType()">getType</A></B>()</CODE>
|
|
|
| <BR>
|
| Tell that this is a CLASS_NUMBER.</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/objects/XNumber.html#getTypeString()">getTypeString</A></B>()</CODE>
|
|
|
| <BR>
|
| Given a request type, return the equivalent string.</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/objects/XNumber.html#isStableNumber()">isStableNumber</A></B>()</CODE>
|
|
|
| <BR>
|
| Tell if this expression returns a stable number that will not change during |
| iterations within the expression.</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/objects/XNumber.html#num()">num</A></B>()</CODE>
|
|
|
| <BR>
|
| Cast result object to a number.</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/objects/XNumber.html#num(org.apache.xpath.XPathContext)">num</A></B>(<A HREF="../../../../org/apache/xpath/XPathContext.html">XPathContext</A> xctxt)</CODE>
|
|
|
| <BR>
|
| Evaluate expression to a number.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> java.lang.Object</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xpath/objects/XNumber.html#object()">object</A></B>()</CODE>
|
|
|
| <BR>
|
| Return a java object that's closest to the representation |
| that should be handed to an extension.</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/objects/XNumber.html#str()">str</A></B>()</CODE>
|
|
|
| <BR>
|
| Cast result object to a string.</TD>
|
| </TR>
|
| </TABLE>
|
| <A NAME="methods_inherited_from_class_org.apache.xpath.objects.XObject"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| <TD><B>Methods inherited from class org.apache.xpath.objects.<A HREF="../../../../org/apache/xpath/objects/XObject.html">XObject</A></B></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><A HREF="../../../../org/apache/xpath/objects/XObject.html#allowDetachToRelease(boolean)">allowDetachToRelease</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#appendToFsb(org.apache.xml.utils.FastStringBuffer)">appendToFsb</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#boolWithSideEffects()">boolWithSideEffects</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#castToType(int, org.apache.xpath.XPathContext)">castToType</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#create(java.lang.Object)">create</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#create(java.lang.Object, org.apache.xpath.XPathContext)">create</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#deepEquals(org.apache.xpath.Expression)">deepEquals</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#destruct()">destruct</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#detach()">detach</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#dispatchCharactersEvents(org.xml.sax.ContentHandler)">dispatchCharactersEvents</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#execute(org.apache.xpath.XPathContext)">execute</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#fixupVariables(java.util.Vector, int)">fixupVariables</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#getFresh()">getFresh</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#greaterThan(org.apache.xpath.objects.XObject)">greaterThan</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#greaterThanOrEqual(org.apache.xpath.objects.XObject)">greaterThanOrEqual</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#iter()">iter</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#lessThan(org.apache.xpath.objects.XObject)">lessThan</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#lessThanOrEqual(org.apache.xpath.objects.XObject)">lessThanOrEqual</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#mutableNodeset()">mutableNodeset</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#nodelist()">nodelist</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#nodeset()">nodeset</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#notEquals(org.apache.xpath.objects.XObject)">notEquals</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#numWithSideEffects()">numWithSideEffects</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#reset()">reset</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#rtf()">rtf</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#rtf(org.apache.xpath.XPathContext)">rtf</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#rtree()">rtree</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#rtree(org.apache.xpath.XPathContext)">rtree</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#toString()">toString</A>,
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.html#xstr()">xstr</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#canTraverseOutsideSubtree()">canTraverseOutsideSubtree</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#execute(org.apache.xpath.XPathContext, int)">execute</A>,
|
| <A HREF="../../../../org/apache/xpath/Expression.html#execute(org.apache.xpath.XPathContext, int, org.apache.xml.dtm.DTM, int)">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#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="XNumber(double)"><!-- --></A><H3>
|
| XNumber</H3>
|
| <PRE>
|
| public <B>XNumber</B>(double d)</PRE>
|
| <DL>
|
| <DD>Construct a XNodeSet object.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>d</CODE> - Value of the object</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="XNumber(java.lang.Number)"><!-- --></A><H3>
|
| XNumber</H3>
|
| <PRE>
|
| public <B>XNumber</B>(java.lang.Number num)</PRE>
|
| <DL>
|
| <DD>Construct a XNodeSet object.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>num</CODE> - Value of the object</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="getType()"><!-- --></A><H3>
|
| getType</H3>
|
| <PRE>
|
| public int <B>getType</B>()</PRE>
|
| <DL>
|
| <DD>Tell that this is a CLASS_NUMBER.<DD><DL>
|
| <DT><B>Returns:</B><DD>node type CLASS_NUMBER<DT><B>Overrides:</B><DD><A HREF="../../../../org/apache/xpath/objects/XObject.html#getType()">getType</A> in class <A HREF="../../../../org/apache/xpath/objects/XObject.html">XObject</A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getTypeString()"><!-- --></A><H3>
|
| getTypeString</H3>
|
| <PRE>
|
| public java.lang.String <B>getTypeString</B>()</PRE>
|
| <DL>
|
| <DD>Given a request type, return the equivalent string. |
| For diagnostic purposes.<DD><DL>
|
| <DT><B>Returns:</B><DD>type string "#NUMBER"<DT><B>Overrides:</B><DD><A HREF="../../../../org/apache/xpath/objects/XObject.html#getTypeString()">getTypeString</A> in class <A HREF="../../../../org/apache/xpath/objects/XObject.html">XObject</A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="num()"><!-- --></A><H3>
|
| num</H3>
|
| <PRE>
|
| public double <B>num</B>()</PRE>
|
| <DL>
|
| <DD>Cast result object to a number.<DD><DL>
|
| <DT><B>Returns:</B><DD>the value of the XNumber object<DT><B>Overrides:</B><DD><A HREF="../../../../org/apache/xpath/objects/XObject.html#num()">num</A> in class <A HREF="../../../../org/apache/xpath/objects/XObject.html">XObject</A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="num(org.apache.xpath.XPathContext)"><!-- --></A><H3>
|
| num</H3>
|
| <PRE>
|
| public double <B>num</B>(<A HREF="../../../../org/apache/xpath/XPathContext.html">XPathContext</A> xctxt) |
| throws <A HREF="../../../../javax/xml/transform/TransformerException.html">TransformerException</A></PRE>
|
| <DL>
|
| <DD>Evaluate expression to a number.<DD><DL>
|
| <DT><B>Returns:</B><DD>0.0<DT><B>Throws:</B><DD><A HREF="../../../../javax/xml/transform/TransformerException.html">TransformerException</A> - <DT><B>Overrides:</B><DD><A HREF="../../../../org/apache/xpath/Expression.html#num(org.apache.xpath.XPathContext)">num</A> in class <A HREF="../../../../org/apache/xpath/Expression.html">Expression</A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="bool()"><!-- --></A><H3>
|
| bool</H3>
|
| <PRE>
|
| public boolean <B>bool</B>()</PRE>
|
| <DL>
|
| <DD>Cast result object to a boolean.<DD><DL>
|
| <DT><B>Returns:</B><DD>false if the value is NaN or equal to 0.0<DT><B>Overrides:</B><DD><A HREF="../../../../org/apache/xpath/objects/XObject.html#bool()">bool</A> in class <A HREF="../../../../org/apache/xpath/objects/XObject.html">XObject</A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="str()"><!-- --></A><H3>
|
| str</H3>
|
| <PRE>
|
| public java.lang.String <B>str</B>()</PRE>
|
| <DL>
|
| <DD>Cast result object to a string.<DD><DL>
|
| <DT><B>Returns:</B><DD>"NaN" if the number is NaN, Infinity or -Infinity if |
| the number is infinite or the string value of the number.<DT><B>Overrides:</B><DD><A HREF="../../../../org/apache/xpath/objects/XObject.html#str()">str</A> in class <A HREF="../../../../org/apache/xpath/objects/XObject.html">XObject</A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="object()"><!-- --></A><H3>
|
| object</H3>
|
| <PRE>
|
| public java.lang.Object <B>object</B>()</PRE>
|
| <DL>
|
| <DD>Return a java object that's closest to the representation |
| that should be handed to an extension.<DD><DL>
|
| <DT><B>Returns:</B><DD>The value of this XNumber as a Double object<DT><B>Overrides:</B><DD><A HREF="../../../../org/apache/xpath/objects/XObject.html#object()">object</A> in class <A HREF="../../../../org/apache/xpath/objects/XObject.html">XObject</A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="equals(org.apache.xpath.objects.XObject)"><!-- --></A><H3>
|
| equals</H3>
|
| <PRE>
|
| public boolean <B>equals</B>(<A HREF="../../../../org/apache/xpath/objects/XObject.html">XObject</A> obj2)</PRE>
|
| <DL>
|
| <DD>Tell if two objects are functionally equal.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>obj2</CODE> - Object to compare this to<DT><B>Returns:</B><DD>true if the two objects are equal<DT><B>Throws:</B><DD><A HREF="../../../../javax/xml/transform/TransformerException.html">TransformerException</A> - <DT><B>Overrides:</B><DD><A HREF="../../../../org/apache/xpath/objects/XObject.html#equals(org.apache.xpath.objects.XObject)">equals</A> in class <A HREF="../../../../org/apache/xpath/objects/XObject.html">XObject</A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isStableNumber()"><!-- --></A><H3>
|
| isStableNumber</H3>
|
| <PRE>
|
| public boolean <B>isStableNumber</B>()</PRE>
|
| <DL>
|
| <DD>Tell if this expression returns a stable number that will not change during |
| iterations within the expression. This is used to determine if a proximity |
| position predicate can indicate that no more searching has to occur.<DD><DL>
|
| <DT><B>Returns:</B><DD>true if the expression represents a stable number.<DT><B>Overrides:</B><DD><A HREF="../../../../org/apache/xpath/Expression.html#isStableNumber()">isStableNumber</A> in class <A HREF="../../../../org/apache/xpath/Expression.html">Expression</A></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/objects/XObject.html#callVisitors(org.apache.xpath.ExpressionOwner, org.apache.xpath.XPathVisitor)">callVisitors</A> in class <A HREF="../../../../org/apache/xpath/objects/XObject.html">XObject</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>
|
| <!-- ========= 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/XNumber.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/objects/XNull.html"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../org/apache/xpath/objects/XObject.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="XNumber.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.objects.XObject">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>
|