Package org.apache.poi.ss.formula
Class FormulaRenderer
- java.lang.Object
-
- org.apache.poi.ss.formula.FormulaRenderer
-
-
Constructor Summary
Constructors Constructor Description FormulaRenderer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
toFormulaCopyText(FormulaRenderingWorkbook book, Ptg[] tokens, String formula)
static String
toFormulaEditText(FormulaRenderingWorkbook book, Ptg[] tokens, String formula)
static String
toFormulaString(FormulaRenderingWorkbook book, Ptg[] ptgs)
Static method to convert an array ofPtg
s in RPN order to a human readable string format in infix mode.static String
toInternalFormulaString(FormulaRenderingWorkbook book, Ptg[] ptgs)
Static method to convert an array ofPtg
s in RPN order to internal string format for storing into file.static Ptg[][]
unwrapPtgArrays(Ptg[] ptgs)
Static method to convert an RPN ptgs in the form of (areaPtg1, areaPtg2, ...) to Ptg[][].
-
-
-
Method Detail
-
toFormulaString
public static String toFormulaString(FormulaRenderingWorkbook book, Ptg[] ptgs)
Static method to convert an array ofPtg
s in RPN order to a human readable string format in infix mode.- Parameters:
book
- used for defined names and 3D referencesptgs
- must not benull
- Returns:
- a human readable String
-
toInternalFormulaString
public static String toInternalFormulaString(FormulaRenderingWorkbook book, Ptg[] ptgs)
Static method to convert an array ofPtg
s in RPN order to internal string format for storing into file.- Parameters:
book
- used for defined names and 3D referencesptgs
- must not benull
- Returns:
- a human readable String
-
toFormulaEditText
public static String toFormulaEditText(FormulaRenderingWorkbook book, Ptg[] tokens, String formula)
-
unwrapPtgArrays
public static Ptg[][] unwrapPtgArrays(Ptg[] ptgs)
Static method to convert an RPN ptgs in the form of (areaPtg1, areaPtg2, ...) to Ptg[][].- Parameters:
ptgs
- must not benull
- Returns:
- a human readable String
- Since:
- 3.9.6
-
toFormulaCopyText
public static String toFormulaCopyText(FormulaRenderingWorkbook book, Ptg[] tokens, String formula)
-
-