Top Description Constructors Methods
org.apache.poi.ss.formula

public Class FormulaRenderer

extends Object
Class Inheritance
Annotations
@Internal
Imports
java.util.Stack, org.apache.poi.ss.formula.ptg.AttrPtg, .MemAreaPtg, .MemErrPtg, .MemFuncPtg, .OperationPtg, .ParenthesisPtg, .Ptg, org.apache.poi.util.Internal

Common logic for rendering formulas.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static String[]
getOperands(Stack<String> stack, int nOperands)

public static String

Returns:

a human readable String
toFormulaString
(FormulaRenderingWorkbook
used for defined names and 3D references
book
,
Ptg[]
must not be null
ptgs
)

Static method to convert an array of Ptgs in RPN order to a human readable string format in infix mode.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FormulaRendererback to summary
public FormulaRenderer()

Method Detail

getOperandsback to summary
private static String[] getOperands(Stack<String> stack, int nOperands)
toFormulaStringback to summary
public static String toFormulaString(FormulaRenderingWorkbook book, Ptg[] ptgs)

Static method to convert an array of Ptgs in RPN order to a human readable string format in infix mode.

Parameters
book:FormulaRenderingWorkbook

used for defined names and 3D references

ptgs:Ptg[]

must not be null

Returns:String

a human readable String