public Expression(AbstractOperand root) { this.root = root; this.value = 0.0f; }
/** * @param root the root to set */ public void setRoot(AbstractOperand root) { this.root = root; }
public Expression() { this.root = null; this.value = 0.0f; }
/** * @param right the right to set */ public void setRight(AbstractOperand right) { this.right = right; }
/** * @param left the left to set */ public void setLeft(AbstractOperand left) { this.left = left; }
public BinaryOperand() { this.left = null; this.right = null; }
public BinaryOperand(char op, AbstractOperand l, AbstractOperand r) { this.op = op; this.left = l; this.right = r; }