[]
This constructor initializes a logical literal node in the expression syntax tree with the specified constant value.
FormulaSyntaxTree syntaxTree = FormulaSyntaxTree.Parse("SUM(5,\"6\",TRUE)");
FunctionNode functionNode = (FunctionNode) syntaxTree.getRoot();
LogicalNode logicalNode = (LogicalNode) functionNode.getChildren().get(2);
boolean value = logicalNode.getValue();
getChildrenLogicalNode from a boolean value.This constructor initializes a logical literal node in the expression syntax tree with the specified constant value.
value - The boolean value represented by this node.Returns the boolean value represented by this logical literal node in the syntax tree.
FormulaSyntaxTree syntaxTree = FormulaSyntaxTree.Parse("SUM(5,\"6\",TRUE)");
FunctionNode functionNode = (FunctionNode) syntaxTree.getRoot();
LogicalNode logicalNode = (LogicalNode) functionNode.getChildren().get(2);
boolean value = logicalNode.getValue();
sets the boolean value represented by this logical literal node in the syntax tree.
FormulaSyntaxTree syntaxTree = FormulaSyntaxTree.Parse("SUM(5,\"6\",TRUE)");
FunctionNode functionNode = (FunctionNode) syntaxTree.getRoot();
LogicalNode logicalNode = (LogicalNode) functionNode.getChildren().get(2);
logicalNode.setValue(false);
String formulaText = syntaxTree.toString();
value - The boolean value of this node.