jxl.read.biff
Class BaseSharedFormulaRecord

java.lang.Object
  |
  +--jxl.biff.RecordData
        |
        +--jxl.read.biff.CellValue
              |
              +--jxl.read.biff.BaseSharedFormulaRecord
All Implemented Interfaces:
Cell, FormulaData
Direct Known Subclasses:
SharedDateFormulaRecord, SharedNumberFormulaRecord, SharedStringFormulaRecord

public abstract class BaseSharedFormulaRecord
extends CellValue
implements FormulaData

A base class for shared formula records


Field Summary
private  ExternalSheet externalSheet
          The external sheet
private  FormattingRecords formattingRecords
          A handle to the formatting records
private  java.lang.String formulaString
          The formula as an excel string
private  NameTable nameTable
          The name table
private  byte[] tokens
          The array of parsed tokens
 
Fields inherited from class jxl.read.biff.CellValue
column, format, initialized, row, sheet, xfIndex
 
Fields inherited from class jxl.biff.RecordData
code, record
 
Constructor Summary
BaseSharedFormulaRecord(Record t, FormattingRecords fr, ExternalSheet es, NameTable nt, SheetImpl si)
          Constructs this number
 
Method Summary
protected  ExternalSheet getExternalSheet()
          Access for the external sheet
 java.lang.String getFormula()
          Gets the formula as an excel string
protected  NameTable getNameTable()
          Access for the name table
 Record getRecord()
          In case the shared formula is not added for any reason, we need to expose the raw record data , in order to try again
protected  byte[] getTokens()
          Accessor for the tokens which make up this formula
(package private)  void setTokens(byte[] t)
          Called by the shared formula record to set the tokens for this formula
 
Methods inherited from class jxl.read.biff.CellValue
getCellFormat, getColumn, getRow, getSheet, getXFIndex, isHidden
 
Methods inherited from class jxl.biff.RecordData
getCode
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface jxl.biff.FormulaData
getFormulaData
 
Methods inherited from interface jxl.Cell
getCellFormat, getColumn, getContents, getRow, getType, isHidden
 

Field Detail

formulaString

private java.lang.String formulaString
The formula as an excel string

formattingRecords

private FormattingRecords formattingRecords
A handle to the formatting records

tokens

private byte[] tokens
The array of parsed tokens

externalSheet

private ExternalSheet externalSheet
The external sheet

nameTable

private NameTable nameTable
The name table
Constructor Detail

BaseSharedFormulaRecord

public BaseSharedFormulaRecord(Record t,
                               FormattingRecords fr,
                               ExternalSheet es,
                               NameTable nt,
                               SheetImpl si)
Constructs this number
Parameters:
t - the record
fr - the formatting records
es - the external sheet
nt - the name table
si - the sheet
Method Detail

getFormula

public java.lang.String getFormula()
                            throws FormulaException
Gets the formula as an excel string
Returns:
the formula as an excel string

setTokens

void setTokens(byte[] t)
Called by the shared formula record to set the tokens for this formula
Parameters:
t - the tokens

getTokens

protected final byte[] getTokens()
Accessor for the tokens which make up this formula
Returns:
the tokens

getExternalSheet

protected final ExternalSheet getExternalSheet()
Access for the external sheet
Returns:
the external sheet

getNameTable

protected final NameTable getNameTable()
Access for the name table
Returns:
the name table

getRecord

public Record getRecord()
In case the shared formula is not added for any reason, we need to expose the raw record data , in order to try again
Overrides:
getRecord in class RecordData
Returns:
the record data from the base class