BinaryExpr extends Expr { public Expr getRhs() { return rhs; } 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 getRhs() throws Exception { FloatConstantExpr fce = new FloatConstantExpr("10.2"); BinaryExpr be = new BinaryExpr( new TypeConstructorExpr("float", new IntConstantExpr("1")), fce, BinOp.MOD); assertEquals(fce, be.getRhs()); }