Example usage for org.apache.poi.ss.formula.ptg AbstractFunctionPtg isExternalFunction

List of usage examples for org.apache.poi.ss.formula.ptg AbstractFunctionPtg isExternalFunction

Introduction

In this page you can find the example usage for org.apache.poi.ss.formula.ptg AbstractFunctionPtg isExternalFunction.

Prototype

public final boolean isExternalFunction() 

Source Link

Document

external functions get some special processing

Usage

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();
}