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 |
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
BaseSharedFormulaRecord
public BaseSharedFormulaRecord(Record t,
FormattingRecords fr,
ExternalSheet es,
SheetImpl si)
- Constructs this number
- Parameters:
f
- the formular
- the zero based rowval
- the valuesi
- 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
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