Add a toString for UnaryPrefixNode

This commit is contained in:
Danila Fedorin 2017-07-28 14:57:11 -07:00
parent c3bb3d7d3f
commit 8c5306051e
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}
}