org.apache.poi.hssf.record.formula
abstract public class: OperationPtg [javadoc |
source]
java.lang.Object
org.apache.poi.hssf.record.formula.Ptg
org.apache.poi.hssf.record.formula.OperationPtg
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
LessThanPtg, FuncPtg, AbstractFunctionPtg, UnionPtg, EqualPtg, ValueOperatorPtg, PowerPtg, LessEqualPtg, IntersectionPtg, PercentPtg, DividePtg, ConcatPtg, UnaryPlusPtg, UnaryMinusPtg, AddPtg, SubtractPtg, MultiplyPtg, FuncVarPtg, GreaterEqualPtg, GreaterThanPtg, NotEqualPtg, RangePtg
defines a Ptg that is an operation instead of an operand
| Field Summary |
|---|
| public static final int | TYPE_UNARY | |
| public static final int | TYPE_BINARY | |
| public static final int | TYPE_FUNCTION | |
| 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.OperationPtg Detail: |
public byte getDefaultOperandClass() {
return Ptg.CLASS_VALUE;
}
|
abstract public int getNumberOfOperands()
The number of operands expected by the operations |
public final int getType() {
// TODO remove "int getType();" from Eval hierarchy
throw new RuntimeException("remove this method");
}
|
abstract public String toFormulaString(String[] operands)
returns a string representation of the operations
the length of the input array should equal the number returned by |