| Modifier and Type | Field and Description |
|---|---|
| pack-priv double | m_val
Value of the XNumber object. |
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: false if the value is NaN or equal to 0.0Overrides com. Cast result object to a boolean. |
| 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 the two objects are equalObject to compare this to obj2)Overrides com. Tell if two objects are functionally equal. |
| public int | Returns: node type CLASS_NUMBEROverrides com. Tell that this is a CLASS_NUMBER. |
| public String | Returns: type string "#NUMBER"Overrides com. Given a request type, return the equivalent string. |
| public boolean | Returns: true if the expression represents a stable number.Overrides com. Tell if this expression returns a stable number that will not change during iterations within the expression. |
| public double | Returns: the value of the XNumber objectOverrides com. Cast result object to a number. |
| public double | Returns: 0.0Overrides com. Evaluate expression to a number. |
| public Object | Returns: The value of this XNumber as a Double objectOverrides com. Return a java object that's closest to the representation that should be handed to an extension. |
| public String | Returns: "NaN" if the number is NaN, Infinity or -Infinity if the number is infinite or the string value of the number.Overrides com. Cast result object to a string. |
| private static String | Returns: a string of '0' with the given lengthLength of the string to be returned n)Return a string of '0' of the given length |
| m_val | back to summary |
|---|---|
| pack-priv double m_val Value of the XNumber object. | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID Hides com. | |
| XNumber | back to summary |
|---|---|
| public XNumber(double d) Construct a XNodeSet object.
| |
| XNumber | back to summary |
|---|---|
| public XNumber(Number num) Construct a XNodeSet object.
| |
| bool | back to summary |
|---|---|
| public boolean bool() Overrides com. Cast result object to a boolean.
| |
| 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. | |
| equals | back to summary |
|---|---|
| public boolean equals(XObject obj2) Overrides com. Tell if two objects are functionally equal.
| |
| getType | back to summary |
|---|---|
| public int getType() Overrides com. Tell that this is a CLASS_NUMBER.
| |
| getTypeString | back to summary |
|---|---|
| public String getTypeString() Overrides com. Given a request type, return the equivalent string. For diagnostic purposes.
| |
| isStableNumber | back to summary |
|---|---|
| public boolean isStableNumber() Overrides com. 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.
| |
| num | back to summary |
|---|---|
| public double num() Overrides com. Cast result object to a number.
| |
| num | back to summary |
|---|---|
| public double num(XPathContext xctxt) throws TransformerException Overrides com. Evaluate expression to a number.
| |
| object | back to summary |
|---|---|
| public Object object() Overrides com. Return a java object that's closest to the representation that should be handed to an extension.
| |
| str | back to summary |
|---|---|
| public String str() Overrides com. Cast result object to a string.
| |
| zeros | back to summary |
|---|---|
| private static String zeros(int n) Return a string of '0' of the given length
| |