List of usage examples for org.apache.poi.ss.formula.ptg AbstractFunctionPtg isExternalFunction
public final boolean isExternalFunction()
From source file:uk.ac.liverpool.spreadsheet.FormulaRenderer.java
License:Apache License
public static String toFormulaString(AbstractFunctionPtg a, String[] operands) { StringBuilder buf = new StringBuilder(); if (a.isExternalFunction()) { buf.append(operands[0]); // first operand is actually the function name appendArgs(buf, 1, operands);// w w w .jav a2 s .com } else { buf.append(a.getName()); appendArgs(buf, 0, operands); } return buf.toString(); }