Example #1
0
 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);
 }
Example #3
0
 /**
  * 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);
 }
Example #4
0
 /**
  * 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);
   }
 }
Example #6
0
 /**
  * Clones all fields of this into
  *
  * <pre>other</pre>
  */
 protected void deepCloneInto(at.dms.kjc.sir.SIRMarker other) {
   super.deepCloneInto(other);
 }