jxl.biff.formula
Class StringOperator
java.lang.Object
|
+--jxl.biff.formula.ParseItem
|
+--jxl.biff.formula.Operator
|
+--jxl.biff.formula.StringOperator
- Direct Known Subclasses:
- Minus, Plus
- abstract class StringOperator
- extends Operator
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
Method Summary |
(package private) abstract Operator |
getBinaryOperator()
Abstract method which gets the binary version of this operator |
(package private) byte[] |
getBytes()
Gets the token representation of this item in RPN. |
void |
getOperands(java.util.Stack s)
Gets the operands for this operator from the stack. |
(package private) int |
getPrecedence()
Gets the precedence for this operator. |
(package private) void |
getString(java.lang.StringBuffer buf)
Gets the string representation of this item |
(package private) abstract Operator |
getUnaryOperator()
Abstract method which gets the unary version of this operator |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
StringOperator
protected StringOperator()
- Constructor
getOperands
public void getOperands(java.util.Stack s)
- Gets the operands for this operator from the stack. Does nothing
here
- Overrides:
getOperands
in class Operator
getPrecedence
int getPrecedence()
- Gets the precedence for this operator. Does nothing here
- Overrides:
getPrecedence
in class Operator
- Returns:
- the operator precedence
getBytes
byte[] getBytes()
- Gets the token representation of this item in RPN. Does nothing here
- Overrides:
getBytes
in class ParseItem
- Returns:
- the bytes applicable to this formula
getString
void getString(java.lang.StringBuffer buf)
- Gets the string representation of this item
- Overrides:
getString
in class ParseItem
- Following copied from class:
jxl.biff.formula.ParseItem
- Parameters:
ws
- the workbook settings
getBinaryOperator
abstract Operator getBinaryOperator()
- Abstract method which gets the binary version of this operator
getUnaryOperator
abstract Operator getUnaryOperator()
- Abstract method which gets the unary version of this operator