Пример #1
0
 public final void print(Consumer paramConsumer) {
   if ((paramConsumer instanceof OutPort)) {
     print((OutPort) paramConsumer);
     return;
   }
   if ((paramConsumer instanceof PrintWriter)) {
     paramConsumer = new OutPort((PrintWriter) paramConsumer);
     print(paramConsumer);
     paramConsumer.close();
     return;
   }
   CharArrayOutPort localCharArrayOutPort = new CharArrayOutPort();
   print(localCharArrayOutPort);
   localCharArrayOutPort.close();
   localCharArrayOutPort.writeTo(paramConsumer);
 }
Пример #2
0
 public void print(OutPort outport) {
   outport.startLogicalBlock("(Exit", false, ")");
   outport.writeSpaceFill();
   if (block == null || block.label == null) {
     outport.print("<unknown>");
   } else {
     outport.print(block.label.getName());
   }
   if (result != null) {
     outport.writeSpaceLinear();
     result.print(outport);
   }
   outport.endLogicalBlock(")");
 }
Пример #3
0
 public void print(OutPort out) {
   out.startLogicalBlock("(Apply", ")", 2);
   if (isTailCall()) out.print(" [tailcall]");
   if (type != null && type != Type.pointer_type) {
     out.print(" => ");
     out.print(type);
   }
   out.writeSpaceFill();
   printLineColumn(out);
   func.print(out);
   for (int i = 0; i < args.length; ++i) {
     out.writeSpaceLinear();
     args[i].print(out);
   }
   out.endLogicalBlock(")");
 }