@Override public void visit(GotoPartStatement statement) { try { output.writeByte(17); output.writeShort(statement.getPart()); } catch (IOException e) { throw new IOExceptionWrapper(e); } }
GotoPartStatement stmt = new GotoPartStatement(); stmt.setPart(targetBlocks[node]); generator.statements.add(stmt);
GotoPartStatement stmt = new GotoPartStatement(); stmt.setPart(input.readShort()); return stmt;
GotoPartStatement stmt = new GotoPartStatement(); stmt.setPart(targetBlocks[node]); generator.statements.add(stmt);
@Override public void visit(GotoPartStatement statement) { try { if (statement.getPart() != currentPart) { writer.append(context.pointerName()).ws().append("=").ws().append(statement.getPart()).append(";") .softNewLine(); } if (!end || statement.getPart() != currentPart + 1) { writer.append("continue ").append(context.mainLoopName()).append(";").softNewLine(); } } catch (IOException ex) { throw new RenderingException("IO error occurred", ex); } }
GotoPartStatement stmt = new GotoPartStatement(); stmt.setPart(input.readShort()); return stmt;
@Override public void visit(GotoPartStatement statement) { try { output.writeByte(17); output.writeShort(statement.getPart()); } catch (IOException e) { throw new IOExceptionWrapper(e); } }
@Override public void visit(GotoPartStatement statement) { try { if (statement.getPart() != currentPart) { writer.append(context.pointerName()).ws().append("=").ws().append(statement.getPart()).append(";") .softNewLine(); } if (!end || statement.getPart() != currentPart + 1) { writer.append("continue ").append(context.mainLoopName()).append(";").softNewLine(); } } catch (IOException ex) { throw new RenderingException("IO error occurred", ex); } }