예제 #1
0
 /** Accepts the specified visitor. */
 public void accept(KjcVisitor p) {
   if (p instanceof SLIRVisitor) {
     ((SLIRVisitor) p).visitMarker(this);
   } else {
     // otherwise, do nothing
   }
 }
예제 #2
0
 /** Accepts the specified visitor. */
 public void accept(KjcVisitor p) {
   if (p instanceof SLIRVisitor) {
     ((SLIRVisitor) p).visitPushExpression(this, tapeType, arg);
   } else {
     // otherwise, visit the argument
     arg.accept(p);
   }
 }
예제 #3
0
 public void accept(SLIRVisitor v) {
   int[] weights = null;
   if (this.weights != null) {
     weights = new int[ways];
     getWeights(weights);
   }
   v.visitSetJoiner(this, getStreamContext(), type, ways, weights);
 }
예제 #4
0
 /** Accepts the specified visitor. */
 public void accept(KjcVisitor p) {
   if (p instanceof SLIRVisitor) {
     ((SLIRVisitor) p).visitMessageStatement(this, portal, iname, ident, args, latency);
   } else {
     // otherwise, visit the arguments
     for (int i = 0; i < args.length; i++) {
       args[i].accept(p);
     }
   }
 }