de.fzi.XPath
Class Number

java.lang.Object
  |
  +--de.fzi.XPath.Expr
        |
        +--de.fzi.XPath.Number

public class Number
extends Expr

Number class.


Fields inherited from class de.fzi.XPath.Expr
ADD_OP, AND_OP, DIV_OP, EQ_OP, GT_OP, GTE_OP, LT_OP, LTE_OP, MOD_OP, MUL_OP, NEQ_OP, NOP_OP, OR_OP, SUB_OP, U_OP
 
Constructor Summary
Number(double thevalue)
          Intantiates a number with given value.
Number(java.lang.String thevalue)
          Intantiates a number with given string value.
 
Method Summary
 double getValue()
          Returns number's value.
 java.lang.String toString()
          Returns number as string.
 
Methods inherited from class de.fzi.XPath.Expr
getNegative, getOperator, getOperatorAsString, getOperatorName, getPositive, setOperator, setPositive
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Number

public Number(java.lang.String thevalue)
Intantiates a number with given string value.
Parameters:
thevalue - string value of the number. This value is converted to double.

Number

public Number(double thevalue)
Intantiates a number with given value.
Parameters:
thevalue - string value of the number.
Method Detail

getValue

public double getValue()
Returns number's value.
Returns:
Return's number's value.

toString

public java.lang.String toString()
Returns number as string.
Overrides:
toString in class Expr
Returns:
Return number as string.