From ce9e32b08fce598eaafbd6d653727219c222fd1f Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 28 Jul 2017 14:57:11 -0700 Subject: [PATCH] Add a toString for UnaryPrefixNode --- src/org/nwapw/abacus/tree/UnaryPrefixNode.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/org/nwapw/abacus/tree/UnaryPrefixNode.java b/src/org/nwapw/abacus/tree/UnaryPrefixNode.java index 944e339..dce46c5 100644 --- a/src/org/nwapw/abacus/tree/UnaryPrefixNode.java +++ b/src/org/nwapw/abacus/tree/UnaryPrefixNode.java @@ -51,4 +51,9 @@ public class UnaryPrefixNode extends TreeNode { public TreeNode getApplyTo() { return applyTo; } + + @Override + public String toString() { + return "(" + (applyTo == null ? "null" : applyTo.toString()) + ")" + operation; + } }