jxl.biff.formula
Class DoubleValue

java.lang.Object
  |
  +--jxl.biff.formula.ParseItem
        |
        +--jxl.biff.formula.Operand
              |
              +--jxl.biff.formula.NumberValue
                    |
                    +--jxl.biff.formula.DoubleValue
All Implemented Interfaces:
ParsedThing

class DoubleValue
extends NumberValue
implements ParsedThing

A cell reference in a formula


Field Summary
private  double value
          The value of this double in the formula
 
Fields inherited from class jxl.biff.formula.ParseItem
parent
 
Constructor Summary
DoubleValue()
          Constructor
DoubleValue(java.lang.String s)
          Constructor for a double value when reading from a string
 
Method Summary
(package private)  byte[] getBytes()
          Gets the token representation of this item in RPN
 double getValue()
           
 int read(byte[] data, int pos)
          Reads the ptg data from the array starting at the specified position
 
Methods inherited from class jxl.biff.formula.NumberValue
getString
 
Methods inherited from class jxl.biff.formula.ParseItem
setParent
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

value

private double value
The value of this double in the formula
Constructor Detail

DoubleValue

public DoubleValue()
Constructor

DoubleValue

public DoubleValue(java.lang.String s)
Constructor for a double value when reading from a string
Method Detail

read

public int read(byte[] data,
                int pos)
Reads the ptg data from the array starting at the specified position
Specified by:
read in interface ParsedThing
Parameters:
data - the RPN array
pos - the current position in the array, excluding the ptg identifier
Returns:
the number of bytes read

getBytes

byte[] getBytes()
Gets the token representation of this item in RPN
Overrides:
getBytes in class ParseItem
Returns:
the bytes applicable to this formula

getValue

public double getValue()
Overrides:
getValue in class NumberValue