@Override public void visit(Instr instr) { printAnsi(INSTR_COLOR, instr.getOperation().toString().toLowerCase()); boolean comma = false; for (Operand o : instr.getOperands()) { if (!comma) printAnsi(INSTR_COLOR, "("); if (comma) print(", "); comma = true; visit(o); } for (Field f : instr.dumpableFields()) { if (!comma) printAnsi(INSTR_COLOR, "("); if (comma) print(", "); comma = true; f.setAccessible(true); printAnsi(FIELD_COLOR, f.getName() + ": "); print(get(f, instr)); } if (comma) printAnsi(INSTR_COLOR, ")"); }
@Override public void visit(Instr instr) { printAnsi(INSTR_COLOR, instr.getOperation().toString().toLowerCase()); boolean comma = false; for (Operand o : instr.getOperands()) { if (!comma) printAnsi(INSTR_COLOR, "("); if (comma) print(", "); comma = true; visit(o); } for (Field f : instr.dumpableFields()) { if (!comma) printAnsi(INSTR_COLOR, "("); if (comma) print(", "); comma = true; f.setAccessible(true); printAnsi(FIELD_COLOR, f.getName() + ": "); print(get(f, instr)); } if (comma) printAnsi(INSTR_COLOR, ")"); }