org.apache.poi.hssf.record.formula
abstract public class: ValueOperatorPtg [javadoc |
source]
java.lang.Object
org.apache.poi.hssf.record.formula.Ptg
org.apache.poi.hssf.record.formula.OperationPtg
org.apache.poi.hssf.record.formula.ValueOperatorPtg
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
LessThanPtg, EqualPtg, PowerPtg, LessEqualPtg, PercentPtg, DividePtg, ConcatPtg, UnaryPlusPtg, UnaryMinusPtg, AddPtg, SubtractPtg, MultiplyPtg, GreaterEqualPtg, GreaterThanPtg, NotEqualPtg
Common superclass of all value operators.
Subclasses include all unary and binary operators except for the reference operators (IntersectionPtg, RangePtg, UnionPtg)
| Methods from org.apache.poi.hssf.record.formula.Ptg: |
|---|
|
clone, copy, createParsedExpressionTokens, createPtg, getBytes, getDefaultOperandClass, getEncodedSize, getEncodedSize, getPtgClass, getSize, isBaseToken, readTokens, serializePtgStack, serializePtgs, setClass, toDebugString, toFormulaString, toString, writeBytes |
| Method from org.apache.poi.hssf.record.formula.ValueOperatorPtg Detail: |
public final byte getDefaultOperandClass() {
return Ptg.CLASS_VALUE;
}
|
abstract protected byte getSid()
|
public final int getSize() {
return 1;
}
|
public final boolean isBaseToken() {
return true;
}
All Operator Ptgs are base tokens (i.e. are not RVA classified) |
public final String toFormulaString(HSSFWorkbook book) {
// TODO - prune this method out of the hierarchy
throw new RuntimeException("toFormulaString(String[] operands) should be used for subclasses of OperationPtgs");
}
|
public final void writeBytes(byte[] array,
int offset) {
array[offset + 0] = getSid();
}
|