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

Direct Known Subclasses:
    Minus, Plus

Ambiguously defined operator, used as a place holder when parsing string formulas. At this stage it could be either a unary or binary operator - the string parser will deduce which and create the appropriate type
Constructor:
 protected StringOperator() 
Method from jxl.biff.formula.StringOperator Summary:
adjustRelativeCellReferences,   columnInserted,   columnRemoved,   getBinaryOperator,   getBytes,   getOperands,   getPrecedence,   getString,   getUnaryOperator,   rowInserted,   rowRemoved
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.StringOperator Detail:
 public  void adjustRelativeCellReferences(int colAdjust,
    int rowAdjust) 
    Default behaviour is to do nothing
  void columnInserted(int sheetIndex,
    int col,
    boolean currentSheet) 
    Default behaviour is to do nothing
  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 Operator getBinaryOperator()
    Abstract method which gets the binary version of this operator
 byte[] getBytes() 
    Gets the token representation of this item in RPN. Does nothing here
 public  void getOperands(Stack s) 
    Gets the operands for this operator from the stack. Does nothing here
 int getPrecedence() 
    Gets the precedence for this operator. Does nothing here
  void getString(StringBuffer buf) 
    Gets the string representation of this item
 abstract Operator getUnaryOperator()
    Abstract method which gets the unary version of this operator
  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