Home » JCraft » jxl » biff » formula » [javadoc | source]
jxl.biff.formula
class: Attribute [javadoc | source]
java.lang.Object
   jxl.biff.formula.ParseItem
      jxl.biff.formula.Operator
         jxl.biff.formula.Attribute

All Implemented Interfaces:
    ParsedThing

A special attribute control token - typically either a SUM function or an IF function
Constructor:
 public Attribute(WorkbookSettings ws) 
    Constructor
    Parameters:
    ws - the workbook settings
 public Attribute(StringFunction sf,
    WorkbookSettings ws) 
    Constructor for use when this is called when parsing a string
    Parameters:
    sf - the built in function
    ws - the workbook settings
Method from jxl.biff.formula.Attribute Summary:
adjustRelativeCellReferences,   columnInserted,   columnRemoved,   getBytes,   getOperands,   getPrecedence,   getString,   handleImportedCellReferences,   isChoose,   isFunction,   isGoto,   isIf,   isSum,   read,   rowInserted,   rowRemoved,   setIfConditions
Methods from jxl.biff.formula.Operator:
add,   getOperands,   getOperands,   getPrecedence,   setOperandAlternateCode
Methods from jxl.biff.formula.ParseItem:
adjustRelativeCellReferences,   columnInserted,   columnRemoved,   getBytes,   getParseContext,   getString,   handleImportedCellReferences,   isValid,   isVolatile,   rowInserted,   rowRemoved,   setAlternateCode,   setInvalid,   setParent,   setParseContext,   setVolatile,   useAlternateCode
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from jxl.biff.formula.Attribute Detail:
 public  void adjustRelativeCellReferences(int colAdjust,
    int rowAdjust) 
    Default behaviour is to do nothing
  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
  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
 byte[] getBytes() 
    Gets the token representation of this item in RPN. The Attribute token is a special case, which overrides anything useful we could do in the base class
 public  void getOperands(Stack s) 
    Gets the operands for this operator from the stack
 int getPrecedence() 
    Gets the precedence for this operator. Operator precedents run from 1 to 5, one being the highest, 5 being the lowest
 public  void getString(StringBuffer buf) 
    Gets the string version of the attribute
  void handleImportedCellReferences() 
    If this formula was on an imported sheet, check that cell references to another sheet are warned appropriately Does nothing, as operators don't have cell references
 public boolean isChoose() 
    Queries whether this attribute is a CHOOSE
 public boolean isFunction() 
    Queries whether this attribute is a function
 public boolean isGoto() 
    Queries whether this attribute is a goto
 public boolean isIf() 
    Queries whether this attribute is an IF
 public boolean isSum() 
    Queries whether this attribute is a sum
 public int read(byte[] data,
    int pos) 
    Reads the ptg data from the array starting at the specified position
  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
  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
  void setIfConditions(VariableArgFunction vaf) 
    Sets the if conditions for this attribute, if it represents an IF function