String (GroovyControlFlow flow) { StringBuilder builder = new StringBuilder(); for (Instruction instruction : flow.getFlow()) { String repr; if (instruction instanceof ReadWriteVariableInstruction) { int descriptorId = ((ReadWriteVariableInstruction)instruction).getDescriptor(); repr = instruction.toString().replace(" " + descriptorId, " " + flow.getVarIndices()[descriptorId].getName()); } else { repr = instruction.toString(); } builder.append(repr).append("\n"); } return builder.toString(); }