4 public class OpNode extends ExpressionNode {
9 public OpNode(ExpressionNode l, ExpressionNode r, Operation o) {
15 public OpNode(ExpressionNode l, Operation o) {
21 public ExpressionNode getLeft() {
25 public ExpressionNode getRight() {
29 public Operation getOp() {
33 public String printNode(int indent) {
35 return op.toString()+"("+left.printNode(indent)+")";
37 return left.printNode(indent)+" "+op.toString()+" "+right.printNode(indent);