BinaryExpr extends Expr { public BinOp getOp() { return op; } BinaryExpr(Expr lhs, Expr rhs, BinOp op); Expr getLhs(); void setLhs(Expr lhs); Expr getRhs(); void setRhs(Expr rhs); BinOp getOp(); @Override void accept(IAstVisitor visitor); @Override BinaryExpr clone(); @Override boolean hasChild(IAstNode candidateChild); @Override Expr getChild(int index); @Override void setChild(int index, Expr expr); @Override int getNumChildren();  }
@Test public void getOp() throws Exception { assertEquals(BinOp.ADD_ASSIGN, new BinaryExpr(new VariableIdentifierExpr("x"), new UIntConstantExpr("3u"), BinOp.ADD_ASSIGN).getOp()); }