public void writeToStdOut(PrettyPrinter p) { p.printf("<JForStatement line=\"%d\">\n", line()); p.indentRight(); p.printf("<Initialization>\n"); p.indentRight(); initialize.writeToStdOut(p); p.indentLeft(); p.printf("</Initialization>\n"); p.printf("<Termination>\n"); p.indentRight(); terminate.writeToStdOut(p); p.indentLeft(); p.printf("</Termination>\n"); p.printf("<Update>\n"); p.indentRight(); update.writeToStdOut(p); p.indentLeft(); p.printf("</Update>\n"); p.printf("<Consequent>\n"); p.indentRight(); block.writeToStdOut(p); p.indentLeft(); p.printf("</Consequent>\n"); p.indentLeft(); p.printf("</JForStatement>\n"); }
/** * Clones all fields of this into * * <pre>other</pre> */ protected void deepCloneInto(at.dms.kjc.sir.SIRMessageStatement other) { super.deepCloneInto(other); other.portal = (at.dms.kjc.JExpression) at.dms.kjc.AutoCloner.cloneToplevel(this.portal); other.iname = (java.lang.String) at.dms.kjc.AutoCloner.cloneToplevel(this.iname); other.ident = (java.lang.String) at.dms.kjc.AutoCloner.cloneToplevel(this.ident); other.args = (at.dms.kjc.JExpression[]) at.dms.kjc.AutoCloner.cloneToplevel(this.args); other.latency = (at.dms.kjc.sir.SIRLatency) at.dms.kjc.AutoCloner.cloneToplevel(this.latency); }
/** * Clones all fields of this into * * <pre>other</pre> */ protected void deepCloneInto(at.dms.kjc.JReturnStatement other) { super.deepCloneInto(other); other.expr = (at.dms.kjc.JExpression) at.dms.kjc.AutoCloner.cloneToplevel(this.expr); }
/** * Accepts the specified visitor * * @param p the visitor */ public void accept(KjcVisitor p) { super.accept(p); p.visitReturnStatement(this, expr); }
/** * Generate code for any field initializations (now rewritten as assignment statements). * * @param output the code emitter (basically an abstraction for producing the .class file). */ public void codegenInitializations(CLEmitter output) { for (JStatement initialization : initializations) { initialization.codegen(output); } }
/** * Clones all fields of this into * * <pre>other</pre> */ protected void deepCloneInto(at.dms.kjc.sir.SIRMarker other) { super.deepCloneInto(other); }