jxl.biff.formula
class: BooleanValue [javadoc |
source]
java.lang.Object
jxl.biff.formula.ParseItem
jxl.biff.formula.Operand
jxl.biff.formula.BooleanValue
All Implemented Interfaces:
ParsedThing
A boolean operand in a formula
| Methods from jxl.biff.formula.ParseItem: |
|---|
|
adjustRelativeCellReferences, columnInserted, columnRemoved, getBytes, getString, handleImportedCellReferences, isValid, isVolatile, rowInserted, rowRemoved, setAlternateCode, setInvalid, setParent, setVolatile, useAlternateCode |
| Method from jxl.biff.formula.BooleanValue Detail: |
byte[] getBytes() {
byte[] data = new byte[2];
data[0] = Token.BOOL.getCode();
data[1] = (byte) (value == true ? 1 : 0);
return data;
}
Gets the token representation of this item in RPN |
public void getString(StringBuffer buf) {
buf.append((new Boolean(value)).toString());
}
Abstract method implementation to get the string equivalent of this
token |
void handleImportedCellReferences() {
}
If this formula was on an imported sheet, check that
cell references to another sheet are warned appropriately
Does nothing |
public int read(byte[] data,
int pos) {
value = data[pos] == 1 ? true : false;
return 1;
}
Reads the ptg data from the array starting at the specified position |