jxl.biff.formula
abstract class: ParseItem [javadoc |
source]
java.lang.Object
jxl.biff.formula.ParseItem
Direct Known Subclasses:
Plus, ColumnRange3d, StringValue, Add, StringFunction, UnaryMinus, Attribute, ArgumentSeparator, CloseParentheses, RangeSeparator, Equal, Concatenate, Percent, OpenParentheses, Area, LessEqual, MemArea, ErrorConstant, GreaterThan, CellReference, Area3d, Parenthesis, NameRange, Divide, Subtract, StringOperator, BuiltInFunction, StringParseItem, SharedFormulaCellReference, MissingArg, DoubleValue, LessThan, ColumnRange, SubExpression, NotEqual, Power, Minus, UnaryOperator, Union, Multiply, BooleanValue, SharedFormulaArea, Name, NumberValue, Operand, MemFunc, CellReference3d, CellReferenceError, BinaryOperator, UnaryPlus, VariableArgFunction, IntegerValue, GreaterEqual, Operator
Abstract base class for an item in a formula parse tree
| Method from jxl.biff.formula.ParseItem Summary: |
|---|
|
adjustRelativeCellReferences, columnInserted, columnRemoved, getBytes, getString, handleImportedCellReferences, isValid, isVolatile, rowInserted, rowRemoved, setAlternateCode, setInvalid, setParent, setVolatile, useAlternateCode |
| Method from jxl.biff.formula.ParseItem Detail: |
abstract void adjustRelativeCellReferences(int colAdjust,
int rowAdjust)
Adjusts all the relative cell references in this formula by the
amount specified. Used when copying formulas |
abstract void columnInserted(int sheetIndex,
int col,
boolean currentSheet)
Called when a column is inserted on the specified sheet. Tells
the formula parser to update all of its cell references beyond this
column |
abstract void columnRemoved(int sheetIndex,
int col,
boolean currentSheet)
Called when a column is inserted on the specified sheet. Tells
the formula parser to update all of its cell references beyond this
column |
abstract byte[] getBytes()
Gets the token representation of this item in RPN |
abstract void getString(StringBuffer buf)
Gets the string representation of this item |
abstract void handleImportedCellReferences()
If this formula was on an imported sheet, check that
cell references to another sheet are warned appropriately |
final boolean isValid() {
return valid;
}
Accessor for the volatile function |
final boolean isVolatile() {
return volatileFunction;
}
Accessor for the volatile function |
abstract void rowInserted(int sheetIndex,
int row,
boolean currentSheet)
Called when a column is inserted on the specified sheet. Tells
the formula parser to update all of its cell references beyond this
column |
abstract void rowRemoved(int sheetIndex,
int row,
boolean currentSheet)
Called when a column is inserted on the specified sheet. Tells
the formula parser to update all of its cell references beyond this
column |
protected void setAlternateCode() {
alternateCode = true;
}
Tells the operands to use the alternate code |
protected final void setInvalid() {
valid = false;
if (parent != null)
{
parent.setInvalid();
}
}
Sets the invalid flag and ripples all the way up the parse tree |
protected void setParent(ParseItem p) {
parent = p;
}
Called by this class to initialize the parent |
protected void setVolatile() {
volatileFunction = true;
if (parent != null && !parent.isVolatile())
{
parent.setVolatile();
}
}
Sets the volatile flag and ripples all the way up the parse tree |
protected final boolean useAlternateCode() {
return alternateCode;
}
Accessor for the alternate code flag |