コード例 #1
0
ファイル: SIRMarker.java プロジェクト: navicella/streamit
 /** 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
ファイル: LIRSetJoiner.java プロジェクト: navicella/streamit
 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);
     }
   }
 }