org.apache.poi.hssf.record.formula
public final class: UnaryMinusPtg [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
org.apache.poi.hssf.record.formula.UnaryMinusPtg
All Implemented Interfaces:
Cloneable
Unary Plus operator
does not have any effect on the operand
| Field Summary |
|---|
| public static final byte | sid | |
| public static final ValueOperatorPtg | instance | |
| 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.UnaryMinusPtg Detail: |
public int getNumberOfOperands() {
return 1;
}
|
protected byte getSid() {
return sid;
}
|
public String toFormulaString(String[] operands) {
StringBuffer buffer = new StringBuffer();
buffer.append(MINUS);
buffer.append(operands[ 0]);
return buffer.toString();
}
implementation of method from OperationsPtg |