public final class NodeWriter extends Object
String
representations of Node
instances.
e.g. Calling writeNode(Node)
with the Node
:
new FunctionNode(new Add(), new ConstantNode(9), new ConstantNode(5))will produce the
String
:
(+ 9 5)
Constructor and Description |
---|
NodeWriter()
Creates a
NodeWriter for the purpose of generating textual representations of Node instances. |
Modifier and Type | Method and Description |
---|---|
String |
writeNode(Node node)
Returns a
String representation of the specified Node . |
OakGP Genetic Programming Framework