Package loci.poi.hssf.record.formula
Class OperationPtg
java.lang.Object
loci.poi.hssf.record.formula.Ptg
loci.poi.hssf.record.formula.OperationPtg
- Direct Known Subclasses:
AbstractFunctionPtg,AddPtg,AttrPtg,ConcatPtg,DividePtg,EqualPtg,GreaterEqualPtg,GreaterThanPtg,IntersectionPtg,LessEqualPtg,LessThanPtg,MultiplyPtg,NotEqualPtg,ParenthesisPtg,PercentPtg,PowerPtg,RangePtg,SubtractPtg,UnaryMinusPtg,UnaryPlusPtg,UnionPtg
defines a Ptg that is an operation instead of an operand
- Author:
- andy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class loci.poi.hssf.record.formula.Ptg
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, ptgClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteabstract intThe number of operands expected by the operationsabstract intgetType()abstract StringtoFormulaString(String[] operands) returns a string representation of the operations the length of the input array should equal the number returned byMethods inherited from class loci.poi.hssf.record.formula.Ptg
clone, createParsedExpressionTokens, createPtg, getBytes, getPtgClass, getSize, serializePtgStack, setClass, toDebugString, toFormulaString, toString, writeBytes
-
Field Details
-
TYPE_UNARY
public static final int TYPE_UNARY- See Also:
-
TYPE_BINARY
public static final int TYPE_BINARY- See Also:
-
TYPE_FUNCTION
public static final int TYPE_FUNCTION- See Also:
-
-
Constructor Details
-
OperationPtg
public OperationPtg()
-
-
Method Details
-
getType
public abstract int getType() -
toFormulaString
returns a string representation of the operations the length of the input array should equal the number returned by- See Also:
-
getNumberOfOperands
public abstract int getNumberOfOperands()The number of operands expected by the operations -
getDefaultOperandClass
public byte getDefaultOperandClass()- Specified by:
getDefaultOperandClassin classPtg
-