[]
A FunctionNode stores the function name and inherits child-node support from NonTerminalNode so the function arguments can be represented as nested syntax nodes.
FormulaSyntaxTree syntaxTree = FormulaSyntaxTree.Parse("LEFT(sheet1!$B$3,1)");
FunctionNode functionNode = (FunctionNode) syntaxTree.getRoot();
String name = functionNode.getName();
int argumentCount = functionNode.getChildren().size();
getChildrenFunctionNode with a function name.name - The function name.Use this method to retrieve the function identifier represented by this FunctionNode.
FormulaSyntaxTree syntaxTree = FormulaSyntaxTree.Parse("LEFT(sheet1!$B$3,1)");
FunctionNode functionNode = (FunctionNode) syntaxTree.getRoot();
String name = functionNode.getName();
Use this method to change the function identifier represented by this FunctionNode.
FormulaSyntaxTree syntaxTree = FormulaSyntaxTree.Parse("SUM(5,\"6\",TRUE)");
FunctionNode functionNode = (FunctionNode) syntaxTree.getRoot();
functionNode.setName("AVERAGE");
String formulaText = syntaxTree.toString();
value - The function name to set.