jxl.biff.formula
Class IntegerValue

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

class IntegerValue
extends NumberValue
implements ParsedThing

A cell reference in a formula


Field Summary
private  double value
          The value of this integer
 
Fields inherited from class jxl.biff.formula.ParseItem
parent
 
Constructor Summary
IntegerValue()
          Constructor
IntegerValue(java.lang.String s)
          Constructor for an integer value being read from a string
 
Method Summary
(package private)  byte[] getBytes()
          Gets the token representation of this item in RPN
 double getValue()
          Accessor for the value
 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 integer
Constructor Detail

IntegerValue

public IntegerValue()
Constructor

IntegerValue

public IntegerValue(java.lang.String s)
Constructor for an integer value being read 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()
Accessor for the value
Overrides:
getValue in class NumberValue
Returns:
the value