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
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 java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
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
BaseSharedFormulaRecord
public BaseSharedFormulaRecord(Record t,
FormattingRecords fr,
ExternalSheet es,
NameTable nt,
SheetImpl si)
- Constructs this number
- Parameters:
t
- the recordfr
- the formatting recordses
- the external sheetnt
- the name tablesi
- the sheet
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