[]
Use this class to create or inspect constant text values in expression trees. A TextNode stores a non- null string value and inherits constant-node behavior from ConstNode.
FormulaSyntaxTree syntaxTree = FormulaSyntaxTree.Parse("SUM(5,\"6\",TRUE)");
FunctionNode functionNode = (FunctionNode) syntaxTree.getRoot();
TextNode textNode = (TextNode) functionNode.getChildren().get(1);
String text = textNode.getValue();
getChildrenTextNode from string.value - The string value. The value can't be null (Nothing).Returns the string literal represented by this TextNode in the formula syntax tree. The returned value is never null.
FormulaSyntaxTree syntaxTree = FormulaSyntaxTree.Parse("SUM(5,\"6\",TRUE)");
FunctionNode functionNode = (FunctionNode) syntaxTree.getRoot();
TextNode textNode = (TextNode) functionNode.getChildren().get(1);
String text = textNode.getValue();
null.sets the string literal represented by this TextNode in the formula syntax tree. The value must not be null.
FormulaSyntaxTree syntaxTree = FormulaSyntaxTree.Parse("SUM(5,\"6\",TRUE)");
FunctionNode functionNode = (FunctionNode) syntaxTree.getRoot();
TextNode textNode = (TextNode) functionNode.getChildren().get(1);
textNode.setValue("7");
String formulaText = syntaxTree.toString();
value - The text of this node. Must not be null.