@Override public void visit(BinaryExpr expr) { try { output.writeByte(0); output.writeByte(expr.getOperation().ordinal()); output.writeByte(expr.getType() != null ? expr.getType().ordinal() + 1 : 0); writeExpr(expr.getFirstOperand()); writeExpr(expr.getSecondOperand()); } catch (IOException e) { throw new IOExceptionWrapper(e); } }
@Override public void visit(BinaryExpr expr) { try { output.writeByte(0); output.writeByte(expr.getOperation().ordinal()); output.writeByte(expr.getType() != null ? expr.getType().ordinal() + 1 : 0); writeExpr(expr.getFirstOperand()); writeExpr(expr.getSecondOperand()); } catch (IOException e) { throw new IOExceptionWrapper(e); } }